예제 #1
0
 public TrackListInsertForm()
 {
     InitializeComponent();
     CurrentTrackList = new TrackList();
     resourceManager =
         new ResourceManager("MediaLibraryClient.Properties.Resources",
                              Assembly.GetExecutingAssembly()); 
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            TrackList trackList = new TrackList()
            {
                Name = trackListNameTextBox.Text
            };

            trackList.Save();
        }
예제 #3
0
 public TrackListInsertForm(List<string> cellList)
 {
     InitializeComponent();
     CurrentTrackList = new TrackList();
     resourceManager =
         new ResourceManager("MediaLibraryClient.Properties.Resources", 
                              Assembly.GetExecutingAssembly());
     selectedDataGridViewItem = cellList;
     trackListNameTextBox.Text = selectedDataGridViewItem[1];
 }
예제 #4
0
 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();
         }
     
 }