Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        /// <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);
        }