private void btnBufferTool_Click(object sender, EventArgs e)
 {
     //show buffer tool form
     using (BufferToolForm form = new BufferToolForm())
     {
         form.ShowDialog();
     }
 }
Пример #2
0
 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);
         }
     }
 }
Пример #3
0
        /// <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();
            }
        }