private void Window_Loaded(object sender, RoutedEventArgs e) { DialogUtility.HideCloseButton(this); templateListBox.ItemsSource = _templates; templateListBox.SelectedItem = _selectedTemplate; }
private void Window_Loaded(object sender, RoutedEventArgs e) { DialogUtility.HideCloseButton(this); nameTextBox.Text = UserInput; nameTextBox.SelectAll(); nameTextBox.Focus(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { Width = AppSettings.Default.ticketDialogWidth; Height = AppSettings.Default.ticketDialogHeight; DialogUtility.HideCloseButton(this); DataContext = _viewModel; Title = "Editing Ticket " + _viewModel.Model.id; }
private void Window_Loaded(object sender, RoutedEventArgs e) { DialogUtility.HideCloseButton(this); itemInfoTextBlock.Text = _message; updateDeleteText(); _timer = new DispatcherTimer(); _timer.Tick += Timer_Tick; _timer.Interval = TimeSpan.FromSeconds(1); _timer.Start(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { DialogUtility.HideCloseButton(this); categoryComboBox.ItemsSource = Categories; if (_category.ParentId == null) { categoryComboBox.SelectedItem = Categories[0]; } else { categoryComboBox.SelectedItem = Categories.Single(i => i.id == _category.ParentId); } nameTextBox.Text = _category.Name; nameTextBox.SelectAll(); nameTextBox.Focus(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { DialogUtility.HideCloseButton(this); _viewModel = new DatabaseUpgradeViewModel(Database); DataContext = _viewModel; }
private void Window_Loaded(object sender, RoutedEventArgs e) { DialogUtility.HideCloseButton(this); versionRun.Text = GetType().Assembly.GetName().Version.ToString(); }