private void saveAsToolStripMenuItem_Click(object sender, EventArgs e) { if (saveFileDialog.ShowDialog() == DialogResult.Cancel) { return; } fullPath = saveFileDialog.FileName; DepartmentsDb db = Db.ToDLA(); ProvideServices.WriteJSON <DepartmentsDb>(fullPath, ref db); }
private void saveToolStripMenuItem_Click(object sender, EventArgs e) { DepartmentsDb db = Db.ToDLA(); ProvideServices.WriteJSON <DepartmentsDb>(fullPath, ref db); }