public override void ViewDidLoad() { base.ViewDidLoad(); TitleLabel.Text = Resources.DateFormat; var source = new DateFormatsTableViewSource(DateFormatsTableView, ViewModel.DateTimeFormats); DateFormatsTableView.Source = source; source.DateFormatSelected .Subscribe(ViewModel.SelectDateFormat.Inputs) .DisposedBy(disposeBag); BackButton.Rx() .BindAction(ViewModel.Close) .DisposedBy(disposeBag); }
public override void ViewDidLoad() { base.ViewDidLoad(); TitleLabel.Text = Resources.FirstDayOfTheWeek; DaysTableView.RegisterNibForCellReuse(DayOfWeekViewCell.Nib, DayOfWeekViewCell.Identifier); var source = new CustomTableViewSource <SectionModel <Unit, SelectableBeginningOfWeekViewModel>, Unit, SelectableBeginningOfWeekViewModel>( DayOfWeekViewCell.CellConfiguration(DayOfWeekViewCell.Identifier), ViewModel.BeginningOfWeekCollection ); source.Rx().ModelSelected() .Subscribe(ViewModel.SelectBeginningOfWeek.Inputs) .DisposedBy(DisposeBag); DaysTableView.Source = source; BackButton.Rx() .BindAction(ViewModel.Close) .DisposedBy(DisposeBag); }
public override void ViewDidLoad() { base.ViewDidLoad(); TitleLabel.Text = Resources.DurationFormat; DurationFormatsTableView.RowHeight = rowHeight; DurationFormatsTableView.RegisterNibForCellReuse(DurationFormatViewCell.Nib, DurationFormatViewCell.Identifier); var source = new CustomTableViewSource <SectionModel <Unit, SelectableDurationFormatViewModel>, Unit, SelectableDurationFormatViewModel>( DurationFormatViewCell.CellConfiguration(DurationFormatViewCell.Identifier), ViewModel.DurationFormats ); DurationFormatsTableView.Source = source; source.Rx().ModelSelected() .Subscribe(ViewModel.SelectDurationFormat.Inputs) .DisposedBy(disposeBag); BackButton.Rx() .BindAction(ViewModel.Close) .DisposedBy(disposeBag); }
public override void ViewDidLoad() { base.ViewDidLoad(); TitleLabel.Text = Resources.DateFormat; DateFormatsTableView.RegisterNibForCellReuse(DateFormatViewCell.Nib, DateFormatViewCell.Identifier); DateFormatsTableView.RowHeight = rowHeight; var source = new CustomTableViewSource <SectionModel <string, SelectableDateFormatViewModel>, string, SelectableDateFormatViewModel>( DateFormatViewCell.CellConfiguration(DateFormatViewCell.Identifier), ViewModel.DateTimeFormats ); DateFormatsTableView.Source = source; source.Rx().ModelSelected() .Subscribe(ViewModel.SelectDateFormat.Inputs) .DisposedBy(disposeBag); BackButton.Rx().Tap() .Subscribe(ViewModel.CloseWithDefaultResult) .DisposedBy(disposeBag); }