private void barButtonItem47_ItemClick(object sender, ItemClickEventArgs e) { ImportToGDB itg = new ImportToGDB((int)enumDataType.test); itg.Text = "导入试验数据"; itg.ShowDialog(); }
/// <summary> /// 上传矢量数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barButtonItem44_ItemClick(object sender, ItemClickEventArgs e) { ImportToGDB itg = new ImportToGDB((int)enumDataType.vector); itg.Text = "导入矢量数据"; if (itg.ShowDialog() == DialogResult.OK) { Guid taskID = Guid.NewGuid(); MetaDts.Add(taskID, new TemplateMetaData(itg.vctLayer, EnumMetaDataType.Features, TaskType.Upload)); TransferTask transferTask = new TransferTask(taskID, itg.InputPath, itg.OutputPath, TaskType.Upload, itg.RenameMode, TaskCategory.Features); transferTaskListControl1.AddTask(transferTask); } }
/// <summary> /// 上传其他数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barButtonItem48_ItemClick(object sender, ItemClickEventArgs e) { ImportToGDB itg = new ImportToGDB((int)enumDataType.other); itg.Text = "导入其他数据"; if (itg.ShowDialog() == DialogResult.OK) { Guid taskID = Guid.NewGuid(); MetaDts.Add(taskID, new TemplateMetaData(itg.fleLayer, EnumMetaDataType.Files, TaskType.Upload)); TransferTask transferTask = new TransferTask(taskID, itg.InputPath, itg.OutputPath, TaskType.Upload, itg.RenameMode, TaskCategory.Files); transferTaskListControl1.AddTask(transferTask); //TransferProcess.TransferTask transferTask = new TransferProcess.TransferTask(taskID, itg.InputPath, itg.OutputPath, TransferProcess.TaskType.Upload, TransferProcess.RenameMode.Accumulate, TransferProcess.TaskCategory.Files); //transferManagerControl1.AddDownloadTask(transferTask); } }