Пример #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            AddHoliday addHoliday = new AddHoliday();

            addHoliday.mode  = 1;
            addHoliday.empid = empid;
            addHoliday.Show();
        }
Пример #2
0
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var        x          = ((DMSIClass._Holiday)datagridview.SelectedItem);
            AddHoliday addHoliday = new AddHoliday();

            addHoliday.holidayid = x.HolidayID;
            addHoliday.mode      = 2;
            addHoliday.empid     = empid;
            addHoliday.Show();
        }