protected void OnButtonAddClicked(object sender, EventArgs e) { ITdiTab mytab = TdiHelper.FindMyTab (this); if (mytab == null) return; AccountDlg dlg = new AccountDlg (ParentReference); mytab.TabParent.AddSlaveTab (mytab, dlg); }
protected void OnButtonEditClicked(object sender, EventArgs e) { ITdiTab mytab = DialogHelper.FindParentTab(this); if (mytab == null) { return; } AccountDlg dlg = new AccountDlg(ParentReference, datatreeviewAccounts.GetSelectedObjects() [0] as Account); mytab.TabParent.AddSlaveTab(mytab, dlg); }
protected void OnButtonAddClicked(object sender, EventArgs e) { ITdiTab mytab = DialogHelper.FindParentTab(this); if (mytab == null) { return; } AccountDlg dlg = new AccountDlg(ParentReference); mytab.TabParent.AddSlaveTab(mytab, dlg); }
protected void OnButtonEditClicked(object sender, EventArgs e) { ITdiTab mytab = TdiHelper.FindMyTab (this); if (mytab == null) return; AccountDlg dlg = new AccountDlg (ParentReference, datatreeviewAccounts.GetSelectedObjects () [0] as Account); mytab.TabParent.AddSlaveTab (mytab, dlg); }