Ejemplo n.º 1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            AddHolidayType addHolidayType = new AddHolidayType();

            addHolidayType.mode = 1;
            addHolidayType.Show();
        }
Ejemplo n.º 2
0
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var            x = ((HolidayType)datagridview.SelectedItem);
            AddHolidayType addHolidayType = new AddHolidayType();

            addHolidayType.holidaytypeid = x.HolidayTypeID;
            addHolidayType.mode          = 2;
            addHolidayType.Show();
        }