public static void ShowTextEditor(frmTextEditor frm) { if (frm == null) { return; } if (Program.MainForm.DockPanel.DocumentStyle == DocumentStyles.SystemMdi) { frm.MdiParent = Program.MainForm; frm.Show(); } else if (Program.MainForm.DockPanel.DocumentStyle == DocumentStyles.DockingWindow) { frm.Show(); } else { frm.Show(Program.MainForm.DockPanel); } }
internal static void ShowTextEditor(frmTextEditor frm) { if (frm == null) { return; } if (Program.MainForm.DockPanel.DocumentStyle == DocumentStyle.SystemMdi) { frm.MdiParent = Program.MainForm; frm.Show(); frm.WindowState = System.Windows.Forms.FormWindowState.Maximized; } else if (Program.MainForm.DockPanel.DocumentStyle == DocumentStyle.DockingWindow) { frm.Show(); } else { frm.Show(Program.MainForm.DockPanel); } }