void ReleaseDesignerOutlets()
        {
            if (ButtonSave != null)
            {
                ButtonSave.Dispose();
                ButtonSave = null;
            }

            if (LabelStandardzeit != null)
            {
                LabelStandardzeit.Dispose();
                LabelStandardzeit = null;
            }

            if (PickerDefaultTime != null)
            {
                PickerDefaultTime.Dispose();
                PickerDefaultTime = null;
            }

            if (VersionLabel != null)
            {
                VersionLabel.Dispose();
                VersionLabel = null;
            }
        }
Ejemplo n.º 2
0
 public AppSettingsViewController(IntPtr handle) : base(handle)
 {
     ViewModel = App.Container.Get <AppSettingsViewModel>();
     ViewModel.PropertyChanged += (object sender, PropertyChangedEventArgs e) =>
     {
         if (sender is AppSettingsViewModel viewModel)
         {
             if (!base.IsViewLoaded)
             {
                 return;
             }
             var timeSettings = viewModel.CurrentSettings;
             var now          = DateTimeOffset.Now;
             var dt           = new DateTime(now.Year, now.Month, now.Day, timeSettings.Hour, timeSettings.Minute, 0);
             PickerDefaultTime.SetDate(dt.ToNSDate(), true);
         }
     };
 }