Exemplo n.º 1
0
 public GraphController()
 {
     InitializeComponent();
     DataContext          = this;
     globals              = FileGlobalVars.getInstance();
     fileName.DataContext = globals;
     MainViewModel.getInstance().ShowProgressBar = false;
 }
 public static FileGlobalVars getInstance()
 {
     if (instance == null)
     {
         instance = new FileGlobalVars();
     }
     return(instance);
 }
Exemplo n.º 3
0
 private void SaveGraph(object sender, RoutedEventArgs e)
 {
     FileGlobalVars.getInstance().ExportToPng(MainViewModel.getInstance().MainCanvas);
 }