Beispiel #1
0
        private void frmMain_FormClosed(object sender, FormClosedEventArgs e)
        {
            // save registry values
            clsRegistry reg = new clsRegistry();
            reg.saveWindow(this, module);

            clsRegistry.setValue("tctool.index", tcTool.SelectedIndex);
            clsRegistry.setValue("downloads", txtDownload.Text);
            clsRegistry.setValue("savedhtml", lblFileNameHtml.Text);
            clsRegistry.setValue("filter", txtFilterLinksHtml.Text);

            // save last clipboard text (used if clipboard empty)
            using (StreamWriter outfile = new StreamWriter(clipboardtextfilename))
            {
                outfile.Write(savedClipboardText);
            }
        }
Beispiel #2
0
 private void dlgSettings_FormClosing(object sender, FormClosingEventArgs e)
 {
     clsRegistry reg = new clsRegistry();
     reg.saveWindow(this, module);
     clsRegistry.setValue("tcSettingsIndex", tabControl1.SelectedIndex);
 }