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(); }
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); }