Exemplo n.º 1
0
        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);
 }
Exemplo n.º 3
0
        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);
 }
Exemplo n.º 6
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     PersistControlValue.StoreControlValue(richTextBox1);
 }
Exemplo n.º 7
0
 private void frmCompareNAS_FormClosing(object sender, FormClosingEventArgs e)
 {
     PersistControlValue.StoreControlValue(txtNASteamindeling);
     PersistControlValue.StoreControlValue(txtNASLeden);
 }
Exemplo n.º 8
0
 private void frmVCard_FormClosing(object sender, FormClosingEventArgs e)
 {
     PersistControlValue.StoreControlValue(txtOutputLocation);
 }