Exemplo n.º 1
0
        private void OnBrowseForSvgPath(object sender, RoutedEventArgs e)
        {
            string selectedDirectory = FolderBrowserDialog.ShowDialog(IntPtr.Zero,
                                                                      "Select the location of the W3C SVG 1.1 Full Test ", null);

            if (selectedDirectory != null)
            {
                txtSvgPath.Text = selectedDirectory;
            }
        }
Exemplo n.º 2
0
        private void OnBrowseRsvgDirectory(object sender, RoutedEventArgs e)
        {
            string selectedDirectory = FolderBrowserDialog.ShowDialog(IntPtr.Zero,
                                                                      "Select the location of the Rsvg Application", null);

            if (selectedDirectory != null)
            {
                txtRsvgDirectory.Text = selectedDirectory;
            }
        }
Exemplo n.º 3
0
        private void OnBrowsePngDirectory(object sender, RoutedEventArgs e)
        {
            string selectedDirectory = FolderBrowserDialog.ShowDialog(IntPtr.Zero,
                                                                      "Select the location of the Test Expected Images", null);

            if (selectedDirectory != null)
            {
                txtPngDirectory.Text = selectedDirectory;
            }
        }
        private void OnBrowseForSvgSuitePath(object sender, RoutedEventArgs e)
        {
            string selectedDirectory = FolderBrowserDialog.ShowDialog(IntPtr.Zero,
                                                                      "Select the location of the W3C SVG 1.1 Full Test Suite", null);

            if (!string.IsNullOrWhiteSpace(selectedDirectory))
            {
                txtSvgSuitePath.Text = selectedDirectory;

                UpdateStates();
            }
        }
Exemplo n.º 5
0
        private void OnBrowseForSvgSuitePath(object sender, RoutedEventArgs e)
        {
            IntPtr windowHandle      = new WindowInteropHelper(this).Handle;
            string selectedDirectory = FolderBrowserDialog.ShowDialog(windowHandle,
                                                                      "Select the location of the W3C SVG 1.1 Full Test Suite", null);

            if (!string.IsNullOrWhiteSpace(selectedDirectory))
            {
                txtSvgSuitePath.Text = selectedDirectory;

                UpdateStates();
            }
        }
        private void OnOutputDirClick(object sender, RoutedEventArgs e)
        {
            string sourceFile = txtSourceFile.Text.Trim();
            string sourceDir  = Environment.CurrentDirectory;

            if (!string.IsNullOrWhiteSpace(sourceFile) && File.Exists(sourceFile))
            {
                sourceDir = Path.GetDirectoryName(sourceFile);
            }

            IntPtr windowHandle      = new WindowInteropHelper(Application.Current.MainWindow).Handle;
            string selectedDirectory = FolderBrowserDialog.ShowDialog(windowHandle,
                                                                      "Select the output directory for the converted file", sourceDir);

            if (!string.IsNullOrWhiteSpace(selectedDirectory))
            {
                // this will remove the watermark...
                txtOutputDir.Focus();
                txtOutputDir.Text = selectedDirectory;
            }

            //FolderBrowserDialog dlg = new FolderBrowserDialog();
            //dlg.ShowNewFolderButton = true;
            //dlg.Description         = "Select the output directory for the converted file.";
            //string sourceFile       = txtSourceFile.Text.Trim();
            //if (!string.IsNullOrWhiteSpace(sourceFile) &&
            //    File.Exists(sourceFile))
            //{
            //    dlg.SelectedPath = Path.GetDirectoryName(sourceFile);
            //}
            //else
            //{
            //    dlg.SelectedPath = Environment.CurrentDirectory;
            //}

            //dlg.RootFolder = Environment.SpecialFolder.MyComputer;

            //if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            //{
            //    // this will remove the watermark...
            //    txtOutputDir.Focus();
            //    txtOutputDir.Text = dlg.SelectedPath;
            //}
        }
Exemplo n.º 7
0
        public void BrowseForFolder()
        {
            string selectedPath = null;
            string curDir       = _optionSettings.CurrentSvgPath;

            if (!string.IsNullOrWhiteSpace(curDir) && Directory.Exists(curDir))
            {
                selectedPath = curDir;
            }
            string selectedDirectory = FolderBrowserDialog.ShowDialog(IntPtr.Zero,
                                                                      "Select the location of the W3C SVG 1.1 Full Test Suite", selectedPath);

            if (selectedDirectory != null)
            {
                this.InitializedPath(selectedDirectory);

                _optionSettings.CurrentSvgPath = selectedDirectory;
            }
        }