コード例 #1
0
        private void HandleEdit(DriverLicenseModel mod, RowCellClickEventArgs e)
        {
            var manager = DriverLicenseManager.CreateEdit(mod.DriverLicenseID);

            if (XF_DriverLicenseNewEdit.ShowWindow(manager) == DialogResult.Yes)
            {
                RefreshLicenses();
            }
        }
コード例 #2
0
        private void btnNewLicense_Click(object sender, EventArgs e)
        {
            var manager = DriverLicenseManager.CreateNew(this.Manager.Filter.DriverIDUint);

            if (XF_DriverLicenseNewEdit.ShowWindow(manager) == DialogResult.Yes)
            {
                RefreshLicenses();
            }
        }
コード例 #3
0
        private void btnNewLicense_Click(object sender, EventArgs e)
        {
            var manager = DriverCatalogManager.Create(true);

            using (XF_DriverFinder find = new XF_DriverFinder(manager))
            {
                if (find.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
                {
                    var dmanager = DriverLicenseManager.CreateNew(manager.ActiveDriver.DriverID);
                    if (XF_DriverLicenseNewEdit.ShowWindow(dmanager) == DialogResult.Yes)
                    {
                        RefreshLicenses();
                    }
                }
            }
        }
コード例 #4
0
 public static DialogResult ShowWindow(IDriverLicenseManager manager)
 {
     using (XF_DriverLicenseNewEdit form = new XF_DriverLicenseNewEdit(manager))
         return form.ShowDialog();
 }
コード例 #5
0
 public static DialogResult ShowWindow(IDriverLicenseManager manager)
 {
     using (XF_DriverLicenseNewEdit form = new XF_DriverLicenseNewEdit(manager))
         return(form.ShowDialog());
 }