コード例 #1
0
ファイル: CreateEscalation.cs プロジェクト: IT-SSM/PrvaFaza
 private void btnCreateEscalation_Click(object sender, EventArgs e)
 {
     if (comboEscalationType.SelectedItem.ToString() == "Interval")
     {
         if (kki.InsertIntoEscalationsInterval(cmbAssociatedForms, txtMinutes, txtCondition, txtAction) == 1)
         {
             MessageBox.Show("Eskalacija je uspesno kreirana!");
         }
     }
     else
     {
         if (kki.InsertIntoEscalationsTimer(cmbAssociatedForms, txtMessage, txtCondition, txtAction) == 1)
         {
             MessageBox.Show("Eskalacija je uspesno kreirana!");
         }
     }
 }