public CreateHistoryPage(ComicCon con, bool isNewCon) { ViewModel = new CreateHistoryViewModel(Navigation, con); BindingContext = ViewModel; InitializeComponent(); eventNameEntry.Text = ViewModel.ComicConTemp.EventName; cityNameEntry.Text = ViewModel.ComicConTemp.City; statePicker.Text = ViewModel.ComicConTemp.State; attendanceEntry.Text = isNewCon ? "" : con.Attendance.ToString(); submittButton.Text = isNewCon ? "Add" : "Edit"; _isNewCon = isNewCon; _conId = con.Id; }
public CreateCommand(History history, CreateHistoryViewModel createHistoryViewModel) { History = history; _createHistoryViewModel = createHistoryViewModel; }
public CreateHistoryForm() { InitializeComponent(); DataContext = new CreateHistoryViewModel(); }