Beispiel #1
0
 private void checkHtml(object sender, EventArgs e)
 {
     tmpTabPage = this.tabPages[currentTab()];
     if (tmpTabPage.getExtension().Contains("html"))
     {
         this.activateWebView();
     }
 }
Beispiel #2
0
 private void tEdit_Load(object sender, EventArgs e)
 {
     tmpTabPage                = tabPages[tabPageCounter] = new CodieTabPageEditor();
     tmpTabPage.scintilla      = new ScintillaNET.Scintilla();
     tmpTabPage.scintilla.Dock = DockStyle.Fill;
     tmpTabPage.tabPage        = tabPage0;
     tmpTabPage.tabPage.Controls.Add(tmpTabPage.scintilla);
     tmpTabPage.configureTabPage();
     this.splitContainer.Panel2Collapsed = true;
 }
Beispiel #3
0
 private void addTabPage(string text)
 {
     ++tabPageCounter;
     tmpTabPage              = tabPages[tabPageCounter] = new CodieTabPageEditor();
     tmpTabPage.tabPage      = new TabPage();
     tmpTabPage.tabPage.Name = "tabPage" + String.Format("{0}", tabPageCounter);
     tmpTabPage.tabPage.Text = text;
     editTabs.TabPages.Add(tmpTabPage.tabPage);
     tmpTabPage.scintilla      = new ScintillaNET.Scintilla();
     tmpTabPage.scintilla.Dock = DockStyle.Fill;
     editTabs.SelectTab(tmpTabPage.tabPage);
     tmpTabPage.tabPage.Controls.Add(tmpTabPage.scintilla);
     tmpTabPage.configureTabPage();
 }