Пример #1
0
        public WindowPromt(String title, Boolean isCombo = false)
        {
            InitializeComponent();

            #warning Доработать
            // this.Owner         = Program.CurrentWindow;
            this.ShowInTaskbar = false;
            this.Title         = title;

            if (isCombo == false)
            {
                PART_comboBox.Visibility = Visibility.Collapsed;
                PART_textBox.Focus();
            }
            else
            {
                PART_textBox.Visibility = Visibility.Collapsed;
                PART_comboBox.Focus();
            }
        }
Пример #2
0
 /// <summary>
 /// Установка фокуса в поле ввода
 /// </summary>
 /// <returns></returns>
 public new Boolean Focus()
 {
     return(PART_textBox.Focus());
 }