private void openFile(file a) { mainForm.setAndReadCurrentFileProject(a); this.Hide(); using (frmWaitForm frm = new frmWaitForm(mainForm.readContentFile)) { //mainForm.readContentFile(); frm.ShowDialog(this); } closeForm(); mainForm.openEditorForm(); mainForm.openRawForm(); mainForm.openWebBrowserForm(); //mainForm.openPreviewForm(); mainForm.writeContentToRichTextBoxRawForm(); //mainForm.writeContentToRichTextBoxPreviewForm(); }