Ejemplo n.º 1
0
        private void Open()
        {
            try
            {
                Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog
                {
                    FileName   = "Project",
                    DefaultExt = ".xml",
                    Filter     = "(XML documents .xml)|*.xml"
                };

                if (dlg.ShowDialog() == true)
                {
                    this.savePath = dlg.FileName;

                    ProjectSaver saver = new ProjectSaver();
                    mainProcessNumber   = saver.LoadProjectExecute(dlg.FileName, testTabControl, drawAreas, processes, out mainProcess);
                    processNamesCounter = testTabControl.Items.Count;
                    SetTheme();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }