private void frmVCard_FormClosing(object sender, FormClosingEventArgs e) { PersistControlValue.StoreControlValue(txtOutputLocation); bool changed = false; foreach (tblCrediteur d in crediteuren) { if (d.Dirty) { changed = true; break; } } if (changed) { DialogResult dr = MessageBox.Show("Save changes?", "Save changes?", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { cmdSave.PerformClick(); } else { dataAdaptor.CancelTransaction(true); } } // e.Cancel = false; }
private void frmRekeningVersturen_FormClosing(object sender, FormClosingEventArgs e) { PersistControlValue.StoreControlValue(txtFilePrefixB); PersistControlValue.StoreControlValue(txtFileSeqnrB); PersistControlValue.StoreControlValue(txtMsgIDB); PersistControlValue.StoreControlValue(txtOutputLocationIncB); PersistControlValue.StoreControlValue(chkPrintVerslagB); }
private void frmExportLijsten_FormClosing(object sender, FormClosingEventArgs e) { // Create a XmlWriter to write with. XmlSerializer serializer = new XmlSerializer(typeof(tblVCard)); XmlWriterSettings settings = new XmlWriterSettings(); settings.Encoding = System.Text.Encoding.UTF8; XmlWriter writer = XmlWriter.Create(contactFileNameXML, settings); XmlSerializerNamespaces namespaces = new XmlSerializerNamespaces(); namespaces.Add("", ""); serializer.Serialize(writer, vCardLijst, namespaces); writer.Close(); PersistControlValue.StoreControlValue(txtOutputLocation); }
private void frmRekeningOverzicht2_FormClosing(object sender, FormClosingEventArgs e) { PersistControlValue.StoreControlValue(txtStornoKosten); }
private void frmRekeningOverzicht2_FormClosing(object sender, FormClosingEventArgs e) { PersistControlValue.StoreControlValue(chkFilter); }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { PersistControlValue.StoreControlValue(richTextBox1); }
private void frmCompareNAS_FormClosing(object sender, FormClosingEventArgs e) { PersistControlValue.StoreControlValue(txtNASteamindeling); PersistControlValue.StoreControlValue(txtNASLeden); }
private void frmVCard_FormClosing(object sender, FormClosingEventArgs e) { PersistControlValue.StoreControlValue(txtOutputLocation); }