private void button1_Click(object sender, EventArgs e) { if (titleTextBox.Text == "" || writeTextBox.Text == "" || priorityComboBox.Text == "") { MessageBox.Show("Fill up the required from"); } else { AddService addService = new AddService(); int result = addService.Add(titleTextBox.Text, writeTextBox.Text, priorityComboBox.Text, dateTimePicker1.Text, name); if (result > 0) { MessageBox.Show("Add seccessfully"); this.Refreash(this, null); this.Clear(this, null); } else { MessageBox.Show("Error occur"); } } }
public string AddSomething() { return("Service 2 - Add something " + service1.Add(1, 2)); }
public string AddSomething() { return("Service 3 - Add something " + service1.Add(3, 4)); }