public ModuleMainFormBase ShowDialog(System.Windows.Forms.Form owner, ModuleMainFormBase formToStart, bool isMDIChild, string formName) { if (ModuleClassBase.moduleParams == null) { throw new Exception("Parametri nisu definirani"); } if (isMDIChild) { formToStart.MdiParent = owner; } formToStart.Show(); formToStart.Text = formName; this.isMDIChild = isMDIChild; return(formToStart); }
public ModuleMainFormBase ShowDialog(System.Windows.Forms.Form owner, ModuleMainFormBase formToStart, bool isMDIChild, string formName) { if (ModuleClassBase.moduleParams == null) { throw new Exception("Parametri nisu definirani"); } if (isMDIChild) { formToStart.MdiParent = owner; } formToStart.Show(); formToStart.Text = formName; this.isMDIChild = isMDIChild; return formToStart; }