Ejemplo n.º 1
0
        private void CreateEmployeeBtn_Click(object sender, RoutedEventArgs e)
        {
            CreateEmployeeWindow createEmployeeWindow = new CreateEmployeeWindow();

            createEmployeeWindow.Show();
            this.Hide();
        }
 public CreateEmployeeWindow()
 {
     InitializeComponent();
     CreateEmployeeWindowInstance = this;
     RankCB.ItemsSource           = new List <string>
     {
         "Deltidsmedarbejder",
         "Butikschef"
     };
     CreateEmployeeBtn.IsEnabled = false;
     FirstNameTB.GotFocus       += FirstNameTBGotFocus;
     LastNameTB.GotFocus        += LastNameTBGotFocus;
     this.Closing += WindowClosed;
 }