Click here to Skip to main content
15,887,676 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: 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 
SuggestionWhy can't i post a question Pin
Member 128893956-Dec-16 0:04
Member 128893956-Dec-16 0:04 
GeneralRe: Why can't i post a question Pin
Richard MacCutchan6-Dec-16 1:42
mveRichard MacCutchan6-Dec-16 1:42 
SuggestionBug in QA: questions revision compare look broken Pin
Patrice T5-Dec-16 17:38
mvePatrice T5-Dec-16 17:38 
GeneralRe: Bug in QA: questions revision compare look broken Pin
Richard Deeming6-Dec-16 1:59
mveRichard Deeming6-Dec-16 1:59 
GeneralRe: Bug in QA: questions revision compare look broken Pin
Patrice T6-Dec-16 3:19
mvePatrice T6-Dec-16 3:19 
GeneralRe: Bug in QA: questions revision compare look broken Pin
Chris Maunder8-Dec-16 11:03
cofounderChris Maunder8-Dec-16 11:03 
GeneralRe: Bug in QA: questions revision compare look broken Pin
Patrice T8-Dec-16 11:37
mvePatrice T8-Dec-16 11:37 
SuggestionWould be cool to have DownVoters to leave message Pin
Patrice T5-Dec-16 13:43
mvePatrice T5-Dec-16 13:43 
GeneralRe: Would be cool to have DownVoters to leave message Pin
User 592415-Dec-16 14:38
User 592415-Dec-16 14:38 
GeneralRe: Would be cool to have DownVoters to leave message Pin
Patrice T5-Dec-16 17:23
mvePatrice T5-Dec-16 17:23 
GeneralRe: Would be cool to have DownVoters to leave message Pin
User 592415-Dec-16 17:51
User 592415-Dec-16 17:51 
GeneralRe: Would be cool to have DownVoters to leave message Pin
CHill606-Dec-16 14:17
mveCHill606-Dec-16 14:17 
GeneralRe: Would be cool to have DownVoters to leave message Pin
Patrice T6-Dec-16 17:09
mvePatrice T6-Dec-16 17:09 
GeneralRe: Would be cool to have DownVoters to leave message Pin
Richard MacCutchan5-Dec-16 21:46
mveRichard MacCutchan5-Dec-16 21:46 
GeneralRe: Would be cool to have DownVoters to leave message Pin
ZurdoDev6-Dec-16 3:46
professionalZurdoDev6-Dec-16 3:46 

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

Flags: FixedAnsweredRejected

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