예제 #1
0
 public EditDepartmentWindow(Department departmentEdit)
 {
     InitializeComponent();
     DataContext = new DataManageVM();
     DataManageVM.SelectedDepartment = departmentEdit;
     DataManageVM.DepartmentName     = departmentEdit.Name;
 }
예제 #2
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext        = new DataManageVM();
     AllDepartmentsView = ViewAllDepartments;
     AllPositionsView   = ViewAllPositions;
     AllUsersView       = ViewAllUsers;
 }
 public EditSupplyWindow(Supply supplyToEdit)
 {
     InitializeComponent();
     DataContext = new DataManageVM();
     DataManageVM.SelectedSupply    = supplyToEdit;
     DataManageVM.SupplyDate        = supplyToEdit.Date;
     DataManageVM.SupplyCountOfPart = supplyToEdit.CountOfPart;
 }
 public MainWindow()
 {
     InitializeComponent();
     DataContext      = new DataManageVM();
     AllSuppliersView = ViewAllSuppliers;
     AllPartsView     = ViewAllParts;
     AllSupplysView   = ViewAllSupplys;
 }
 public EditSuppliersWindow(Supplier supplierToEdit)
 {
     InitializeComponent();
     DataContext = new DataManageVM();
     DataManageVM.SelectedSupplier = supplierToEdit;
     DataManageVM.SupplierAdress   = supplierToEdit.Adress;
     DataManageVM.SupplierName     = supplierToEdit.Name;
     DataManageVM.SupplierPhone    = supplierToEdit.Phone;
 }
예제 #6
0
 public EditPositionWindow(Position positionToEdit)
 {
     InitializeComponent();
     DataContext = new DataManageVM();
     DataManageVM.SelectedPosition  = positionToEdit;
     DataManageVM.PositionName      = positionToEdit.Name;
     DataManageVM.PositionMaxNumber = positionToEdit.MaxNumber;
     DataManageVM.PositionSalary    = positionToEdit.Salary;
 }
 public EditUserWindow(User userToEdit)
 {
     InitializeComponent();
     DataContext = new DataManageVM();
     DataManageVM.SelectedUser = userToEdit;
     DataManageVM.UserName     = userToEdit.Name;
     DataManageVM.UserSurName  = userToEdit.SurName;
     DataManageVM.UserPhone    = userToEdit.Phone;
 }
예제 #8
0
 public EditPartsWindow(Part partToEdit)
 {
     InitializeComponent();
     DataContext = new DataManageVM();
     DataManageVM.SelectedPart   = partToEdit;
     DataManageVM.PartName       = partToEdit.Name;
     DataManageVM.PartNote       = partToEdit.Note;
     DataManageVM.PartPrice      = partToEdit.Price;
     DataManageVM.PartVendorCode = partToEdit.VendorCode;
 }
예제 #9
0
 public AddNewSupplyWindow()
 {
     InitializeComponent();
     DataContext = new DataManageVM();
 }
예제 #10
0
 public AddNewDepartmentWindow()
 {
     InitializeComponent();
     DataContext = new DataManageVM();
 }
예제 #11
0
 public AddNewPositionWindow()
 {
     InitializeComponent();
     DataContext = new DataManageVM();
 }