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 { } } }
private void ResearchButton_Click(object sender, EventArgs e) { researchHelper = new ResearchHelper(); researchHelper.Show(); }