private void CreateOptionView()
        {
            scheduleEditor.CreateOptionWindow();
            var deviceType = UIDevice.CurrentDevice.Model;

            if (deviceType == "iPad")
            {
                scheduleEditor.timezoneLabel.Frame  = new CGRect(10, 0, 320, 30);
                scheduleEditor.timezoneButton.Frame = new CGRect(0, scheduleEditor.timezoneLabel.Frame.Bottom, 320, 30);
                scheduleEditor.doneButton.Frame     = new CGRect(0, scheduleEditor.timezoneButton.Frame.Bottom, 320, 30);
                scheduleEditor.timeZonePicker.Frame = new CGRect(0, scheduleEditor.doneButton.Frame.Bottom, 320, 200);
            }
            else
            {
                scheduleEditor.timezoneLabel.Frame  = new CGRect(0, 0, this.Frame.Size.Width, 30);
                scheduleEditor.timezoneButton.Frame = new CGRect(0, scheduleEditor.timezoneLabel.Frame.Bottom, this.Frame.Size.Width, 30);
                scheduleEditor.doneButton.Frame     = new CGRect(0, scheduleEditor.timezoneButton.Frame.Bottom, this.Frame.Size.Width, 30);
                scheduleEditor.timeZonePicker.Frame = new CGRect(0, scheduleEditor.doneButton.Frame.Bottom, this.Frame.Size.Width, 200);
            }

            this.OptionView.AddSubview(scheduleEditor.timezoneLabel);
            this.OptionView.AddSubview(scheduleEditor.timezoneButton);
            this.OptionView.AddSubview(scheduleEditor.doneButton);
            this.OptionView.AddSubview(scheduleEditor.timeZonePicker);
        }
Example #2
0
        private void CreateOptionView()
        {
            scheduleEditor.CreateOptionWindow();
            scheduleEditor.timezoneLabel.Frame  = new CGRect(0, 0, this.Frame.Size.Width, 30);
            scheduleEditor.timezoneButton.Frame = new CGRect(0, scheduleEditor.timezoneLabel.Frame.Bottom, this.Frame.Size.Width, 30);
            scheduleEditor.doneButton.Frame     = new CGRect(0, scheduleEditor.timezoneButton.Frame.Bottom, this.Frame.Size.Width, 30);
            scheduleEditor.timeZonePicker.Frame = new CGRect(0, scheduleEditor.doneButton.Frame.Bottom, this.Frame.Size.Width, 200);

            this.OptionView.AddSubview(scheduleEditor.timezoneLabel);
            this.OptionView.AddSubview(scheduleEditor.timezoneButton);
            this.OptionView.AddSubview(scheduleEditor.doneButton);
            this.OptionView.AddSubview(scheduleEditor.timeZonePicker);
        }