protected override void Handle() {
            base.Handle();

            string filePath = _appShell.FileDialog.ShowOpenFileDialog(Resources.CsvFileFilter, title: Resources.ImportData_EnterTextFileTitle);

            if (!string.IsNullOrEmpty(filePath)) {
                var dlg = new ImportDataWindow(filePath, null);
                dlg.ShowModal();
            }
        }
示例#2
0
        protected override void Handle() {
            base.Handle();

            var dlg = new EnterUrl();
            dlg.ShowModal();

            if (!string.IsNullOrEmpty(dlg.DownloadFilePath)) {
                var importDlg = new ImportDataWindow(dlg.DownloadFilePath, dlg.VariableName);
                importDlg.ShowModal();
            }

            dlg.DeleteTemporaryFile();
        }