public static void CreateAdd(ILogicAdd logicAdd, IDialog dialog) { if (dialog is CDialog) { (dialog as CDialog).DialogAdd = new CDialogAdd(logicAdd, dialog); } }
internal CDialogAdd(ILogicAdd logicAdd, IDialog dialog) { InitializeComponent(); _dialog = dialog as CDialog; _logicAdd = logicAdd; }