private void UserControl_Loaded(object sender, RoutedEventArgs e) { TextBoxArtistName.Focus(); if (IsEditMode) { var artistInformation = _connectionManager.GetDataTable(CommandFactory.GetArtistInformation(_artistId)).Rows[0]; TextBoxArtistName.Text = artistInformation["artist_name"].ToString(); TextBoxArtistName.Select(TextBoxArtistName.Text.Length, 0); } }
public UserControlUploadArtist(MainWindow mainWindow) { InitializeComponent(); _mainWindow = mainWindow; TextBoxArtistName.Focus(); }