コード例 #1
0
        private void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
            leftExpander.IsExpanded   = false;
            bottomExpander.IsExpanded = false;

            // Retrieve the display pages...
            _svgPage     = frameSvgInput.Content   as SvgPage;
            _xamlPage    = frameXamlOutput.Content as XamlPage;
            _drawingPage = frameDrawing.Content    as DrawingPage;
            _browserPage = frameBrowser.Content    as BrowserPage;
            _aboutPage   = frameAbout.Content      as AboutPage;

            if (_fileReader != null)
            {
                _fileReader.SaveXaml = Directory.Exists(_drawingDir);
            }

            frameAbout.Navigating += OnFrameAboutNavigating;
            frameAbout.Navigated  += OnFrameAboutNavigated;

            string currentDir = IoPath.GetFullPath(@"..\..\FullTestSuite");

            if (Directory.Exists(currentDir))
            {
                this.txtSvgSuitePath.Text = currentDir;
            }

            _isTreeChangedPending   = false;
            testApply.IsEnabled     = false;
            testInfoPanel.IsEnabled = false;
        }
コード例 #2
0
        private void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
            leftExpander.IsExpanded   = false;
            bottomExpander.IsExpanded = false;

            // Retrieve the display pages...
            _svgPage     = frameSvgInput.Content   as SvgPage;
            _xamlPage    = frameXamlOutput.Content as XamlPage;
            _drawingPage = frameDrawing.Content    as DrawingPage;

            if (_drawingPage != null)
            {
                _drawingPage.XamlDrawingDir = _drawingDir;
            }

            string currentDir = IoPath.GetFullPath(@"..\..\FullTestSuite");

            if (Directory.Exists(currentDir))
            {
                this.txtSvgSuitePath.Text = currentDir;
            }

            _isTreeChangedPending   = false;
            testApply.IsEnabled     = false;
            testInfoPanel.IsEnabled = false;
        }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: udayanroy/SvgSharp
        private void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
            leftExpander.IsExpanded   = false;
            bottomExpander.IsExpanded = false;

            // Retrieve the display pages...
            _svgPage     = frameSvgInput.Content   as SvgPage;
            _xamlPage    = frameXamlOutput.Content as XamlPage;
            _drawingPage = frameDrawing.Content    as DrawingPage;

            if (_drawingPage != null)
            {
                _drawingPage.XamlDrawingDir = _drawingDir;
            }

            string currentDir = IoPath.GetFullPath(@"..\..\FullTestSuite");

            if (Directory.Exists(currentDir))
            {
                this.txtSvgSuitePath.Text = currentDir;
            }

            _isTreeChangedPending   = false;
            testApply.IsEnabled     = false;
            testInfoPanel.IsEnabled = false;
        }