public EditDepartmentWindow(Department departmentEdit) { InitializeComponent(); DataContext = new DataManageVM(); DataManageVM.SelectedDepartment = departmentEdit; DataManageVM.DepartmentName = departmentEdit.Name; }
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; }
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; }
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; }
public AddNewSupplyWindow() { InitializeComponent(); DataContext = new DataManageVM(); }
public AddNewDepartmentWindow() { InitializeComponent(); DataContext = new DataManageVM(); }
public AddNewPositionWindow() { InitializeComponent(); DataContext = new DataManageVM(); }