public InvitationsWindow(MealSharers system, EaterMainWindow main) { this.system = system; this.main = main; InitializeComponent(); loadTable(); }
public Window1(MealSharers system, Window main) { InitializeComponent(); goback = false; this.system = system; this.main = main; }
public HygieneWindow(MealSharers system, SignupCookWindow signup) { InitializeComponent(); request = "NO"; this.system = system; this.signup = signup; }
public CookProfileWindow(MealSharers system, Window main) { goback = false; this.system = system; this.main = main; InitializeComponent(); Cook e = system.currentCook; if (e != null) { labelUserName.Content = e.userName; labelName.Content = e.name; labelAdress.Content = e.address; labelPhone.Content = e.phone; labelPostCode.Content = e.postCode; labelFood.Content = e.foodPreference; labelRating.Content = e.rating + ""; labelpvgissue.Content = e.PVGIssueDate; labelpvgstatus.Content = e.PVGstatus; if (e.hygieneStatus.Equals("renewal")) { labelhystatus.Content = "Renewal"; labelhystatus.Foreground = new SolidColorBrush(Colors.Red); button.Visibility = Visibility.Visible; } else { labelhystatus.Content = e.hygieneStatus; } labelhyexpire.Content = e.hygieneExpiryDate; } loadTable(); }
public ManagerMainWindow(MealSharers system, Window main) { this.system = system; this.main = main; InitializeComponent(); labelUser.Content = "Welcome " + system.currentAdmin.name + "!"; }
public QuarterlyWindow(MealSharers system, Window main) { this.system = system; this.main = main; InitializeComponent(); loadTables(); }
public CookCriticalWindow(MealSharers system, Window main) { this.system = system; this.main = main; goback = false; InitializeComponent(); loadTable(); }
public MyMealsCookWindow(MealSharers system, Window lastWindow) { InitializeComponent(); this.system = system; this.lastWindow = lastWindow; goback = false; loadTable(); }
public EaterSatisfactionWindow(MealSharers system, Window main) { this.system = system; this.main = main; goback = false; InitializeComponent(); loadTable(); }
public signupEaterWindow(MealSharers system, Window main) { InitializeComponent(); this.main = main; this.system = system; goback = false; form = false; comboBoxFood.ItemsSource = system.foodPreference.ToList(); }
public ReviewCookWindow(Meal m, MealSharers system, MyMealsCookWindow lastWindow) { this.m = m; this.system = system; this.lastWindow = lastWindow; InitializeComponent(); LoadImages(); lblRating.Text = intRate.ToString(); }
public CookMainWindow(MealSharers system, Window main) { InitializeComponent(); this.main = main; this.system = system; if (system.currentCook != null) { labelUser.Content = "Welcome " + system.currentCook.name + "!"; } loadTable(); }
public EaterMainWindow(MealSharers system, Window main) { InitializeComponent(); this.main = main; this.system = system; goback = false; if (system.currentEater != null) { labelUser.Content = "Welcome " + system.currentEater.name + "!"; } loadTable(); }
public MapVolunteerWindow(MealSharers system, Window main) { InitializeComponent(); goback = false; this.system = system; this.main = main; query = new StringBuilder(); query.Append("http://maps.google.com/maps?q="); webMap.Navigate(query.ToString()); loadTable(); }
public OfferMealWindow(MealSharers system, CookMainWindow main) { this.system = system; this.main = main; InitializeComponent(); selectedEater = null; List <string> filters = new List <string>(); filters.Add("Distance"); filters.Add("Food preference"); comboFilter.ItemsSource = filters; loadhours(); comboFoodKind.ItemsSource = system.foodPreference; }
public AdminProfileWindow(MealSharers system, Window main) { goback = false; this.system = system; this.main = main; InitializeComponent(); Administrator e = system.currentAdmin; if (e != null) { labelUserName.Content = e.username; labelName.Content = e.name; labelPhone.Content = e.phone; labelPost.Content = e.postcodeArea; } }
public EaterProfileWindow(MealSharers system, Window main) { goback = false; this.system = system; this.main = main; InitializeComponent(); Eater e = system.currentEater; if (e != null) { labelUserName.Content = e.userName; labelName.Content = e.name; labelAdress.Content = e.address; labelPhone.Content = e.phone; labelPostCode.Content = e.postCode; labelFood.Content = e.foodPreference; labelRating.Content = e.rating + ""; } }
public MainWindow() { InitializeComponent(); system = new MealSharers(); }