private void Save_Click(object sender, EventArgs e)
        {
            try
            {
                if (ValidateSaveRequest())
                {
                    ControlType controlType = new ControlType();

                    controlType.Name = ControlName.Text;
                    //controlType.Path = ControlFilePath.Text;

                    Configuration.GetInstance().ControlTypes.Add(controlType);
                    ControlType.Save(controlType);
                    this.DialogResult = DialogResult.OK;
                }
            }
            catch (Exception ex)
            {
                ErrorManager.HandleError(ex);
            }
        }
 public void Save(object configurationItem)
 {
     ControlType.Save((ControlType)configurationItem);
 }