private void buttonAddCSS_Click(object sender, EventArgs e)
        {
            AddCSSForm   newForm = new AddCSSForm();
            DialogResult result  = newForm.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                if (newForm.ElementClass == null)
                {
                    newForm.ElementClass = string.Empty;
                }
                if (newForm.ElementName == null)
                {
                    newForm.ElementName = string.Empty;
                }
                AddCSSElement(newForm.ElementName.ToLower(), newForm.ElementClass.ToLower());
            }
        }
Example #2
0
 private void buttonAddCSS_Click(object sender, EventArgs e)
 {
     AddCSSForm newForm = new AddCSSForm();
     DialogResult result = newForm.ShowDialog(this);
     if (result == DialogResult.OK)
     {
         if (newForm.ElementClass == null)
         {
             newForm.ElementClass = string.Empty;
         }
         if (newForm.ElementName == null)
         {
             newForm.ElementName = string.Empty;
         }
         AddCSSElement(newForm.ElementName.ToLower(), newForm.ElementClass.ToLower());
     }
 }