Beispiel #1
0
		/// <summary>
		/// Bring up the customization form
		/// </summary>
		private void EditButton( object sender, EventArgs e )
		{
			ButtonEditor editor = new ButtonEditor();

			if ( m_Def != null )
				editor.Def = m_Def;

			if ( editor.ShowDialog() == DialogResult.OK )
			{
				Pandora.Buttons[ this ] = editor.Def;
				Text = m_Def.Caption;

				if ( HasToolTip )
				{
					Pandora.ToolTip.SetToolTip( this, ToolTipText );
				}
			}

			editor.Dispose();
		}
Beispiel #2
0
        /// <summary>
        ///     Bring up the customization form
        /// </summary>
        private void EditButton(object sender, EventArgs e)
        {
            var editor = new ButtonEditor();

            if (m_Def != null)
            {
                editor.Def = m_Def;
            }

            if (editor.ShowDialog() == DialogResult.OK)
            {
                Pandora.Buttons[this] = editor.Def;
                Text = m_Def.Caption;

                if (HasToolTip)
                {
                    Pandora.ToolTip.SetToolTip(this, ToolTipText);
                }
            }

            editor.Dispose();
        }