Exemplo n.º 1
0
        void CreateCompany()
        {
            FrmCompanyEdit frmCompanyEdit = new FrmCompanyEdit(null);

            frmCompanyEdit.DataSourceChanged += OnDataChanged;
            frmCompanyEdit.ShowDialog();
        }
Exemplo n.º 2
0
        void EditFocusedCompany()
        {
            //if (!GlobeSettings.HasRight(2001))
            //    return;

            CompanyEntity company = FocusedHeader;

            if (company == null)
            {
                MsgBox.Warn("请选中要修改的行。");
                return;
            }

            FrmCompanyEdit frmCompanyEdit = new FrmCompanyEdit(company);

            frmCompanyEdit.DataSourceChanged += OnDataChanged;
            frmCompanyEdit.ShowDialog();
        }