Beispiel #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            // empty strings
            lblFileNamePlat.Text = lblFileNameHtml.Text = lblImageFileName.Text = lblHtmlMessage.Text = string.Empty;
            lblHtmlText.Text = lblHtmlLinksItemCount.Text = lblHtmlSelectedLinksItemCount.Text = string.Empty;

            // get registry values
            clsRegistry reg = new clsRegistry();
            reg.loadWindow(this, module);
            tcTool.SelectedIndex = clsRegistry.getInt32("tctool.index", 0);
            txtDownload.Text = clsRegistry.getString("downloads");
            checkExistingPath(gbDownloads, txtDownload.Text);
            lblFileNameHtml.Text = clsRegistry.getString("savedhtml");
            txtFilterLinksHtml.Text = clsRegistry.getString("filter");

            // get last clipboard text (not used?)
            savedClipboardText = getFromFile();

            getClipboardText();
        }
Beispiel #2
0
 private void dlgSettings_Load(object sender, EventArgs e)
 {
     clsRegistry reg = new clsRegistry();
     reg.loadWindow(this, module);
     if (savedSelectedTabPage != null)
         tabControl1.SelectedTab = savedSelectedTabPage;
     else
         tabControl1.SelectedIndex = clsRegistry.getInt32("tcSettingsIndex", 0);
 }
Beispiel #3
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 #4
0
 private void dlgSettings_FormClosing(object sender, FormClosingEventArgs e)
 {
     clsRegistry reg = new clsRegistry();
     reg.saveWindow(this, module);
     clsRegistry.setValue("tcSettingsIndex", tabControl1.SelectedIndex);
 }