Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();
            this.Icon = Resources.BrowserIcon;
            this.Text = string.Format("{0} v{1}", this.Text, this.ProductVersion);

            LoadSettings();
            LoadSelectionStyle();
            FillTemplatesComboBox();
            FillFindByComboBox();

            browserForm = new BrowserForm(this, this.tbUrl.Text);
            browserForm.Show();
        }
Beispiel #2
0
 private void tsbOpenWebBrowser_Click(object sender, EventArgs e)
 {
     if (this.browserForm.IsDisposed)
     {
         this.browserForm = new BrowserForm(this, this.tbUrl.Text);
         this.browserForm.Show();
     }
     else
     {
         if (this.browserForm.WindowState == FormWindowState.Minimized)
             this.browserForm.WindowState = FormWindowState.Normal;
     }
     this.browserForm.Activate();
 }