Пример #1
0
        private void barButtonItem47_ItemClick(object sender, ItemClickEventArgs e)
        {
            ImportToGDB itg = new ImportToGDB((int)enumDataType.test);

            itg.Text = "导入试验数据";
            itg.ShowDialog();
        }
Пример #2
0
        /// <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);
            }
        }
Пример #3
0
        /// <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);
            }
        }