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(); } }
/// <summary> /// Установка фокуса в поле ввода /// </summary> /// <returns></returns> public new Boolean Focus() { return(PART_textBox.Focus()); }