Click here to Skip to main content
15,897,891 members

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch. If you wish to report a bug privately, especially those related to security, please email webmaster@codeproject.com

 
GeneralRe: updated sig line, but old one still shows up Pin
raddevus12-Dec-16 6:58
mvaraddevus12-Dec-16 6:58 
BugComments and discussion missin on an article Pin
Wendelius10-Dec-16 3:59
mentorWendelius10-Dec-16 3:59 
SuggestionShouldn't be a more dynamic website? Pin
Farhad Reza10-Dec-16 0:18
Farhad Reza10-Dec-16 0:18 
GeneralRe: Shouldn't be a more dynamic website? Pin
Chris Maunder11-Dec-16 4:31
cofounderChris Maunder11-Dec-16 4:31 
GeneralRe: Shouldn't be a more dynamic website? Pin
Farhad Reza11-Dec-16 5:06
Farhad Reza11-Dec-16 5:06 
BugSeems odd to have a VB article in the C++ article contest Pin
ZurdoDev9-Dec-16 0:54
professionalZurdoDev9-Dec-16 0:54 
GeneralRe: Seems odd to have a VB article in the C++ article contest Pin
Jochen Arndt9-Dec-16 2:02
professionalJochen Arndt9-Dec-16 2:02 
GeneralRe: Seems odd to have a VB article in the C++ article contest Pin
Sean Ewington9-Dec-16 3:29
staffSean Ewington9-Dec-16 3:29 
BugOdd message from CodeProject Pin
Richard MacCutchan8-Dec-16 6:00
mveRichard MacCutchan8-Dec-16 6:00 
GeneralRe: Odd message from CodeProject Pin
NotPolitcallyCorrect8-Dec-16 7:02
NotPolitcallyCorrect8-Dec-16 7:02 
GeneralRe: Odd message from CodeProject Pin
Richard MacCutchan8-Dec-16 7:06
mveRichard MacCutchan8-Dec-16 7:06 
GeneralRe: Odd message from CodeProject Pin
Sean Ewington8-Dec-16 7:11
staffSean Ewington8-Dec-16 7:11 
GeneralRe: Odd message from CodeProject Pin
Richard MacCutchan8-Dec-16 7:35
mveRichard MacCutchan8-Dec-16 7:35 
Suggestioncertificate problem Pin
Besinger8-Dec-16 1:02
Besinger8-Dec-16 1:02 
GeneralRe: certificate problem Pin
Chris Maunder8-Dec-16 10:46
cofounderChris Maunder8-Dec-16 10:46 
GeneralRe: certificate problem Pin
Brisingr Aerowing8-Dec-16 11:56
professionalBrisingr Aerowing8-Dec-16 11:56 
GeneralRe: certificate problem Pin
Chris Maunder8-Dec-16 16:05
cofounderChris Maunder8-Dec-16 16:05 
GeneralRe: certificate problem Pin
Besinger9-Dec-16 1:04
Besinger9-Dec-16 1:04 
GeneralRe: certificate problem Pin
Richard Deeming9-Dec-16 2:23
mveRichard Deeming9-Dec-16 2:23 
GeneralRe: certificate problem Pin
Chris Maunder9-Dec-16 3:10
cofounderChris Maunder9-Dec-16 3:10 
BugBug in QA Pin
Patrice T7-Dec-16 4:20
mvePatrice T7-Dec-16 4:20 
JokeRe: Bug in QA Pin
Richard Deeming7-Dec-16 4:43
mveRichard Deeming7-Dec-16 4:43 
SuggestionPre tag bug Pin
Jon McKee6-Dec-16 10:39
professionalJon McKee6-Dec-16 10:39 
When posting the code at the very end, there are pre tags automatically inserted on blank lines in the preview. It seems to be random since some blank lines are accepted. You have to remove the spaces around the ViewModelBase constructor and between the ViewModelBase class and MockDB class to get it to display correctly.

C#
public class ViewModelBase : INotifyPropertyChanged
{
    protected MockDB cbdc;
    public event PropertyChangedEventHandler PropertyChanged;
    public ViewModelBase()
    {
        cbdc = new MockDB();
    }
    protected void RaisePropertyChanged([CallerMemberName] string propertyName = null) =>
        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
public class MockDB
{
    private Dictionary<Contact, List<Conversation>> conversations;
    public List<Contact> Contacts { get; private set; }

    public MockDB()
    {
        Contacts = CreateContacts();
        conversations = CreateConversations(Contacts);
    }

    public List<Conversation> GetConversations(Contact c) =>
        conversations[c];

    private List<Contact> CreateContacts()
    {
        return new List<Contact>()
        {
            new Contact("Jim"),
            new Contact("Bob"),
            new Contact("Mary")
        };
    }

    private Dictionary<Contact, List<Conversation>> CreateConversations(List<Contact> contacts)
    {
        Dictionary<Contact, List<Conversation>> conversationMap = new Dictionary<Contact, List<Conversation>>();
        foreach (Contact c in contacts)
            conversationMap.Add(c, CreateConversationList(c));
        return conversationMap;
    }
    private List<Conversation> CreateConversationList(Contact contact)
    {
        return new List<Conversation>()
        {
            new Conversation($"Hi {contact.Name}!"),
            new Conversation("Pleasant day today.")
        };
    }
}

public class Contact
{
    public string Name { get; private set; }

    public Contact(string contactName)
    {
        Name = contactName;
    }
}

public class Conversation
{
    public string Title { get; private set; }

    public Conversation(string conversationText)
    {
        Title = conversationText;
    }
}


C#
public class ViewModelBase : INotifyPropertyChanged
{
    protected MockDB cbdc;
    public event PropertyChangedEventHandler PropertyChanged;

    public ViewModelBase()
    {
        cbdc = new MockDB();
    }

    protected void RaisePropertyChanged([CallerMemberName] string propertyName = null) =>
        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}

public class MockDB
{
    private Dictionary<Contact, List<Conversation>> conversations;
    public List<Contact> Contacts { get; private set; }

    public MockDB()
    {
        Contacts = CreateContacts();
        conversations = CreateConversations(Contacts);
    }

    public List<Conversation> GetConversations(Contact c) =>
        conversations[c];

    private List<Contact> CreateContacts()
    {
        return new List<Contact>()
        {
            new Contact("Jim"),
            new Contact("Bob"),
            new Contact("Mary")
        };
    }

    private Dictionary<Contact, List<Conversation>> CreateConversations(List<Contact> contacts)
    {
        Dictionary<Contact, List<Conversation>> conversationMap = new Dictionary<Contact, List<Conversation>>();
        foreach (Contact c in contacts)
            conversationMap.Add(c, CreateConversationList(c));
        return conversationMap;
    }
    private List<Conversation> CreateConversationList(Contact contact)
    {
        return new List<Conversation>()
        {
            new Conversation($"Hi {contact.Name}!"),
            new Conversation("Pleasant day today.")
        };
    }
}

public class Contact
{
    public string Name { get; private set; }

    public Contact(string contactName)
    {
        Name = contactName;
    }
}

public class Conversation
{
    public string Title { get; private set; }

    public Conversation(string conversationText)
    {
        Title = conversationText;
    }
}

GeneralRe: Pre tag bug Pin
Chris Maunder11-Dec-16 17:04
cofounderChris Maunder11-Dec-16 17:04 
GeneralRe: Pre tag bug Pin
Jon McKee11-Dec-16 17:51
professionalJon McKee11-Dec-16 17:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Flags: AnsweredUnable to replicateFixed

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.