Example #1
0
        private void CreateFromFile()
        {
            if (!CheckChangesSaved())
            {
                return;
            }

            if (openGraphDialog.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            Graph = GraphFactory.CreateFromFile(openGraphDialog.FileName);
            InitGraph();
            FileName     = openGraphDialog.FileName;
            ChangesSaved = true;
        }
        private void LoadGraph()
        {
            if (fileDialog.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            Graph = GraphFactory.CreateFromFile(fileDialog.FileName);

            VisualManager = new VisualManager(Graph);

            graphPicture.Image = VisualManager.GetImage();

            bSearchCycles.Enabled = true;
            panelCycles.Visible   = false;
            bSearchCycles.Enabled = true;
        }
        private void LoadGraph()
        {
            if (fileDialog.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            Graph = GraphFactory.CreateFromFile(fileDialog.FileName);

            VisualManager = new VisualManager(Graph);

            stepControls.Visible = false;


            imgContainer.Image = VisualManager.GetImage();

            searchControls.Enabled = true;
        }