Пример #1
0
 public NumericUpDown()
 {
     if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
     {
         this.AddSubview(new NumericUpDown_Tablet());
     }
     else
     {
         phoneView = new NumericUpDown_Mobile();
         this.AddSubview(phoneView);
         this.OptionView = phoneView.option;
     }
 }
Пример #2
0
 public override View GetSampleContent(Android.Content.Context con)
 {
     if (IsTabletDevice(con))
     {
         NumericUpDown_Tab tab = new NumericUpDown_Tab();
         return(tab.GetSampleContent(con));
     }
     else
     {
         mobile = new NumericUpDown_Mobile();
         return(mobile.GetSampleContent(con));
     }
 }