Example #1
0
		public SettingsItemForm( ProcessAction initial )
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			Initial = initial;
		}
Example #2
0
		private bool Edit( ProcessAction p )
		{
			SettingsItemForm sif = new SettingsItemForm( p );

			return ( sif.ShowDialog( this ) == DialogResult.OK );
		}
Example #3
0
		private void menuItemAdd_Click(object sender, System.EventArgs e)
		{
			ProcessAction p = new ProcessAction();
			p.Name = "New Action";

			if ( Edit( p ) )
			{
				checkedListBoxProcessActions.Items.Add( p );
				ProcessActions.Add( p );
			}
		}