Exemplo n.º 1
0
 protected override void ctCopy_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     RightMenu.Hide();
     if (e.ClickedItem.Text == "导入数据")
     {
         OpenFileDialog ofd = new OpenFileDialog();
         ofd.Filter = "*.xls|*.xls";
         if (ofd.ShowDialog() == DialogResult.OK)
         {
             string FileName = ofd.FileName;
             MessageBoxHelper.Show(FileName);
         }
     }
     else
     {
         base.ctCopy_ItemClicked(sender, e);
     }
 }