public addCar(employess e) { InitializeComponent(); List <string> CarLevelList = new List <string>(); CarLevelList.Add("Премиум"); CarLevelList.Add("Средний"); CarLevelList.Add("Эконом"); CarLevel.ItemsSource = CarLevelList; em = e; }
public addEmployee(employess e) { InitializeComponent(); List <string> PositionList = new List <string>(); PositionList.Add("Admin"); PositionList.Add("Manager"); PositionList.Add("Driver"); Position.ItemsSource = PositionList; em = e; }
public carRow(string carName, string carNumber, string yearOfIssue, string carState, string carLevel, employess e = null) { InitializeComponent(); CarName.Text = carName; CarNumber.Text = carNumber; YearOfIssue.Text = yearOfIssue; CarState.Text = carState; switch (carState) { case "Свободна": CarState.Foreground = Brushes.ForestGreen; break; case "Занята": CarState.Foreground = Brushes.DarkRed; break; } switch (carLevel) { case "Премиум": CarLevel.Source = new BitmapImage(new Uri("../img/Premium.png", UriKind.Relative)); break; case "Средний": CarLevel.Source = new BitmapImage(new Uri("../img/Average.png", UriKind.Relative)); break; case "Эконом": CarLevel.Source = new BitmapImage(new Uri("../img/Econom.png", UriKind.Relative)); break; } em = e; }
public userRowForAdmin(string name, string position, string userName, employess e) { InitializeComponent(); Name.Text = name; Position.Text = position; Login.Text = userName; switch (position) { case "Admin": UserImage.Source = new BitmapImage(new Uri("../img/Admin-Photo.png", UriKind.Relative)); break; case "Manager": UserImage.Source = new BitmapImage(new Uri("../img/Manager-Photo.png", UriKind.Relative)); break; case "Driver": DeleteBt.Visibility = Visibility.Visible; UserImage.Source = new BitmapImage(new Uri("../img/Driver-Photo.png", UriKind.Relative)); break; } em = e; }
public DeleteUser(string name, employess e) { InitializeComponent(); UserRow.Text = name; em = e; }