예제 #1
0
 /// <summary>
 ///     Open File
 /// </summary>
 private void OpenFileStripButton_Click(object sender, EventArgs e)
 {
     if (lstData.SelectedItems.Count == 1)
     {
         var strFileName = lstData.SelectedItems[0].Text;
         Gfs.OpenFile(strFileName, null);
     }
 }
예제 #2
0
 /// <summary>
 ///     Open File
 /// </summary>
 private void OpenFileStripButton_Click(object sender, EventArgs e)
 {
     if (lstData.SelectedItems.Count == 1)
     {
         var strFileName = lstData.SelectedItems[0].Text;
         Gfs.OpenFile(strFileName, RuntimeMongoDbContext.GetCurrentDataBase());
     }
     else
     {
         MessageBox.Show("请选择一个文件");
     }
 }