示例#1
0
 public Main()
 {
     InitializeComponent();
     printCtrl          = new RichTextBoxPrintCtrl();
     BibliographyWizard = new BibliographyWizard();
     HeaderWizard       = new HeaderWizard();
     spellChecker       = new SpellChecker();
     researchHelper     = new ResearchHelper();
     finder             = new FindText(ref Editor);
     speechWizard       = new SpeechWizard();
     colorCoder         = new ColorCoder();
     merger             = new Merger();
     rephraser          = new Rephraser();
     this.WindowState   = FormWindowState.Maximized;
     this.Text          = "TextStudio -" + filepath;
     currentsyle        = FontStyle.Regular;
     LoadFonts();
     LoadBibliographyOptions();
     LoadHeaderFormatOptions();
     spellChecker.Load();
     ZoomGroupBox.Hide();
     HideCommandPalete();
     foreach (string args in Environment.GetCommandLineArgs())
     {
         try
         {
             Editor.LoadFile(args);
             filepath = args;
         }
         catch
         {
         }
     }
 }
示例#2
0
 private void ResearchButton_Click(object sender, EventArgs e)
 {
     researchHelper = new ResearchHelper();
     researchHelper.Show();
 }