Click here to Skip to main content
15,881,840 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Anyone else have issues with the latest windows 10 update? Pin
Rage12-May-21 6:06
professionalRage12-May-21 6:06 
Generala new word for the special kind of chagrin you experience when ... Pin
BillWoodruff12-May-21 3:01
professionalBillWoodruff12-May-21 3:01 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
honey the codewitch12-May-21 3:10
mvahoney the codewitch12-May-21 3:10 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff12-May-21 14:50
professionalBillWoodruff12-May-21 14:50 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
honey the codewitch12-May-21 14:58
mvahoney the codewitch12-May-21 14:58 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff12-May-21 17:07
professionalBillWoodruff12-May-21 17:07 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
honey the codewitch12-May-21 18:23
mvahoney the codewitch12-May-21 18:23 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff12-May-21 22:13
professionalBillWoodruff12-May-21 22:13 
honey the codewitch wrote:
Sorted collections are supposed to enforce sorted order *always*
Unfortunately .. not ... for Sorted-xxx reference Types where the re-sort "trigger" you want is a change to a Property

Here's what I have to do to force an update:
C#
public void ChangeValue(Project ptochange, DateTime newdate)
{
    Projects.Value.Remove(ptochange);
    ptochange.DeadLine = newdate;  
    Projects.Value.Add(ptochange);
}
And the Project Class:
public class Project : IComparable
{
    public Project(string name, DateTime deadLine)
    {
        Name = name;
        DeadLine = deadLine;
    }

    public string Name { set; get; }
    public DateTime DeadLine { set; get; }

    public int CompareTo(object y)
    {
        if (ReferenceEquals(this, y)) return 0;
        if (ReferenceEquals(null, y)) return 1;

        return this.DeadLine.CompareTo(((Project)y).DeadLine);
    }
}
I'll post an example on the C# forum, and, I hope you'll respond there.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
honey the codewitch12-May-21 23:27
mvahoney the codewitch12-May-21 23:27 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff13-May-21 0:06
professionalBillWoodruff13-May-21 0:06 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
honey the codewitch13-May-21 0:14
mvahoney the codewitch13-May-21 0:14 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff13-May-21 20:26
professionalBillWoodruff13-May-21 20:26 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
honey the codewitch13-May-21 23:47
mvahoney the codewitch13-May-21 23:47 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff14-May-21 1:19
professionalBillWoodruff14-May-21 1:19 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
honey the codewitch14-May-21 1:41
mvahoney the codewitch14-May-21 1:41 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff14-May-21 15:28
professionalBillWoodruff14-May-21 15:28 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
Rich Leyshon12-May-21 3:17
Rich Leyshon12-May-21 3:17 
JokeRe: a new word for the special kind of chagrin you experience when ... Pin
W Balboos, GHB12-May-21 5:57
W Balboos, GHB12-May-21 5:57 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
Chris Maunder12-May-21 6:13
cofounderChris Maunder12-May-21 6:13 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff12-May-21 15:00
professionalBillWoodruff12-May-21 15:00 
JokeRe: a new word for the special kind of chagrin you experience when ... Pin
Daniel Pfeffer12-May-21 6:20
professionalDaniel Pfeffer12-May-21 6:20 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff12-May-21 14:53
professionalBillWoodruff12-May-21 14:53 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
obermd13-May-21 4:33
obermd13-May-21 4:33 
GeneralRe: a new word for the special kind of chagrin you experience when ... Pin
BillWoodruff13-May-21 20:20
professionalBillWoodruff13-May-21 20:20 
GeneralIf you like Computer History Pin
raddevus12-May-21 2:55
mvaraddevus12-May-21 2:55 

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

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