Esempio n. 1
0
        public PageComment()
        {
            InitializeComponent();
            MainWindow.Instance.SetupPage(this, ButtonBack);

            Loaded += (s, e) => {
                (Application.Current.MainWindow as MainWindow).SetupTitle(string.Empty, "Желаете ли Вы оставить комментарий к своей оценке?");

                onscreenKeyboard = new OnscreenKeyboard(ActualWidth, BorderKeyboard.ActualHeight, 0, 0, 9, 30, OnscreenKeyboard.KeyboardType.Full);
                Canvas canvasKeyboard = onscreenKeyboard.CreateOnscreenKeyboard();
                canvasKeyboard.HorizontalAlignment = HorizontalAlignment.Stretch;
                canvasKeyboard.VerticalAlignment   = VerticalAlignment.Center;
                Grid.SetRow(canvasKeyboard, 8);
                Grid.SetColumnSpan(canvasKeyboard, 5);
                GridComment.Children.Add(canvasKeyboard);
                onscreenKeyboard.SetTextBoxInput(TextBoxComment);

                TextBoxComment.Focus();
            };

            MainWindow.ApplyStyleForButtons(new List <Button> {
                ButtonNext, ButtonClear
            });
            MainWindow.ApplyStyleForButtons(new List <Button> {
                ButtonYes, ButtonNo
            }, 50);
        }
Esempio n. 2
0
        public PageCallback()
        {
            InitializeComponent();
            MainWindow.Instance.SetupPage(this, ButtonBack);

            textBoxData              = new TextBox();
            textBoxData.TextChanged += TextBoxData_TextChanged;

            Loaded += (s, e) => {
                (Application.Current.MainWindow as MainWindow).SetupTitle(string.Empty, "Можем ли мы перезвонить Вам?");

                onscreenKeyboard = new OnscreenKeyboard(ActualWidth, BorderKeyboard.ActualHeight, 0, 0, 9, 30, OnscreenKeyboard.KeyboardType.Numbers);
                Canvas canvasKeyboard = onscreenKeyboard.CreateOnscreenKeyboard();
                canvasKeyboard.HorizontalAlignment = HorizontalAlignment.Stretch;
                canvasKeyboard.VerticalAlignment   = VerticalAlignment.Center;
                Grid.SetRow(canvasKeyboard, 2);
                Grid.SetColumn(canvasKeyboard, 1);
                GridPhoneNumber.Children.Add(canvasKeyboard);
                onscreenKeyboard.SetTextBoxInput(textBoxData);

                TextBoxPhoneNumber.Focus();
            };

            MainWindow.ApplyStyleForButtons(new List <Button> {
                ButtonNext, ButtonClear
            });
            MainWindow.ApplyStyleForButtons(new List <Button> {
                ButtonNo, ButtonYes
            }, 50);
        }
Esempio n. 3
0
        public PageFeedback()
        {
            InitializeComponent();
            MainWindow.Instance.SetupPage(this, ButtonBack, ButtonHome);

            Loaded += (s, e) => {
                (Application.Current.MainWindow as MainWindow).SetupTitle("Обратная связь");

                onscreenKeyboard = new OnscreenKeyboard(ActualWidth, BorderKeyboard.ActualHeight, 0, 0, 9, 30, OnscreenKeyboard.KeyboardType.Full);
                Canvas canvasKeyboard = onscreenKeyboard.CreateOnscreenKeyboard();
                canvasKeyboard.HorizontalAlignment = HorizontalAlignment.Stretch;
                canvasKeyboard.VerticalAlignment   = VerticalAlignment.Center;
                Grid.SetRow(canvasKeyboard, 8);
                Grid.SetColumnSpan(canvasKeyboard, 5);
                GridMain.Children.Add(canvasKeyboard);
                onscreenKeyboard.SetTextBoxInput(TextBoxName);

                TextBoxName.Focus();
            };

            MainWindow.ApplyStyleForButtons(new List <Button> {
                ButtonSend
            });
        }