Beispiel #1
0
        private void back(object sender, RoutedEventArgs e)
        {
            Window a = new HRMFireEmployee(employee, emp2);

            a.Show();
            this.Close();
        }
 private void selectitem(object sender, SelectionChangedEventArgs e)
 {
     if (!datagrid.SelectedValue.Equals(""))
     {
         DataRow  data  = dt2.Rows[datagrid.SelectedIndex];
         Employee viewe = new Employee(data["id"].ToString(), data["name"].ToString(), data["password"].ToString(), Int32.Parse(data["salary"].ToString()), float.Parse(data["rating"].ToString()), Int32.Parse(data["ratecount"].ToString()));
         Window   a     = new HRMFireEmployee(employee, viewe);
         a.Show();
         this.Close();
     }
 }