예제 #1
0
 private void btnOpenFile_ClickClear(object sender, RoutedEventArgs e)
 {
     MainPlot.plt.Clear();
     MainPlot.Render();
     //Resets our datagrid size since the user may want to look at the graph
     DGrid.Margin      = new System.Windows.Thickness(0, 369, 0, 0);
     DGrid.DataContext = null;
     PopOut.IsEnabled  = false;
     dgrab             = null;
 }
예제 #2
0
 //For some reason, ScottPlot doesn't like their graphs being cloned so we have to make the graph all over again...
 public GraphWindow(DataGrabber dgrabber, WpfPlot plt, ConfigGrabber confgg, double xOffsetIN, double yOffsetIN)
 {
     InitializeComponent();
     xOffset     = xOffsetIN;
     yOffset     = yOffsetIN;
     DataContext = this;
     dgrab       = dgrabber;
     confg       = confgg;
     createScatterPlot();
 }
예제 #3
0
        private void btnOpenFile_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            if (openFileDialog.ShowDialog() == true)
            {
                btnOpenFile_ClickClear(sender, e);
                dgrab = new DataGrabber(openFileDialog.FileName);

                PopOut.IsEnabled = true;

                //Resets our datagrid size since the user may want to look at the graph
                DGrid.Margin = new System.Windows.Thickness(0, 369, 0, 0);

                createScatterPlot();
                MainPlot.Render();

                dtb = dgrab.df.ToDataTable();
                DGrid.DataContext = dtb;
            }
        }