Exemplo n.º 1
0
        private void addDirector_Click(object sender, EventArgs e)
        {
            int affectedRows = mediaLogic.AddNewDirector(newDirectorTextBox.Text);

            //if affected rows > 0 , success!

            RefreshDirectorList();
        }
Exemplo n.º 2
0
 //Add new director button
 private void addDirectorButton_Click(object sender, EventArgs e)
 {
     if (newDirectorTextBox.Text != "")
     {
         int affectedRows = mediaLogic.AddNewDirector(newDirectorTextBox.Text);
     }
     clear();
     RefreshMedia();
 }
Exemplo n.º 3
0
 public int addDirector(string directorName)
 {
     return(ml.AddNewDirector(directorName));
 }