Exemple #1
0
 private void textBox_name_TextChanged(object sender, EventArgs e)
 {
     if (LocalDataBase.ContrainsElement(textBox_name.Text, bmpType))
     {
         textBox_name.BackColor = Color.FromArgb(251, 97, 74);
         buttonOK.Enabled       = false;
     }
     else
     {
         textBox_name.BackColor = Color.FromArgb(140, 238, 138);
         buttonOK.Enabled       = true;
     }
 }
Exemple #2
0
 private void AskNameDialog_Load(object sender, EventArgs e)
 {
     checkList = (List <LocalDataGraphicsElement>)LocalDataBase.GetTypedElements(bmpType);
 }