예제 #1
0
 private void OnItemClick(object sender, EventArgs e)
 {
     //Event handler for menu item selections
     try {
         ToolStripItem menu = (ToolStripItem)sender;
         switch (menu.Name)
         {
         case "csRefresh":
         case "tsRefresh":
             this.Cursor             = Cursors.WaitCursor;
             this.grdMain.DataSource = FinanceGateway.ReadDriverEquipment();
             this.grdMain.DataBind();
             break;
         }
     }
     catch (Exception ex) { reportError(ex); }
     finally { this.Cursor = Cursors.Default; }
 }