private void btnBufferTool_Click(object sender, EventArgs e)
 {
     //show buffer tool form
     using (BufferToolForm form = new BufferToolForm())
     {
         form.ShowDialog();
     }
 }
 protected override void OnClick()
 {
     if (Enabled)
     {
         try
         {
             using (var form = new BufferToolForm())
             {
                 form.ShowDialog();
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show(GetType() + " encountered a problem.\n\n" + ex,
                             "Unhandled Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }
        /// <summary>
        /// Occurs when this command is clicked
        /// </summary>
        public override void OnClick()
        {
            NPSGlobal NPS;

            NPS = NPSGlobal.Instance;

            //make sure the NPS objects were all init okay
            if (string.IsNullOrEmpty(NPS.InitErrorMessage) == false)
            {
                System.Windows.Forms.MessageBox.Show(NPS.InitErrorMessage);
                return;
            }

            //show buffer tool form
            using (BufferToolForm form = new BufferToolForm())
            {
                form.ShowDialog();
            }
        }