public TrackListInsertForm() { InitializeComponent(); CurrentTrackList = new TrackList(); resourceManager = new ResourceManager("MediaLibraryClient.Properties.Resources", Assembly.GetExecutingAssembly()); }
private void button1_Click(object sender, EventArgs e) { TrackList trackList = new TrackList() { Name = trackListNameTextBox.Text }; trackList.Save(); }
public TrackListInsertForm(List<string> cellList) { InitializeComponent(); CurrentTrackList = new TrackList(); resourceManager = new ResourceManager("MediaLibraryClient.Properties.Resources", Assembly.GetExecutingAssembly()); selectedDataGridViewItem = cellList; trackListNameTextBox.Text = selectedDataGridViewItem[1]; }
private void button1_Click(object sender, EventArgs e) { if (selectedDataGridViewItem != null) { if (selectedDataGridViewItem.Count > 0) { TrackList trackList = new TrackList() { ID = int.Parse(selectedDataGridViewItem[0]), Name = trackListNameTextBox.Text }; trackList.Save(); } } else { TrackList trackList = new TrackList() { Name = trackListNameTextBox.Text }; trackList.Save(); } }