Exemple #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            AddNightShiftType addNightShiftType = new AddNightShiftType();

            addNightShiftType.mode = 1;
            addNightShiftType.Show();
        }
Exemple #2
0
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var x = ((NightShiftType)datagridview.SelectedItem);
            AddNightShiftType addNightShiftType = new AddNightShiftType();

            addNightShiftType.nightshifttypeid = x.NightShiftTypeID;
            addNightShiftType.mode             = 2;
            addNightShiftType.Show();
        }