예제 #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 FindButton_Click(object sender, EventArgs e)
 {
     finder = new FindText(ref Editor);
     finder.Show();
     CommandPaleteGroupBox.Hide();
 }