Exemple #1
0
 private void KaydetBtn_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(NameTxt.Text))
     {
         MessageBox.Show("Cihaz adı boş olamaz", "HATA", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         MessageBox.Show(_computerBl.SaveComputer(NameTxt.Text, (comboBox1.SelectedIndex >= 0) ? comboBox1.SelectedItem.ToString() : null));
     }
 }