Example #1
0
        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();
            }
        }
Example #2
0
        protected override void Handle()
        {
            base.Handle();

            string filePath = VsAppShell.Current.BrowseForFileOpen(IntPtr.Zero, "CSV file|*.csv");

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

            string filePath = _appShell.BrowseForFileOpen(
                IntPtr.Zero, Package.Resources.CsvFileFilter,
                title: Resources.ImportData_EnterTextFileTitle);

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

            var dlg = new EnterUrl();

            dlg.ShowModal();

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

            dlg.DeleteTemporaryFile();
        }