Exemple #1
0
 public void dayDateShowHide(MetroDateTime day, MetroLabel dayLabel,
                             MetroLabel fromLabel, MetroLabel toLabel, MetroComboBox fromHour,
                             MetroComboBox fromMinute, MetroComboBox toHour, MetroComboBox toMinute, int dayValue,
                             int?comboBoxValue)
 {
     if (comboBoxValue != null)
     {
         if (comboBoxValue > dayValue)
         {
             day.Show();
             dayLabel.Show();
             fromLabel.Show();
             toLabel.Show();
             fromHour.Show();
             fromMinute.Show();
             toHour.Show();
             toMinute.Show();
         }
         else
         {
             day.Hide();
             dayLabel.Hide();
             fromLabel.Hide();
             toLabel.Hide();
             fromHour.Hide();
             fromMinute.Hide();
             toHour.Hide();
             toMinute.Hide();
         }
     }
     else
     {
         day.Hide();
         dayLabel.Hide();
         fromLabel.Hide();
         toLabel.Hide();
         fromHour.Hide();
         fromMinute.Hide();
         toHour.Hide();
         toMinute.Hide();
     }
 }
Exemple #2
0
 public void eventDayShowHide(MetroLabel eventDayLabel, MetroComboBox eventDayComboBox, int dayValueToCompare,
                              int eventDays)
 {
     if (eventDays >= dayValueToCompare)
     {
         eventDayLabel.Show();
         eventDayComboBox.Show();
     }
     else
     {
         eventDayLabel.Hide();
         eventDayComboBox.Hide();
     }
 }