Exemple #1
0
 public CalendarConfiguration()
 {
     if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
     {
         this.AddSubview(new CalendarConfiguration_Tablet());
     }
     else
     {
         phoneView = new CalendarConfiguration_Mobile();
         this.AddSubview(phoneView);
         this.OptionView = phoneView.option;
     }
 }
Exemple #2
0
 public override View GetSampleContent(Android.Content.Context con)
 {
     if (IsTabletDevice(con))
     {
         CalendarConfiguration_Tab tab = new CalendarConfiguration_Tab();
         return(tab.GetSampleContent(con));
     }
     else
     {
         mobile = new CalendarConfiguration_Mobile();
         return(mobile.GetSampleContent(con));
     }
 }
Exemple #3
0
        public void Dispose()
        {
            if (mobile != null)
            {
                mobile.Dispose();
                mobile = null;
            }

            if (tab != null)
            {
                tab.Dispose();
                tab = null;
            }
        }
Exemple #4
0
 public CalendarConfiguration()
 {
     phoneView = new CalendarConfiguration_Mobile();
     this.AddSubview(phoneView);
     this.OptionView = phoneView.Option;
 }