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; } }
private void btsave_Click(object sender, EventArgs e) { Network.Save(nw, path); }