Esempio n. 1
0
        private void AddClicked(object sender, EventArgs e)
        {
            if (CodeGroupAdded != null)
            {
                CodeGroupTypeEventArgs args =
                    new CodeGroupTypeEventArgs(
                        (Type)groupTypesComboBox.SelectedValue);

                CodeGroupAdded(this, args);
            }

            Close();
        }
		private void AddClicked(object sender, EventArgs e)
		{
			if (CodeGroupAdded != null)
			{
				CodeGroupTypeEventArgs args =
					 new CodeGroupTypeEventArgs(
						  (Type)groupTypesComboBox.SelectedValue);

				CodeGroupAdded(this, args);
			}

			Close();
		}
Esempio n. 3
0
        private void CodeGroupAdded(object sender, CodeGroupTypeEventArgs e)
        {
            try
            {
                CodeGroup group =
                    (CodeGroup)Activator.CreateInstance(e.CodeGroupType, false);

                groupBindingSource.Add(group);
            }
            catch (Exception ex)
            {
                Utilities.HandleException(ex);
            }
        }
        private void CodeGroupAdded(object sender, CodeGroupTypeEventArgs e)
        {
            try
            {
                CodeGroup group =
                     (CodeGroup)Activator.CreateInstance(e.CodeGroupType, false);

                groupBindingSource.Add(group);
            }
            catch (Exception ex)
            {
                Utilities.HandleException(ex);
            }
        }