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