コード例 #1
0
        private void MyStaticLookup_EditItemClicked(object sender, MyCommonWPFControls.EditItemClickEventArg e)
        {
            frmOrganizationType frm = null;

            if (lokOrganizationType.SelectedItem == null)
            {
                frm = new MyProject_WPF.frmOrganizationType(0);
            }
            else
            {
                var orgType = lokOrganizationType.SelectedItem as OrganizationTypeDTO;
                frm = new MyProject_WPF.frmOrganizationType(orgType.ID);
            }
            MyProjectManager.GetMyProjectManager.ShowDialog(frm, "نوع سازمان");
            frm.OrganizationTypeSaved += Frm_OrganizationTypeSaved;
        }
コード例 #2
0
        private void OrganizationtypeNode_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            frmOrganizationType frm = new frmOrganizationType(0);

            AddPane(frm, "نوع سازمان");
        }