コード例 #1
0
 public ModEmployeeWindow(MainWindow mWindow, Employee oldEmployee, List<int> IDList)
 {
     this.mWindow = mWindow;
     this.modEmployee = new Employee()
     {
         EmployeeID = oldEmployee.EmployeeID,
         FirstName = oldEmployee.FirstName,
         LastName = oldEmployee.LastName,
         BirthDate = oldEmployee.BirthDate,
         HireDate = oldEmployee.HireDate,
         Address = oldEmployee.Address,
         PostalCode = oldEmployee.PostalCode,
         City = oldEmployee.City,
         Country = oldEmployee.Country,
         Region = oldEmployee.Region,
         ReportsTo = oldEmployee.ReportsTo,
         EmployeeTerritories = oldEmployee.EmployeeTerritories,
         Extension = oldEmployee.Extension,
         HomePhone = oldEmployee.HomePhone,
         Notes = oldEmployee.Notes,
         Photo = oldEmployee.Photo,
         PhotoPath = oldEmployee.PhotoPath,
         Title = oldEmployee.Title,
         TitleOfCourtesy = oldEmployee.TitleOfCourtesy
     };
     this.IDList = IDList;
     this.Register(this.mWindow);
     InitializeComponent();
     FillFieldsDefault();
     this.Show();
 }
コード例 #2
0
 public DelEmployeeWindow(MainWindow mWindow)
 {
     this.mWindow = mWindow;
     this.Register(this.mWindow);
     InitializeComponent();
     this.Show();
 }
コード例 #3
0
 private void Unregister(MainWindow mWindow)
 {
     ModEmployeeEvent -= this.mWindow.HandleModEmp;
 }
コード例 #4
0
 private void Register(MainWindow mWindow)
 {
     ModEmployeeEvent += new EventHandler<ModEmpEventArgs>(this.mWindow.HandleModEmp);
 }