コード例 #1
0
ファイル: GraphWindow.xaml.cs プロジェクト: kraidiky/TribeSim
 private void Clear_Click(object sender, RoutedEventArgs e)
 {
     if (TribeNamesSelector.SelectedValue == null)
     {
         return;
     }
     if (GraphLinesSelector.SelectedValue == null)
     {
         return;
     }
     ChartArea.AddLineGraph((ObservableDataSource <Point>)(StatisticsCollector.GetDataSet(TribeNamesSelector.SelectedValue.ToString(), GraphLinesSelector.SelectedValue.ToString()).DataSource), TribeNamesSelector.SelectedValue.ToString() + ": " + GraphLinesSelector.SelectedValue.ToString());
     foreach (var v in ChartArea.Children.ToArray())
     {
         if (v is Microsoft.Research.DynamicDataDisplay.LineGraph)
         {
             ChartArea.Children.Remove(v);
         }
     }
 }
コード例 #2
0
ファイル: GraphWindow.xaml.cs プロジェクト: kraidiky/TribeSim
        private void cb_Checked(object sender, RoutedEventArgs e)
        {
            CheckBox me = (CheckBox)sender;

            ChartArea.AddLineGraph((ObservableDataSource <Point>)(me.Tag), me.Content.ToString());
        }