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!"); } } }