public XF_DriverLicenseNewEdit(IDriverLicenseManager manager)
        {
            InitializeComponent();

            if (manager == null)
                throw new ArgumentNullException("manager");

            this.Manager = manager;

            this.Load += XF_DriverLicenseNewEdit_Load;
            this.gridViewReminders.RowCellClick += gridViewReminders_RowCellClick;
        }
        public XF_DriverLicenseNewEdit(IDriverLicenseManager manager)
        {
            InitializeComponent();

            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }

            this.Manager = manager;

            this.Load += XF_DriverLicenseNewEdit_Load;
            this.gridViewReminders.RowCellClick += gridViewReminders_RowCellClick;
        }
示例#3
0
 public MainForm(IAddressManager addressManager, IClientManager clientManager, IDriverLicenseManager driverLicenseManager, IFuelManager fuelManager,
                 IInspectionManager inspectionManager, ITransportCategoryManager transportCategoryManager, ITransportMakeManager transportMakeManager,
                 ITransportManager transportManager, ITransportModelManager transportModelManager, AboutForm aboutForm)
 {
     InitializeComponent();
     this.addressManager           = addressManager;
     this.clientManager            = clientManager;
     this.driverLicenseManager     = driverLicenseManager;
     this.fuelManager              = fuelManager;
     this.inspectionManager        = inspectionManager;
     this.transportCategoryManager = transportCategoryManager;
     this.transportMakeManager     = transportMakeManager;
     this.transportManager         = transportManager;
     this.transportModelManager    = transportModelManager;
     this.aboutForm  = aboutForm;
     dataGridManager = new DataGridManager(dataGrid);
 }
 public static DialogResult ShowWindow(IDriverLicenseManager manager)
 {
     using (XF_DriverLicenseNewEdit form = new XF_DriverLicenseNewEdit(manager))
         return form.ShowDialog();
 }
 public static DialogResult ShowWindow(IDriverLicenseManager manager)
 {
     using (XF_DriverLicenseNewEdit form = new XF_DriverLicenseNewEdit(manager))
         return(form.ShowDialog());
 }