示例#1
0
 private void DownloadAdd()
 {
     if (comboBoxDownload.SelectedValue.ToString() == events)
     {
         EventControllers.Print(richTextBoxMain);
     }
     if (comboBoxDownload.SelectedValue.ToString() == eventsTypes)
     {
         EventTypeControllers.Print(richTextBoxMain);
     }
     if (comboBoxDownload.SelectedValue.ToString() == footbollers)
     {
         FootballerControllers.Print(richTextBoxMain);
     }
     if (comboBoxDownload.SelectedValue.ToString() == footbollersTeams)
     {
         FootballerTeamControllers.Print(richTextBoxMain);
     }
     if (comboBoxDownload.SelectedValue.ToString() == positions)
     {
         PositionControllers.Print(richTextBoxMain);
     }
     if (comboBoxDownload.SelectedValue.ToString() == teams)
     {
         TeamControllers.Print(richTextBoxMain);
     }
     if (comboBoxDownload.SelectedValue.ToString() == teamsTypes)
     {
         TeamTypeControllers.Print(richTextBoxMain);
     }
     if (comboBoxDownload.SelectedValue.ToString() == trainers)
     {
         TrainerControllers.Print(richTextBoxMain);
     }
 }
示例#2
0
 private void DownloadChange()
 {
     if (comboBoxDownload.SelectedValue.ToString() == events)
     {
         EventControllers.Print(richTextBoxMain);
         Fill_inComboBox.ID <Event>(comboBoxEventID);
     }
     if (comboBoxDownload.SelectedValue.ToString() == eventsTypes)
     {
         EventTypeControllers.Print(richTextBoxMain);
         Fill_inComboBox.ID <EventType>(comboBoxChangeEntityID);
     }
     if (comboBoxDownload.SelectedValue.ToString() == footbollers)
     {
         FootballerControllers.Print(richTextBoxMain);
         Fill_inComboBox.ID <Footballer>(comboBoxChangeEntityID);
     }
     if (comboBoxDownload.SelectedValue.ToString() == footbollersTeams)
     {
         FootballerTeamControllers.Print(richTextBoxMain);
         Fill_inComboBox.ID <FootballerTeam>(comboBoxFootTeamId);
     }
     if (comboBoxDownload.SelectedValue.ToString() == positions)
     {
         PositionControllers.Print(richTextBoxMain);
         Fill_inComboBox.ID <Position>(comboBoxChangeEntityID);
     }
     if (comboBoxDownload.SelectedValue.ToString() == teams)
     {
         TeamControllers.Print(richTextBoxMain);
         Fill_inComboBox.ID <Team>(comboBoxTeamID);
     }
     if (comboBoxDownload.SelectedValue.ToString() == teamsTypes)
     {
         TeamTypeControllers.Print(richTextBoxMain);
         Fill_inComboBox.ID <TeamType>(comboBoxChangeEntityID);
     }
     if (comboBoxDownload.SelectedValue.ToString() == trainers)
     {
         TrainerControllers.Print(richTextBoxMain);
         Fill_inComboBox.ID <Trainer>(comboBoxChangeEntityID);
     }
 }