private void button_Click(object sender, RoutedEventArgs e)
        {
            AddHolidayType addHolidayType = new AddHolidayType();

            addHolidayType.mode = 1;
            addHolidayType.Show();
        }
        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();
        }