示例#1
0
 public void SetDetails(clsArtist prArtist)
 {
     _Artist = prArtist;
     updateForm();
     UpdateDisplay();
     ShowDialog();
 }
 public void NewArtist()
 {
     clsArtist lcArtist = new clsArtist(this);
     try
     {
         if (lcArtist.GetKey() != "")
         {
             Add(lcArtist.GetKey(), lcArtist);
             MessageBox.Show("Artist added!");
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Duplicate Key!");
     }
 }
示例#3
0
        public void NewArtist()
        {
            clsArtist lcArtist = new clsArtist(this);

            try
            {
                if (lcArtist.GetKey() != "")
                {
                    Add(lcArtist.GetKey(), lcArtist);
                    MessageBox.Show("Artist added!");
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Duplicate Key!");
            }
        }