Click here to Skip to main content
15,354,423 members
Home / Discussions / C#
   

C#

 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:50
Memberkhomeyni30-Jan-14 8:50 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 8:52
professionalRichard Andrew x6430-Jan-14 8:52 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 8:59
Memberkhomeyni30-Jan-14 8:59 
AnswerRe: serial port writing and reading Pin
Richard Andrew x6430-Jan-14 9:06
professionalRichard Andrew x6430-Jan-14 9:06 
GeneralRe: serial port writing and reading Pin
khomeyni30-Jan-14 9:06
Memberkhomeyni30-Jan-14 9:06 
Questiondepicting data in c# in realtime Pin
khomeyni29-Jan-14 2:38
Memberkhomeyni29-Jan-14 2:38 
AnswerRe: depicting data in c# in realtime Pin
Eddy Vluggen29-Jan-14 2:59
professionalEddy Vluggen29-Jan-14 2:59 
GeneralRe: depicting data in c# in realtime Pin
khomeyni29-Jan-14 6:43
Memberkhomeyni29-Jan-14 6:43 
I've this simple code but it takes about 20sec to be depicted!

C#
private void button1_Click(object sender, RoutedEventArgs e)
    {
        ObservableCollection<ChartItem> InputItems = new ObservableCollection<ChartItem>();
        for (int i = 0; i < 6000; i++)
        {
            InputItems.Add(new ChartItem(i, i));
        }
        InputLine.ItemsSource = InputItems;

    }
}
public class ChartItem : INotifyPropertyChanged
{
    public ChartItem(double t, double v)
    {
        time = t;
        myVar = v;
    }

    private double time;

    public double Time
    {
        get { return time; }
        set
        {
            time = value;
            OnPropertyChanged("Time");
        }
    }

    private double myVar;

    public double Value
    {
        get { return myVar; }
        set
        {
            myVar = value;
            OnPropertyChanged("Value");
        }
    }

    public event PropertyChangedEventHandler PropertyChanged;

    protected virtual void OnPropertyChanged(string propertyName)
    {
        if (this.PropertyChanged != null)
        {
            this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}



with using :

System.Windows.Controls.DataVisualization.Toolkit

and

System.Windows.Controls.DataVisualization.Toolkit
GeneralRe: depicting data in c# in realtime Pin
Eddy Vluggen29-Jan-14 8:01
professionalEddy Vluggen29-Jan-14 8:01 
GeneralRe: depicting data in c# in realtime Pin
khomeyni30-Jan-14 4:26
Memberkhomeyni30-Jan-14 4:26 
QuestionNeed help on chat between two computers Pin
larsp77729-Jan-14 1:20
Memberlarsp77729-Jan-14 1:20 
AnswerRe: Need help on chat between two computers Pin
OriginalGriff29-Jan-14 2:32
mveOriginalGriff29-Jan-14 2:32 
GeneralRe: Need help on chat between two computers Pin
larsp77729-Jan-14 2:43
Memberlarsp77729-Jan-14 2:43 
GeneralRe: Need help on chat between two computers Pin
OriginalGriff29-Jan-14 2:54
mveOriginalGriff29-Jan-14 2:54 
GeneralRe: Need help on chat between two computers Pin
larsp77729-Jan-14 6:13
Memberlarsp77729-Jan-14 6:13 
GeneralRe: Need help on chat between two computers Pin
Richard Deeming29-Jan-14 7:22
mveRichard Deeming29-Jan-14 7:22 
GeneralRe: Need help on chat between two computers Pin
OriginalGriff29-Jan-14 8:01
mveOriginalGriff29-Jan-14 8:01 
GeneralRe: Need help on chat between two computers Pin
larsp77729-Jan-14 10:28
Memberlarsp77729-Jan-14 10:28 
GeneralRe: Need help on chat between two computers Pin
larsp77730-Jan-14 1:48
Memberlarsp77730-Jan-14 1:48 
GeneralRe: Need help on chat between two computers Pin
Richard Deeming30-Jan-14 2:02
mveRichard Deeming30-Jan-14 2:02 
GeneralRe: Need help on chat between two computers Pin
larsp77730-Jan-14 2:06
Memberlarsp77730-Jan-14 2:06 
GeneralRe: Need help on chat between two computers Pin
larsp77729-Jan-14 6:15
Memberlarsp77729-Jan-14 6:15 
GeneralRe: Need help on chat between two computers Pin
Richard Deeming29-Jan-14 3:19
mveRichard Deeming29-Jan-14 3:19 
GeneralRe: Need help on chat between two computers Pin
larsp77729-Jan-14 5:07
Memberlarsp77729-Jan-14 5:07 
GeneralRe: Need help on chat between two computers Pin
Rahul VB29-Jan-14 20:39
professionalRahul VB29-Jan-14 20:39 

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.