private void ColRoleTypes_EditItemClicked(object sender, MyCommonWPFControls.EditItemClickEventArg e) { frmRoleType frm = null; if ((sender as MyStaticLookup).SelectedItem == null) { frm = new MyProject_WPF.frmRoleType(0); } else { var roleTypeDTO = (sender as MyStaticLookup).SelectedItem as RoleTypeDTO; frm = new MyProject_WPF.frmRoleType(roleTypeDTO.ID); } MyProjectManager.GetMyProjectManager.ShowDialog(frm, "نوع نقش"); frm.RoleTypeaved += (sender1, e1) => Frm_RoleTypeaved(sender1, e1, (sender as MyStaticLookup)); }
private void RoleTypesNode_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { frmRoleType frm = new frmRoleType(0); AddPane(frm, "نوع نقش"); }