public List <XmlMatchData> this[ActiveTimes active] { get { return(_activeTimeToMatchData[active]); } }
private bool ValidateInputs() { if (Name.Equals("")) { MessageBox.Show("Name must be filled!"); return(false); } if (ActiveDays.Equals("") && ActiveDays.Length != 7) { MessageBox.Show("Wrong Active Days!"); return(false); } if (!ActivePerDay.Equals("") && ActiveDays.Length == 7) { try { int num = Int32.Parse(ActivePerDay); } catch (Exception) { MessageBox.Show("Wrong active / day! Numbers required."); return(false); } } else { MessageBox.Show("Wrong active / day!"); return(false); } if (!ActiveHoursPerDay.Equals("")) { try { int num = Int32.Parse(ActiveHoursPerDay); } catch (Exception) { MessageBox.Show("Wrong active hours / day! Numbers required."); return(false); } } else { MessageBox.Show("Wrong active hours / day!"); return(false); } if (!ActiveTimes.Equals("")) { try { int num = Int32.Parse(ActiveTimes); } catch (Exception) { MessageBox.Show("Wrong active times! Numbers required."); return(false); } } else { MessageBox.Show("Wrong active hours / day!"); return(false); } if (!Price.Equals("")) { try { int num = Int32.Parse(Price); } catch (Exception) { MessageBox.Show("Wrong price! Numbers required."); return(false); } } else { MessageBox.Show("Wrong price"); return(false); } return(true); }
public List <XmlMatchData> GetMatchDataList(ActiveTimes active) { return(_activeTimeToMatchData[active]); }