private void NextStep(object sender, EventArgs e) { _event.Title = _txtTitle.Text; _event.Description = _txtDescription.Text; _event.Location = _txtLocation.Text; var dateAndTimeString = _txtDate.Text + " " + _txtTime.Text; //TODO AddValidation if (_txtTitle.Text.Length <= 0 || _txtLocation.Text.Length <= 0) { Toast.MakeText(_context, "Missing felds !", ToastLength.Long).Show(); } else if (DateTime.TryParse(dateAndTimeString, out _)) { _event.DateOfOccurance = DateTime.Parse(dateAndTimeString); EventNextStep.Invoke(this, new AddNewEventFinall(_event)); Dismiss(); } else { Toast.MakeText(_context, "Missing felds !", ToastLength.Long).Show(); } }
private void NextStep(object sender, EventArgs e) { EventNextStep.Invoke(this, new AddNewEventDate(_txtData.DateTime)); Dismiss(); }
private void NextStep(object sender, EventArgs e) { _time = new TimeSpan((int)_txtTime.CurrentHour, (int)_txtTime.CurrentMinute, 0); EventNextStep.Invoke(this, new AddNewEventTime(_time)); Dismiss(); }
private void NextStep(object sender, EventArgs e) { EventNextStep.Invoke(this, new AddNewEventEvent(_txtTitle.Text, _txtDescription.Text, _txtLocation.Text)); Dismiss(); }