private void OpenView(string text, ViewMode mode)
        {
            TextViewForm form = new TextViewForm(text, mode);

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog();
        }
 private void OpenView(string text, ViewMode mode)
 {
     TextViewForm form = new TextViewForm(text, mode);
     form.StartPosition = FormStartPosition.CenterParent;
     form.ShowDialog();
 }