source: trunk/CrypPlugins/QuadraticSieve/QuadraticSievePresentation.xaml.cs @ 902

Last change on this file since 902 was 902, checked in by kopal, 12 years ago
  • Quadratic Sieve and KeySearcher both have now a better scalable QuickWatch
  • because of QuickWatch adapted samples for KeySearcher
File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Data;
8using System.Windows.Documents;
9using System.Windows.Input;
10using System.Windows.Media;
11using System.Windows.Media.Imaging;
12using System.Windows.Navigation;
13using System.Windows.Shapes;
14
15namespace QuadraticSieve
16{
17
18
19    /// <summary>
20    /// Interaction logic for QuadraticSievePresentation.xaml
21    /// </summary>
22    public partial class QuadraticSievePresentation : UserControl
23    {
24
25        public QuadraticSievePresentation()
26        {
27            InitializeComponent();           
28            SizeChanged += sizeChanged;
29        }
30
31        public void sizeChanged(Object sender, EventArgs eventArgs)
32        {
33            this.Grid.RenderTransform = new ScaleTransform( this.ActualWidth / this.Grid.ActualWidth,
34                                                       this.ActualHeight / this.Grid.ActualHeight);                       
35        }
36    }
37}
Note: See TracBrowser for help on using the repository browser.