private void Pay(object obj) { SaveToJSON.SaveList(filePathJson, SummaryMedicament); SaveToXML.SaveList(filePathXml, SummaryMedicament); MessageBox.Show("Twoje zamówienie zostało wysłane. Dziękujemy za skorzystanie z serwisu AptekaBezRecepty"); Environment.Exit(1); }
/// <summary> /// Saves this Sketch to the specified file path. /// </summary> /// <param name="filename">The path of the file to write</param> public void SaveSketch(string filename) { Sketch.Name = System.IO.Path.GetFileNameWithoutExtension(filename); setCircuitInfo(circuit); SaveToXML xmlHolder = new SaveToXML(project); xmlHolder.WriteXML(filename); }
private void сохранитьExelToolStripMenuItem_Click(object sender, EventArgs e) { var row = MainGridView.Rows[currentRow]; var tubeParty = (string)row.Cells[3].Value; Text = tubeParty; saveFileDialog1.FileName = tubeParty + ".xml"; if (DialogResult.OK == saveFileDialog1.ShowDialog() && "" != saveFileDialog1.FileName) { int id = (int)row.Cells[0].Value; SaveToXML.Save(id, tubeParty, saveFileDialog1.FileName); } }
/// <summary> /// Saves this Sketch to the specified file path. /// </summary> /// <param name="filename">The path of the file to write</param> public void SaveSketch(string filename, CircuitSimLib.Circuit circuit) { SaveToXML xmlHolder = new SaveToXML(Sketch, circuit); xmlHolder.WriteXML(filename); }