示例#1
0
        private void btsaveas_Click(object sender, EventArgs e)
        {
            SaveFileDialog dialog = new SaveFileDialog();

            dialog.Title      = "Save Network";
            dialog.DefaultExt = ".XML";
            if (dialog.ShowDialog() == DialogResult.OK && dialog.FileName != null)
            {
                Network.Save(nw, dialog.FileName);
                path           = dialog.FileName;
                btsave.Enabled = true;
            }
        }
示例#2
0
 private void btsave_Click(object sender, EventArgs e)
 {
     Network.Save(nw, path);
 }