Beispiel #1
0
 private void add_button_for_utility()
 {
     if (current_show_index == (int)utility_picker.author)
     {
         Add_author headphones_View = new Add_author();
         change_panel_content(headphones_View);
     }
     else if (current_show_index == (int)utility_picker.genre)
     {
         Add_genre headphones_View = new Add_genre();
         change_panel_content(headphones_View);
     }
     else if (current_show_index == (int)utility_picker.publisher)
     {
         Add_publisher headphones_View = new Add_publisher();
         change_panel_content(headphones_View);
     }
 }
Beispiel #2
0
 private void modify_button_for_utility(DataGridViewRow startingBalanceRow)
 {
     if (current_show_index == (int)utility_picker.author)
     {
         model.Author item            = this.author_Dao.get_item_from_row(startingBalanceRow);
         Add_author   headphones_View = new Add_author(1, item);
         change_panel_content(headphones_View);
     }
     else if (current_show_index == (int)utility_picker.genre)
     {
         model.Genre item            = this.genre_Dao.get_item_from_row(startingBalanceRow);
         Add_genre   headphones_View = new Add_genre(1, item);
         change_panel_content(headphones_View);
     }
     else if (current_show_index == (int)utility_picker.publisher)
     {
         model.Publisher item            = this.publisher_Dao.get_item_from_row(startingBalanceRow);
         Add_publisher   headphones_View = new Add_publisher(1, item);
         change_panel_content(headphones_View);
     }
 }