コード例 #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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }