public GraphController()
 {
     InitializeComponent();
     DataContext           = this;
     globals               = GraphGlobalVariables.getInstance();
     fileName.DataContext  = globals;
     graphInfo.DataContext = null;
 }
 public static GraphGlobalVariables getInstance()
 {
     if (instance == null)
     {
         instance = new GraphGlobalVariables();
     }
     return(instance);
 }
 private void SaveGraph(object sender, RoutedEventArgs e)
 {
     GraphGlobalVariables.getInstance().ExportToPng(MainViewModel.getInstance().MainCanvas);
 }