private void saveToolStripMenuItem_Click(object sender, EventArgs e) { SaveFileDialog dlg = new SaveFileDialog(); dlg.InitialDirectory = Flokal.Common.Methods.Files.GetDocumentFolderPath(cfg.ProgramName); dlg.Filter = "xml files (*.xml)|*.xml|all files (*.*)|*.*"; if (dlg.ShowDialog() == DialogResult.OK) { string mask = Path.GetFileNameWithoutExtension(dlg.FileName).Replace("Master", "").Replace("Slave", ""); mask = Path.Combine(dlg.InitialDirectory, mask); if (bvMaster != null && bvMaster.Blobs.Count > 0) { bvMaster.Save(mask + "Master.xml"); } if (bvSlave != null && bvSlave.Blobs.Count > 0) { bvSlave.Save(mask + "Slave.xml"); } } }
private void saveExperimentToFilleToolStripMenuItem_Click(object sender, EventArgs e) { bvMaster.Save(); }