Exemplo n.º 1
0
 public void OpenFile(IMainForm main_form, ActiveCodeFile file)
 {
     DocumentPage tab = new DocumentPage(main_form, file);
     if (FontToUse != null)
         tab.Input.Font = FontToUse;
     tab.SetInitialText(File.ReadAllText(file.Location));
     tabControl.TabPages.Add(tab);
     tabControl.SelectedTab = tab;
 }
Exemplo n.º 2
0
 public void OpenFile(IMainForm main_form)
 {
     DocumentPage tab = new DocumentPage(main_form);
     if (FontToUse != null)
         tab.Input.Font = FontToUse;
     //tab.SetInitialText();
     tabControl.TabPages.Add(tab);
     tabControl.SelectedTab = tab;
 }