Beispiel #1
0
        private void saveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sl = new SavingAndLoading();
            SaveFileDialog save = new SaveFileDialog();

            save.Filter = "Text|*.txt|All|*.*";
            if (save.ShowDialog() == DialogResult.OK)
            {
                sl.SaveToFile(save.FileName, cb);
            }
        }
Beispiel #2
0
        private void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sl = new SavingAndLoading();
            OpenFileDialog open = new OpenFileDialog();

            open.Filter = "Text|*.txt|All|*.*";
            if (open.ShowDialog() == DialogResult.OK)
            {
                sl.LoadFile(open.FileName);
                cb = sl.flowNets.First();
                this.Refresh();
            }
        }