/// <summary>
        /// Returns a Effect that emulates this BlurBitmapEffect.
        /// </summary>
        internal override Effect GetEmulatingEffect()
        {
            if (_imageEffectEmulation != null && _imageEffectEmulation.IsFrozen)
            {
                return(_imageEffectEmulation);
            }

            if (_imageEffectEmulation == null)
            {
                _imageEffectEmulation = new BlurEffect();
            }

            double radius = Radius;

            if (_imageEffectEmulation.Radius != radius)
            {
                _imageEffectEmulation.Radius = radius;
            }

            KernelType kernelType = KernelType;

            if (_imageEffectEmulation.KernelType != kernelType)
            {
                _imageEffectEmulation.KernelType = kernelType;
            }

            _imageEffectEmulation.RenderingBias = RenderingBias.Performance;

            if (this.IsFrozen)
            {
                _imageEffectEmulation.Freeze();
            }

            return(_imageEffectEmulation);
        }
Esempio n. 2
0
        private static void RenderingBiasPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            BlurEffect target = ((BlurEffect)d);


            target.PropertyChanged(RenderingBiasProperty);
        }
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            this.ScrollChanged -= this.OnScrollChanged;
            this.SizeChanged -= this.OnSizeChanged;

            this.ScrollChanged += this.OnScrollChanged;
            this.SizeChanged += this.OnSizeChanged;

            this.innerBorderEffect = new BlurEffect() { RenderingBias = RenderingBias.Performance };
            this.innerBorder = new Border()
            {
                Background = Brushes.Black,
                HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch,
                VerticalAlignment = System.Windows.VerticalAlignment.Stretch,
                Effect = this.innerBorderEffect,
            };

            this.outerBorder = new Border()
            {
                Background = new SolidColorBrush(Color.FromArgb((byte)(this.FadeOpacity * 255), 0, 0, 0)),
                ClipToBounds = true,
                Child = this.innerBorder,
            };

            this.scrollContentPresenterContainer = this.GetTemplateChild("PART_ScrollContentPresenterContainer") as FrameworkElement;

            if (this.scrollContentPresenterContainer != null)
            {
                this.scrollContentPresenterContainer.OpacityMask = new VisualBrush() { Visual = this.outerBorder };
            }
        }
 public SuperProgressBar() {
     InitializeComponent();
     BlurEffect blur = new BlurEffect();
     blur.Radius = 5;
     //statusBG.Effect = blur;
     NormalBrush = progress.Foreground;
 }
Esempio n. 5
0
        public MainWindow()
        {
            InitializeComponent();

            BlurEffect myBlurEffect = new BlurEffect();
            myBlurEffect.Radius = 8;
            this.Effect = myBlurEffect;

            this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            this.Show();

            Vue.Login login = new Vue.Login();
            login.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            login.ShowDialog();

            if(Parametres.Instance.utilisateur != null)
            {
                this.MainGrid.Children.Add(new Vue.AccueilGeneral());
                Controleur = new CtrlAccueilGeneral();
                InitBandeStagiaire();

                this.Effect = null;

                //Modif mat on masque ici sinon on ne voit pas dans l'éditeur graphique...
                tvPersonParam.IsExpanded = false;
                tvPersonParam.IsEnabled = false;
            }
        }
 public CustomWindow(): base()
 {
     Opacity = GetOriginalOpacity();
     this.Loaded += CustomWindow_Loaded; 
     _BlurEffect = new BlurEffect() { Radius = 0 };
     this.Effect = _BlurEffect;
 }
        public new void ShowDialog()
        {
            UIElement root = null;
            BlurEffect blur = null;

            if (Owner != null)
            {
                root = Owner.Content as UIElement;

                blur = new BlurEffect();
                blur.Radius = 0;
                root.Effect = blur;

                root.AnimateEase(UIElement.OpacityProperty, 1, 0.6, TimeSpan.FromSeconds(1));
                blur.AnimateEase(BlurEffect.RadiusProperty, 1, 4, TimeSpan.FromSeconds(0.5));
                // NOTE: Blur radius is internally converted to integer which is bad for slow animations.
                // See https://social.msdn.microsoft.com/Forums/vstudio/en-US/ced0cc07-44fd-43e7-8829-e329be038d82
            }

            base.ShowDialog();

            if (root != null && blur != null)
            {
                root.AnimateEase(UIElement.OpacityProperty, 0.6, 1, TimeSpan.FromSeconds(0.2));
                blur.AnimateEase(BlurEffect.RadiusProperty, 4, 0, TimeSpan.FromSeconds(0.2));

                DelayedCall.Start(() => { root.Effect = null; }, 250);
            }
        }
Esempio n. 8
0
        private static void KernelTypePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            BlurEffect target = ((BlurEffect)d);


            target.PropertyChanged(KernelTypeProperty);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BlurP = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 2:
                this.six = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.sixs = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.Seven = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.Sevens = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.d = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.s = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.a = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.y = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.z = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.x = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.c = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.B = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 10
0
        public WindowAdapter(Window wpfWindow)
        {
            if (wpfWindow == null)
                throw new ArgumentNullException("wpfWindow");

            this.wpfWindow = wpfWindow;

            blurEffect = new BlurEffect { Radius = 0 };
            this.WpfWindow.Effect = blurEffect;
        }
Esempio n. 11
0
 public static void BlurApply(this UIElement element, double blurRadius, TimeSpan duration)
 {
     BlurEffect blur = element.Effect as BlurEffect;
     if (blur.Radius < blurRadius)
     {
         BlurEffect Blur = new BlurEffect() { Radius = 0 };
         DoubleAnimation blurEnable = new DoubleAnimation(0, blurRadius, duration);
         element.Effect = Blur;
         Blur.BeginAnimation(BlurEffect.RadiusProperty, blurEnable);
     }
 }
 public FlyingSphericParticle()
 {
     IsMovable = true;
     IsObstacle = false;
     CanCollide = false;
     BlurEffect myBlurEffect = new BlurEffect();
     myBlurEffect.Radius = BlurEffectRadius;
     DVisual.Effect = myBlurEffect;
     AnimLinTrans = new AnimationLinearTranslation(this);
     AnimAirDrag = new AnimationAirDrag(this);
 }
Esempio n. 13
0
        protected WindowBase()
        {
            this.WindowStyle = WindowStyle.None;
            this.AllowsTransparency = true;
            this.Background = null;

               blurEffect =  new BlurEffect() { Radius = 0 };
               this.Effect = blurEffect;

            this.MouseLeftButtonDown += HandleDragMove;
            this.KeyDown += HandleWindKeyDown;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.blurek = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 2:
                this.itemsControl = ((System.Windows.Controls.ItemsControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 15
0
        private void OnClosing(object sender, CancelEventArgs cancelEventArgs)
        {
            if (IsSaved)
            {
                return;
            }
            cancelEventArgs.Cancel = true;
            this.IsEnabled         = false;
            System.Windows.Media.Effects.BlurEffect objBlur = new System.Windows.Media.Effects.BlurEffect();
            objBlur.Radius = 5;
            Effect         = objBlur;

            ExitPopup.IsOpen = true;
        }
Esempio n. 16
0
        public Blotches(Canvas canvas, Window1 window, string key, float pressure, double x, double y, Color color)
        {
            this.canvas = canvas;

            geometry = new EllipseGeometry();
            ellipse = new Path();
            SolidColorBrush brush = new SolidColorBrush();

            BlurEffect blurEffect = new BlurEffect();
            blurEffect.Radius = 0;

            geometry.Center = new Point(x, y);
            geometry.RadiusX = (SIZE * pressure) / 50;
            geometry.RadiusY = (SIZE * pressure) / 50;

            brush.Color = color;
            ellipse.Fill = brush;
            ellipse.HorizontalAlignment = HorizontalAlignment.Center;
            ellipse.VerticalAlignment = VerticalAlignment.Center;
            ellipse.Effect = blurEffect;
            ellipse.Data = geometry;
            canvas.Children.Add(this.ellipse);

            this.ellipse.Loaded += new RoutedEventHandler(ellipse_Loaded);

            // init animation
            this.hoverAnimation = new PennerDoubleAnimation(
                            Equations.ExpoEaseIn,
                            0, 0,
                            new Duration(new TimeSpan(0, 0, 3)));

            NameScope.SetNameScope(ellipse, new NameScope());
            ellipse.RegisterName("ellipse", blurEffect);

            // init storyboard
            Storyboard.SetTargetProperty(hoverAnimation, new PropertyPath(Canvas.TopProperty));
            hoverObj.Children.Add(hoverAnimation);

            this.hoverAnimation.Completed += new EventHandler(hoverAnimation_Completed);
        }
Esempio n. 17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Splash = ((Workload.SplashScreen)(target));
                return;

            case 2:
                this.BackRect = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.ProgramNameLabel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.grPrgName1 = ((System.Windows.Media.GradientStop)(target));
                return;

            case 5:
                this.grPrgName2 = ((System.Windows.Media.GradientStop)(target));
                return;

            case 6:
                this.MadeByLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.TalismanImage = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.Blur = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 18
0
        public UIManagerImpl(GameTablePanel gameTablePanel)
        {
            myGameTablePanel = gameTablePanel;
              Application.Current.RootVisual.Effect = myBackgroundBlur = new BlurEffect {Radius = 0};
              myCurrentBackgroundState = new BackgroundState(0, 1);

              Application.Current.RootVisual.MouseLeftButtonDown += delegate(object sender, MouseButtonEventArgs e)
                                                              {
                                                                if (myPopupData.Popup.IsOpen)
                                                                {
                                                                  ClosePopup(myPopupData, myPopupData.Element, false);
                                                                  e.Handled = true;
                                                                }
                                                              };
              Application.Current.RootVisual.KeyDown += delegate(object sender, KeyEventArgs e)
                                                  {
                                                    if (e.Key == Key.Escape && myPopupData.Popup.IsOpen)
                                                    {
                                                      ClosePopup(myPopupData, myPopupData.Element, false);
                                                      e.Handled = true;
                                                    }
                                                  };
        }
Esempio n. 19
0
        /// <summary>
        /// Draw an ellipse or circle
        /// </summary>
        /// <param name="c">canvas where the ellipse will be drawn</param>
        /// <param name="X">X coordinate of the center</param>
        /// <param name="Y">Y coordinate of the center</param>
        /// <param name="width">width of the ellipse</param>
        /// <param name="height">height of the ellipse</param>
        /// <param name="stroke">stroke color</param>
        /// <param name="fill">fill color</param>
        /// <param name="background">background will apply a blur bitmap effect</param>
        public static void DrawEllipse(Canvas c, double X, double Y, double width, double height, System.Windows.Media.Brush stroke, System.Windows.Media.Brush fill, System.Windows.Media.Brush background, int thickness = 10)
        {
            if (background != null)
            {
                Ellipse ellipseB = new Ellipse();
                ellipseB.Width = width;
                ellipseB.Height = height;
                ellipseB.Stroke = background;
                BlurEffect effect = new BlurEffect();
                effect.Radius = 75;
                ellipseB.Effect = effect;
                ellipseB.StrokeThickness = 10;
                ellipseB.Fill = fill;
                Canvas.SetTop(ellipseB, Y - 0.5 * ellipseB.Width);
                Canvas.SetLeft(ellipseB, X - 0.5 * ellipseB.Height);
                c.Children.Add(ellipseB);
            }

            Ellipse ellipse = new Ellipse();
            ellipse.Width = width;
            ellipse.Height = height;
            ellipse.Stroke = stroke;
            ellipse.StrokeThickness = thickness;

            if (background != null)
            {
                ellipse.Fill = background;
            }
            else
            {
                ellipse.Fill = fill;
            }

            Canvas.SetTop(ellipse, Y - 0.5 * ellipse.Width);
            Canvas.SetLeft(ellipse, X - 0.5 * ellipse.Height);
            c.Children.Add(ellipse);
        }
Esempio n. 20
0
        /// <summary>
        /// Turning blur on.
        /// </summary>
        /// <param name="element">bluring element</param>
        /// <param name="blurRadius">blur radius</param>
        /// <param name="duration">blur animation duration</param>
        /// <param name="beginTime">blur animation delay</param>
        /// <param name="fillBehavior">
        /// Specifies how a System.Windows.Media.Animation.Timeline behaves when it is outside
        /// its active period but its parent is inside its active or hold period.</param>
        /// <param name="initHandler">Handler that would be called before animation start.
        /// There you can subscrube on events or reconfigurate settigns.</param>
        /// <returns>Created animation.</returns>
        public static DoubleAnimation BlurApply(
            UIElement element,
            double blurRadius,
            TimeSpan duration,
            TimeSpan beginTime,
            FillBehavior fillBehavior,
            Action <DoubleAnimation> initHandler)
        {
            // Configuration g animation.
            DoubleAnimation blurEnable = new DoubleAnimation(0, blurRadius, duration)
            {
                BeginTime    = beginTime,
                FillBehavior = fillBehavior
            };

            // Applying effect.
            System.Windows.Media.Effects.BlurEffect blur = new System.Windows.Media.Effects.BlurEffect()
            {
                Radius = 0
            };
            element.Effect = blur;

            // Inform subscribers.
            initHandler?.Invoke(blurEnable);

            // Start animation.
            try
            {
                blur.BeginAnimation(System.Windows.Media.Effects.BlurEffect.RadiusProperty, blurEnable);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            return(blurEnable);
        }
Esempio n. 21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.layoutroot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.startimage = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.StartImageBlur = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 4:
                this.finalimage = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.EndImageBlur = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 6:
                this.slider = ((System.Windows.Controls.Slider)(target));

            #line 43 "..\..\BlurEffects.xaml"
                this.slider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.RangeBase_OnValueChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AdminListCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.AdminListCanvasBlur = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 3:
                this.TimeMark = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.DateMark = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.BtnBack = ((System.Windows.Controls.Button)(target));

            #line 61 "..\..\AdminPage.xaml"
                this.BtnBack.Click += new System.Windows.RoutedEventHandler(this.BtnBack_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.ClearDbButton = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\AdminPage.xaml"
                this.ClearDbButton.Click += new System.Windows.RoutedEventHandler(this.ClearDbButton_OnClick);

            #line default
            #line hidden
                return;

            case 7:
                this.CellsGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 111 "..\..\AdminPage.xaml"
                this.CellsGrid.SelectedCellsChanged += new System.Windows.Controls.SelectedCellsChangedEventHandler(this.DataGrid_OnSelectedCellsChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.CellWindow = ((System.Windows.Controls.Canvas)(target));
                return;

            case 9:
                this.CellName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.BtnClose = ((System.Windows.Controls.Button)(target));

            #line 245 "..\..\AdminPage.xaml"
                this.BtnClose.Click += new System.Windows.RoutedEventHandler(this.BtnCellDetailClose_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.CellModel = ((System.Windows.Documents.Run)(target));
                return;

            case 12:
                this.CellSerial = ((System.Windows.Documents.Run)(target));
                return;

            case 13:
                this.CellPlace = ((System.Windows.Documents.Run)(target));
                return;

            case 14:
                this.CellCharge = ((System.Windows.Documents.Run)(target));
                return;

            case 15:
                this.CellStatus = ((System.Windows.Documents.Run)(target));
                return;

            case 16:

            #line 276 "..\..\AdminPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnOpen_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.ClearDbConfirmWindow = ((System.Windows.Controls.Canvas)(target));
                return;

            case 18:
                this.BtnCloseConfirm = ((System.Windows.Controls.Button)(target));

            #line 305 "..\..\AdminPage.xaml"
                this.BtnCloseConfirm.Click += new System.Windows.RoutedEventHandler(this.BtnCancelConfirm_OnClick);

            #line default
            #line hidden
                return;

            case 19:
                this.BtnOkConfirm = ((System.Windows.Controls.Button)(target));

            #line 320 "..\..\AdminPage.xaml"
                this.BtnOkConfirm.Click += new System.Windows.RoutedEventHandler(this.BtnOkConfirm_OnClick);

            #line default
            #line hidden
                return;

            case 20:
                this.BtnCancelConfirm = ((System.Windows.Controls.Button)(target));

            #line 321 "..\..\AdminPage.xaml"
                this.BtnCancelConfirm.Click += new System.Windows.RoutedEventHandler(this.BtnCancelConfirm_OnClick);

            #line default
            #line hidden
                return;

            case 21:
                this.UncloseableMsgBox = ((System.Windows.Controls.Canvas)(target));
                return;

            case 22:
                this.UMsgBoxTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.UMsgBoxMessage = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.ButtonOkUMsgBox = ((System.Windows.Controls.Button)(target));

            #line 349 "..\..\AdminPage.xaml"
                this.ButtonOkUMsgBox.Click += new System.Windows.RoutedEventHandler(this.ButtonOkUncloseableMsgBox_OnClick);

            #line default
            #line hidden
                return;

            case 25:
                this.CellOpenReasonWindow = ((System.Windows.Controls.Canvas)(target));
                return;

            case 26:
                this.CellNameReason = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.ReturnButton = ((System.Windows.Controls.Button)(target));

            #line 383 "..\..\AdminPage.xaml"
                this.ReturnButton.Click += new System.Windows.RoutedEventHandler(this.BtnReturn_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.TakeButton = ((System.Windows.Controls.Button)(target));

            #line 384 "..\..\AdminPage.xaml"
                this.TakeButton.Click += new System.Windows.RoutedEventHandler(this.BtnTake_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 23
0
 public static Se.BlurEffect ToMediaEffect(this Wg.BlurEffect input)
 {
     Se.BlurEffect output = new Se.BlurEffect();
     output.Radius = input.Radius;
     return(output);
 }
Esempio n. 24
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((Memory_Tools.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.ModuleList = ((System.Windows.Controls.TreeView)(target));
                return;

            case 3:
                this.ReloadModules = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\MainWindow.xaml"
                this.ReloadModules.Click += new System.Windows.RoutedEventHandler(this.ReloadModules_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.KillProcess = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.KillProcess.Click += new System.Windows.RoutedEventHandler(this.KillProcess_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Frameshift = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 6:
                this.Randomize = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 7:
                this.Increment = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 8:
                this.Decrement = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 9:
                this.BaseAddress = ((System.Windows.Controls.TextBox)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.BaseAddress.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_HexidecimalChecker);

            #line default
            #line hidden
                return;

            case 10:
                this.EndAddress = ((System.Windows.Controls.TextBox)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.EndAddress.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_HexidecimalChecker);

            #line default
            #line hidden
                return;

            case 11:
                this.ToggleCorruption = ((System.Windows.Controls.Button)(target));

            #line 59 "..\..\MainWindow.xaml"
                this.ToggleCorruption.Click += new System.Windows.RoutedEventHandler(this.StartCorruption_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.CorruptionProgress = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 13:
                this.CurrentColor = ((System.Windows.Controls.Button)(target));

            #line 73 "..\..\MainWindow.xaml"
                this.CurrentColor.Click += new System.Windows.RoutedEventHandler(this.CurrentColor_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.ToggleDraw = ((System.Windows.Controls.Button)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.ToggleDraw.Click += new System.Windows.RoutedEventHandler(this.ToggleDraw_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.ControlX = ((System.Windows.Controls.TextBox)(target));

            #line 93 "..\..\MainWindow.xaml"
                this.ControlX.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_IntegerChecker);

            #line default
            #line hidden
                return;

            case 16:
                this.ControlY = ((System.Windows.Controls.TextBox)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.ControlY.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_IntegerChecker);

            #line default
            #line hidden
                return;

            case 17:
                this.ControlWidth = ((System.Windows.Controls.TextBox)(target));

            #line 99 "..\..\MainWindow.xaml"
                this.ControlWidth.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_IntegerChecker);

            #line default
            #line hidden
                return;

            case 18:
                this.ControlHeight = ((System.Windows.Controls.TextBox)(target));

            #line 102 "..\..\MainWindow.xaml"
                this.ControlHeight.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_IntegerChecker);

            #line default
            #line hidden
                return;

            case 19:
                this.InjectControl = ((System.Windows.Controls.Button)(target));

            #line 104 "..\..\MainWindow.xaml"
                this.InjectControl.Click += new System.Windows.RoutedEventHandler(this.InjectControl_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.ControlText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.ControlTypes = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 22:
                this.ThreadList = ((System.Windows.Controls.ListView)(target));
                return;

            case 23:
                this.ReloadThreadsButton = ((System.Windows.Controls.Button)(target));

            #line 145 "..\..\MainWindow.xaml"
                this.ReloadThreadsButton.Click += new System.Windows.RoutedEventHandler(this.ReloadThreadsButton_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.Properties = ((System.Windows.Controls.Button)(target));

            #line 152 "..\..\MainWindow.xaml"
                this.Properties.Click += new System.Windows.RoutedEventHandler(this.Properties_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.SelectDLL = ((System.Windows.Controls.Button)(target));

            #line 168 "..\..\MainWindow.xaml"
                this.SelectDLL.Click += new System.Windows.RoutedEventHandler(this.SelectDLL_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.InjectDLL = ((System.Windows.Controls.Button)(target));

            #line 169 "..\..\MainWindow.xaml"
                this.InjectDLL.Click += new System.Windows.RoutedEventHandler(this.InjectDLL_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.DLLFiles = ((System.Windows.Controls.ListBox)(target));
                return;

            case 28:
                this.RemoveDLL = ((System.Windows.Controls.Button)(target));

            #line 173 "..\..\MainWindow.xaml"
                this.RemoveDLL.Click += new System.Windows.RoutedEventHandler(this.RemoveDLL_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.ResetList = ((System.Windows.Controls.Button)(target));

            #line 174 "..\..\MainWindow.xaml"
                this.ResetList.Click += new System.Windows.RoutedEventHandler(this.ResetList_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.UnloadDLL = ((System.Windows.Controls.Button)(target));

            #line 175 "..\..\MainWindow.xaml"
                this.UnloadDLL.Click += new System.Windows.RoutedEventHandler(this.UnloadDLL_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.SaveBytecode = ((System.Windows.Controls.Button)(target));

            #line 183 "..\..\MainWindow.xaml"
                this.SaveBytecode.Click += new System.Windows.RoutedEventHandler(this.SaveBytecode_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.BytecodeBaseAddress1 = ((System.Windows.Controls.TextBox)(target));

            #line 185 "..\..\MainWindow.xaml"
                this.BytecodeBaseAddress1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_HexidecimalChecker);

            #line default
            #line hidden
                return;

            case 33:
                this.BytecodeEndAddress = ((System.Windows.Controls.TextBox)(target));

            #line 188 "..\..\MainWindow.xaml"
                this.BytecodeEndAddress.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_HexidecimalChecker);

            #line default
            #line hidden
                return;

            case 34:
                this.WriterBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 35:
                this.OpenBytecode = ((System.Windows.Controls.Button)(target));

            #line 195 "..\..\MainWindow.xaml"
                this.OpenBytecode.Click += new System.Windows.RoutedEventHandler(this.OpenBytecode_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.InjectBytecode = ((System.Windows.Controls.Button)(target));

            #line 196 "..\..\MainWindow.xaml"
                this.InjectBytecode.Click += new System.Windows.RoutedEventHandler(this.InjectBytecode_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.AllocateMemory = ((System.Windows.Controls.CheckBox)(target));

            #line 199 "..\..\MainWindow.xaml"
                this.AllocateMemory.Checked += new System.Windows.RoutedEventHandler(this.AllocateMemory_Checked);

            #line default
            #line hidden

            #line 199 "..\..\MainWindow.xaml"
                this.AllocateMemory.Unchecked += new System.Windows.RoutedEventHandler(this.AllocateMemory_Unchecked);

            #line default
            #line hidden
                return;

            case 38:
                this.BytecodeBaseAddress = ((System.Windows.Controls.TextBox)(target));

            #line 200 "..\..\MainWindow.xaml"
                this.BytecodeBaseAddress.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_HexidecimalChecker);

            #line default
            #line hidden
                return;

            case 39:
                this.InjectFunction = ((System.Windows.Controls.Button)(target));

            #line 209 "..\..\MainWindow.xaml"
                this.InjectFunction.Click += new System.Windows.RoutedEventHandler(this.InjectFunction_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.Function = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.FunctionParameter = ((System.Windows.Controls.TextBox)(target));
                return;

            case 42:
                this.IsInteger = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 43:
                this.ProcessIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 44:
                this.CurrentProcess = ((System.Windows.Controls.TextBlock)(target));

            #line 231 "..\..\MainWindow.xaml"
                this.CurrentProcess.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.CurrentProcess_MouseDown);

            #line default
            #line hidden
                return;

            case 45:
                this.blurEffect = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 46:
                this.OutputView = ((System.Windows.Controls.ListView)(target));
                return;

            case 47:

            #line 281 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 48:
                this.CloseButton = ((System.Windows.Controls.Label)(target));

            #line 284 "..\..\MainWindow.xaml"
                this.CloseButton.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.CloseButton_MouseDown);

            #line default
            #line hidden
                return;

            case 49:
                this.MinimizeButton = ((System.Windows.Controls.Label)(target));

            #line 313 "..\..\MainWindow.xaml"
                this.MinimizeButton.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MinimizeButton_MouseDown);

            #line default
            #line hidden
                return;

            case 50:
                this.HelpButton = ((System.Windows.Controls.Label)(target));

            #line 342 "..\..\MainWindow.xaml"
                this.HelpButton.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.HelpButton_MouseDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 25
0
        private void mainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            //创建硬币,并放入tossACoinPanel.
            coin = new Coin();
            coin.X = tossACoinCanvas.ActualWidth / 2;
            coin.Y = tossACoinCanvas.ActualHeight / 2;
            tossACoinCanvas.Children.Add(coin);
            Canvas.SetZIndex(coin, 1);

            //创建Blast Wave.
            blastWave = new Ellipse();
            blastWave.StrokeThickness = 0.2;
            blastWave.Stroke = new SolidColorBrush(Colors.Red);
            blastWave.Opacity = 0;
            blastWave.Height = 5;
            blastWave.Width = 5;
            blastScale = new ScaleTransform();
            blastScale.ScaleX = 1;
            blastScale.ScaleY = 1;
            blastWave.RenderTransform = blastScale;
            blastWave.RenderTransformOrigin = new Point(0.5, 0.5);
            tossACoinCanvas.Children.Add(blastWave);
            Canvas.SetZIndex(blastWave, 0);

            System.Windows.Threading.DispatcherTimer tossACoinTimer =
                new System.Windows.Threading.DispatcherTimer();
            tossACoinTimer.Tick += new EventHandler(tossACoinTimer_Elapsed);
            tossACoinTimer.Interval = new TimeSpan(0, 0, 0, 0, 50);
            tossACoinTimer.Start();

            aura.Visibility = Visibility.Hidden;
            RadialGradientBrush auraBrush = new RadialGradientBrush();
            auraBrush.GradientOrigin = new Point(0.5, 0.5);
            auraBrush.Center = new Point(0.5, 0.5);

            GradientStop centerGS = new GradientStop();
            centerGS.Color = Colors.Green;
            centerGS.Offset = 0.0;
            auraBrush.GradientStops.Add(centerGS);

            GradientStop borderGS = new GradientStop();
            borderGS.Color = Colors.Red;
            borderGS.Offset = 1.5;
            auraBrush.GradientStops.Add(borderGS);
            aura.Fill = auraBrush;

            //aura.Fill = new GradientBrush();
            BlurEffect effect = new BlurEffect();
            effect.Radius = 5;
            aura.Effect = effect;
            tossACoinCanvas.Children.Add(aura);
            Canvas.SetZIndex(aura, -1);
        }
Esempio n. 26
0
 private void Win_Loaded(object sender, RoutedEventArgs e)
 {
     BlurEffect effect = new BlurEffect();
     effect.Radius = 6;
     effect.KernelType = KernelType.Gaussian;
     Application.Current.Windows[0].Effect = effect;
 }
Esempio n. 27
0
        void timer_Tick(object sender, EventArgs e)
        {
            this.ParentJanitor.ScreenSaverRuns = true;
            this.Dispatcher.Invoke(
            System.Windows.Threading.DispatcherPriority.Normal,
            (DummyDelegate)
            delegate
            {
            ScatterViewItem svi = new ScatterViewItem();
            //Viewbox svi = new Viewbox();
            Viewbox vb = new Viewbox();
            Label label = new Label();

            label.Content = d[rand.Next(0, d.Count)];
            label.Foreground = new SolidColorBrush(Colors.White);
            label.Width = 200;
            label.Height = 50;
            label.FontSize = 20;
            label.FontWeight = FontWeights.ExtraLight;

            label.HorizontalContentAlignment = HorizontalAlignment.Center;
            vb.Child = label;
            svi.Content = vb;
            vb.IsEnabled = false;
            svi.Orientation = 0;
            svi.Opacity = 0;
            svi.Width = 4000;
            svi.Height = 1000;

            BlurEffect blur = new BlurEffect();
            blur.Radius = 50;
            blur.RenderingBias = RenderingBias.Performance;
            blur.KernelType = KernelType.Gaussian;
            svi.Effect = blur;

            svi.ApplyTemplate();
            svi.Background = new SolidColorBrush(Colors.Transparent);
            svi.ShowsActivationEffects = false;
            Microsoft.Surface.Presentation.Generic.SurfaceShadowChrome ssc;
            ssc = svi.Template.FindName("shadow", svi) as Microsoft.Surface.Presentation.Generic.SurfaceShadowChrome;
            ssc.Visibility = Visibility.Hidden;
            svi.BorderBrush = Brushes.Transparent;
            svi.IsHitTestVisible = false;
            svi.ClipToBounds = false;

            DoubleAnimation blurAnim = new DoubleAnimation(20, 10, new Duration(TimeSpan.FromSeconds(4)), FillBehavior.Stop);
            blurAnim.AutoReverse = true;

            blur.BeginAnimation(BlurEffect.RadiusProperty, blurAnim, HandoffBehavior.Compose);

            DoubleAnimation WidthAnim = new DoubleAnimation(200, 4000, new Duration(TimeSpan.FromSeconds(8)), FillBehavior.Stop);
            WidthAnim.Completed += new EventHandler(WidthAnim_Completed);

            svi.BeginAnimation(ScatterViewItem.WidthProperty, WidthAnim, HandoffBehavior.Compose);

            DoubleAnimation HeightAnim = new DoubleAnimation(50, 1000, new Duration(TimeSpan.FromSeconds(8)), FillBehavior.Stop);

            svi.BeginAnimation(ScatterViewItem.HeightProperty, HeightAnim, HandoffBehavior.Compose);

            DoubleAnimation OpacityAnim = new DoubleAnimation(0, .5, new Duration(TimeSpan.FromSeconds(4)), FillBehavior.Stop);
            OpacityAnim.AutoReverse = true;

            svi.BeginAnimation(ScatterViewItem.OpacityProperty, OpacityAnim, HandoffBehavior.Compose);

            //sb.Children.Add(blurAnim);
            //sb.Children.Add(WidthAnim);
            //sb.Children.Add(HeightAnim);
            //sb.Children.Add(OpacityAnim);
            //Storyboard.SetTarget(blurAnim, blur);
            //Storyboard.SetTarget(WidthAnim, svi);
            //Storyboard.SetTarget(HeightAnim, svi);
            //Storyboard.SetTarget(OpacityAnim, svi);
            //Storyboard.SetTargetProperty(blurAnim, new PropertyPath(BlurEffect.RadiusProperty));
            //Storyboard.SetTargetProperty(WidthAnim, new PropertyPath(ScatterViewItem.WidthProperty));
            //Storyboard.SetTargetProperty(HeightAnim, new PropertyPath(ScatterViewItem.HeightProperty));
            //Storyboard.SetTargetProperty(OpacityAnim, new PropertyPath(ScatterViewItem.OpacityProperty));
            //sb.Begin();
            MainSV.Items.Add(svi);

            });
        }
Esempio n. 28
0
 /// <summary>
 /// Returns new BlurEffect with values eased from startValue to endValue using a time percentage 0 -> 1.
 /// </summary>
 public static BlurEffect EaseValue(BlurEffect startValue, BlurEffect endValue, double percent)
 {
     if (startValue == null) startValue = new BlurEffect { Radius = 0 };
     if (endValue == null) endValue = new BlurEffect { Radius = 0 };
    
     return new BlurEffect {  Radius = EaseValue(startValue.Radius,endValue.Radius,percent)   };
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((B2_Snake2D.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.MainWindow_keydown);

            #line default
            #line hidden
                return;

            case 2:
                this.button = ((System.Windows.Controls.TextBlock)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.button.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.startgame_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.blurEffect = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 4:
                this.button_Copy = ((System.Windows.Controls.TextBlock)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.button_Copy.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.button_Copy_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.blurEffectt = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 6:
                this.button_Copy1 = ((System.Windows.Controls.TextBlock)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.button_Copy1.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.button_Copy1_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.blurEffecttt = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 8:
                this.button_Copy2 = ((System.Windows.Controls.Button)(target));

            #line 104 "..\..\MainWindow.xaml"
                this.button_Copy2.Click += new System.Windows.RoutedEventHandler(this.button_Copy1_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.button_Copy3 = ((System.Windows.Controls.Button)(target));

            #line 105 "..\..\MainWindow.xaml"
                this.button_Copy3.Click += new System.Windows.RoutedEventHandler(this.button_Copy1_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.button_Copy4 = ((System.Windows.Controls.Button)(target));

            #line 106 "..\..\MainWindow.xaml"
                this.button_Copy4.Click += new System.Windows.RoutedEventHandler(this.button_Copy1_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.button_Copy5 = ((System.Windows.Controls.TextBlock)(target));

            #line 107 "..\..\MainWindow.xaml"
                this.button_Copy5.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.button_Copy5_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.blurEffectttt = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 13:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.textBlock_Copy = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.textBlock_Copy1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.Main = ((System.Windows.Controls.Frame)(target));
                return;

            case 17:
                this.button_Copy6 = ((System.Windows.Controls.TextBlock)(target));

            #line 141 "..\..\MainWindow.xaml"
                this.button_Copy6.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.returntomenu);

            #line default
            #line hidden
                return;

            case 18:
                this.blurEffecttttt = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 19:
                this.button_Copy7 = ((System.Windows.Controls.TextBlock)(target));

            #line 167 "..\..\MainWindow.xaml"
                this.button_Copy7.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.play_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.blurEffectttttT = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 21:
                this.textBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.button_Copy8 = ((System.Windows.Controls.TextBlock)(target));

            #line 193 "..\..\MainWindow.xaml"
                this.button_Copy8.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.play_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.blurEffectttttT1 = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 30
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.picture = ((System.Windows.Controls.Image)(target));
     return;
     case 2:
     this.bitmapImage = ((System.Windows.Media.Imaging.BitmapImage)(target));
     return;
     case 3:
     this.blurEffect = ((System.Windows.Media.Effects.BlurEffect)(target));
     return;
     case 4:
     this.backgroundBorderTitle = ((System.Windows.Controls.Border)(target));
     return;
     case 5:
     this.pictureTitle = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 31
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BlurScreen = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 2:
                this.OfferTypeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.AccomodationTypeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.RoomsAmountSlider = ((System.Windows.Controls.Slider)(target));

            #line 44 "..\..\MainWindow.xaml"
                this.RoomsAmountSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.RoomsAmountSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.RoomsAmountLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.District = ((System.Windows.Controls.ComboBox)(target));

            #line 70 "..\..\MainWindow.xaml"
                this.District.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DistrictSelected);

            #line default
            #line hidden
                return;

            case 7:
                this.Street = ((System.Windows.Controls.ComboBox)(target));

            #line 84 "..\..\MainWindow.xaml"
                this.Street.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.StreetSelected);

            #line default
            #line hidden
                return;

            case 8:
                this.FromCost = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.ToCost = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.TongueMoneyUp = ((RealtIt.Tongue)(target));
                return;

            case 11:
                this.TongueMoneyDown = ((RealtIt.Tongue)(target));
                return;

            case 12:
                this.TongueRoomUp = ((RealtIt.Tongue)(target));
                return;

            case 13:
                this.TongueRoomDown = ((RealtIt.Tongue)(target));
                return;

            case 14:
                this.TongueAdd = ((RealtIt.Tongue)(target));
                return;

            case 15:
                this.LogInButtob = ((System.Windows.Controls.Button)(target));

            #line 115 "..\..\MainWindow.xaml"
                this.LogInButtob.Click += new System.Windows.RoutedEventHandler(this.LogInButtob_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 124 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.CloseFromMouseDown);

            #line default
            #line hidden
                return;

            case 17:
                this.SortedByWhat = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.SortedHow = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.AccomodationList = ((System.Windows.Controls.ItemsControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 32
0
 private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     if(e.Key == Key.Space)
     {
         if (!paused)
         {
             var blur = new BlurEffect();
             var current = this.Background;
             var blurRadius = 5;
             this.Background = new SolidColorBrush(Colors.DarkGray);
             this.Effect = blur;
             popup.Visibility = System.Windows.Visibility.Visible;
             popup.IsOpen = true;
             timer.IsEnabled = false;
             paused = true;
         }
         else
         {
             this.Effect = null;
             popup.IsOpen = false;
             timer.IsEnabled = true;
             paused = false;
             this.Background = new SolidColorBrush(Colors.White);
         }
     }
 }
        private void ShowAboutDialog(object sender, RoutedEventArgs e)
        {
            AboutWindow about = new AboutWindow();

            //Just fancy stuff
            Effect = new BlurEffect();
            BeginStoryboard((Storyboard)Resources["blurElement"]);
            about.ShowDialog();
            BeginStoryboard((Storyboard)Resources["sharpenElement"]);
            Effect = null;
        }
Esempio n. 34
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 15 "..\..\MainWindow.xaml"
                ((InterviewManager.MainWindow)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                ((InterviewManager.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 17 "..\..\MainWindow.xaml"
                ((InterviewManager.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.Blur = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 3:
                this.Registration = ((System.Windows.Controls.Button)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.Registration.Click += new System.Windows.RoutedEventHandler(this.Registration_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Login = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.Login.Click += new System.Windows.RoutedEventHandler(this.Login_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Exit = ((System.Windows.Controls.Button)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.Exit.Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SettingWin = ((BoostBottonWpf.SettingsConfigs)(target));

            #line 13 "..\..\SettingsConfigs.xaml"
                this.SettingWin.Activated += new System.EventHandler(this.SettingWin_Activated);

            #line default
            #line hidden

            #line 14 "..\..\SettingsConfigs.xaml"
                this.SettingWin.Closed += new System.EventHandler(this.SettingWin_Close);

            #line default
            #line hidden

            #line 15 "..\..\SettingsConfigs.xaml"
                this.SettingWin.Closing += new System.ComponentModel.CancelEventHandler(this.SettingWin_Closing);

            #line default
            #line hidden

            #line 16 "..\..\SettingsConfigs.xaml"
                this.SettingWin.Loaded += new System.Windows.RoutedEventHandler(this.SettingWin_Load);

            #line default
            #line hidden

            #line 17 "..\..\SettingsConfigs.xaml"
                this.SettingWin.MouseEnter += new System.Windows.Input.MouseEventHandler(this.SettingWin_MouseEntered);

            #line default
            #line hidden

            #line 18 "..\..\SettingsConfigs.xaml"
                this.SettingWin.MouseLeave += new System.Windows.Input.MouseEventHandler(this.SettingWin_MouseLeave);

            #line default
            #line hidden

            #line 19 "..\..\SettingsConfigs.xaml"
                this.SettingWin.MouseMove += new System.Windows.Input.MouseEventHandler(this.SettingWin_MouseMove);

            #line default
            #line hidden
                return;

            case 2:
                this.Traymode = ((System.Windows.Controls.CheckBox)(target));

            #line 39 "..\..\SettingsConfigs.xaml"
                this.Traymode.Checked += new System.Windows.RoutedEventHandler(this.Startintray_Checked);

            #line default
            #line hidden

            #line 41 "..\..\SettingsConfigs.xaml"
                this.Traymode.Unchecked += new System.Windows.RoutedEventHandler(this.Startintray_Checked);

            #line default
            #line hidden
                return;

            case 3:
                this.Save_Btn = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\SettingsConfigs.xaml"
                this.Save_Btn.Click += new System.Windows.RoutedEventHandler(this.Save_Btn_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Cancel_Btn = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\SettingsConfigs.xaml"
                this.Cancel_Btn.Click += new System.Windows.RoutedEventHandler(this.Cancel_Btn_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.startintray = ((System.Windows.Controls.CheckBox)(target));

            #line 73 "..\..\SettingsConfigs.xaml"
                this.startintray.Checked += new System.Windows.RoutedEventHandler(this.startintray_Checked_1);

            #line default
            #line hidden

            #line 75 "..\..\SettingsConfigs.xaml"
                this.startintray.Unchecked += new System.Windows.RoutedEventHandler(this.startintray_Checked_1);

            #line default
            #line hidden
                return;

            case 6:
                this.StartTimer = ((System.Windows.Controls.CheckBox)(target));

            #line 83 "..\..\SettingsConfigs.xaml"
                this.StartTimer.Checked += new System.Windows.RoutedEventHandler(this.StartTimer_Checked);

            #line default
            #line hidden

            #line 86 "..\..\SettingsConfigs.xaml"
                this.StartTimer.Unchecked += new System.Windows.RoutedEventHandler(this.StartTimer_Checked);

            #line default
            #line hidden
                return;

            case 7:
                this.timebox = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 8:
                this.timergrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.StartTimeCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 122 "..\..\SettingsConfigs.xaml"
                this.StartTimeCheckBox.Checked += new System.Windows.RoutedEventHandler(this.StartTimeCheckBox_Checked);

            #line default
            #line hidden

            #line 123 "..\..\SettingsConfigs.xaml"
                this.StartTimeCheckBox.Unchecked += new System.Windows.RoutedEventHandler(this.StartTimeCheckBox_Checked);

            #line default
            #line hidden
                return;

            case 10:
                this.starttimergrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.startgridblureffect = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 12:
                this.StartAmPm = ((System.Windows.Controls.ComboBox)(target));

            #line 136 "..\..\SettingsConfigs.xaml"
                this.StartAmPm.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.StartAmPm_SelectionChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.starthour = ((System.Windows.Controls.ComboBox)(target));

            #line 152 "..\..\SettingsConfigs.xaml"
                this.starthour.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.starthour_SelectionChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.startmin = ((System.Windows.Controls.ComboBox)(target));

            #line 161 "..\..\SettingsConfigs.xaml"
                this.startmin.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.startmin_SelectionChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.starttimefaderec = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 16:
                this.EndTimeCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 194 "..\..\SettingsConfigs.xaml"
                this.EndTimeCheckBox.Checked += new System.Windows.RoutedEventHandler(this.EndTimeCheckBox_Checked);

            #line default
            #line hidden

            #line 195 "..\..\SettingsConfigs.xaml"
                this.EndTimeCheckBox.Unchecked += new System.Windows.RoutedEventHandler(this.EndTimeCheckBox_Checked);

            #line default
            #line hidden
                return;

            case 17:
                this.endtimergrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 18:
                this.endgridblureffect = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 19:
                this.EndAmPm = ((System.Windows.Controls.ComboBox)(target));

            #line 213 "..\..\SettingsConfigs.xaml"
                this.EndAmPm.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.EndAmPm_SelectionChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.endhour = ((System.Windows.Controls.ComboBox)(target));

            #line 231 "..\..\SettingsConfigs.xaml"
                this.endhour.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.endhour_SelectionChanged);

            #line default
            #line hidden
                return;

            case 21:
                this.endmin = ((System.Windows.Controls.ComboBox)(target));

            #line 241 "..\..\SettingsConfigs.xaml"
                this.endmin.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.endmin_SelectionChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.endfadeoffbec = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 23:
                this.DialogClosecheck = ((System.Windows.Controls.CheckBox)(target));

            #line 268 "..\..\SettingsConfigs.xaml"
                this.DialogClosecheck.Checked += new System.Windows.RoutedEventHandler(this.DialogClosecheck_Checked);

            #line default
            #line hidden

            #line 272 "..\..\SettingsConfigs.xaml"
                this.DialogClosecheck.Unchecked += new System.Windows.RoutedEventHandler(this.DialogClosecheck_Checked);

            #line default
            #line hidden
                return;

            case 24:
                this.Notifications = ((System.Windows.Controls.CheckBox)(target));

            #line 286 "..\..\SettingsConfigs.xaml"
                this.Notifications.Checked += new System.Windows.RoutedEventHandler(this.Notifications_Checked);

            #line default
            #line hidden

            #line 288 "..\..\SettingsConfigs.xaml"
                this.Notifications.Unchecked += new System.Windows.RoutedEventHandler(this.Notifications_Checked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void UpdateShadow()
        {
            if (substance == null) return;
            if (style == null) return;

            Thread.Sleep(300);

            // Black material
            DiffuseMaterial material = new DiffuseMaterial(Brushes.Black);
            material.Freeze();

            // Create molecules
            ModelVisual3D container = new ModelVisual3D();
            foreach (Data.Molecule molecule in substance.Molecules)
            {
                foreach (Data.Atom atom in molecule.Atoms)
                {
                    if (style.ColorStyle.ColorScheme[atom.Element].Diffuse.A < 5) continue;
                    Sphere sphere = new Sphere();
                    sphere.Material = material;
                    sphere.Radius = Atom.GetAtomRadius(atom, style.GeometryStyle);
                    sphere.Center = atom.Position;
                    container.Children.Add(sphere);
                }
                double bondRadius = Bond.GetBondRadius(style.GeometryStyle);
                foreach (Data.Bond bond in molecule.Bonds)
                {
                    if (style.ColorStyle.UseSingleBondMaterial)
                    {
                        if (style.ColorStyle.BondMaterial.Diffuse.A < 5) continue;
                    }
                    else if (style.ColorStyle.ColorScheme[bond.Begin.Element].Diffuse.A < 5 ||
                             style.ColorStyle.ColorScheme[bond.End.Element].Diffuse.A < 5) continue;
                    Cylinder cylinder = new Cylinder(bond.Begin.Position, bond.End.Position, bondRadius);
                    cylinder.Material = material;
                    container.Children.Add(cylinder);
                }

                #region Build approximation of ribbon

                double radius = 0.45;
                foreach (Data.Chain chain in molecule.Chains)
                {
                    for (int i = 0; i < chain.Residues.Count; i++)
                    {
                        if (chain.Residues[i].GetStructureType() == SecondaryStructureType.Helix)
                           if (style.GeometryStyle.HelixHeight < 0.05 || style.GeometryStyle.HelixWidth < 0.05) continue;
                           else radius = Residue.HelixWidth * ((style.GeometryStyle.HelixHeight + style.GeometryStyle.HelixWidth) / 2.0);
                        if (chain.Residues[i].GetStructureType() == SecondaryStructureType.Sheet)
                           if (style.GeometryStyle.SheetHeight < 0.05 || style.GeometryStyle.SheetWidth < 0.05) continue;
                           else radius = Residue.SheetWidth * ((style.GeometryStyle.SheetHeight + style.GeometryStyle.SheetWidth) / 2.0);
                        if (chain.Residues[i].GetStructureType() == SecondaryStructureType.NotDefined)
                           if (style.GeometryStyle.TurnHeight < 0.05 || style.GeometryStyle.TurnWidth < 0.05) continue;
                           else radius = Residue.TurnWidth * ((style.GeometryStyle.TurnHeight + style.GeometryStyle.TurnWidth) / 2.0);

                        if (chain.Residues[i].GetStructureType() == SecondaryStructureType.Helix && style.ColorStyle.HelixMaterial.Diffuse.A < 5) continue;
                        if (chain.Residues[i].GetStructureType() == SecondaryStructureType.Sheet && style.ColorStyle.SheetMaterial.Diffuse.A < 5) continue;
                        if (chain.Residues[i].GetStructureType() == SecondaryStructureType.NotDefined && style.ColorStyle.TurnMaterial.Diffuse.A < 5) continue;

                        Data.Atom alfaCarbon = chain.Residues[i].AlfaCarbon;
                        if (alfaCarbon != null)
                        {
                            Point3D begin = alfaCarbon.Position;
                            alfaCarbon = null;
                            for (int j = i + 1; j < chain.Residues.Count; j++)
                            {
                                alfaCarbon = chain.Residues[j].AlfaCarbon;
                                if (alfaCarbon != null) break;
                            }
                            if (alfaCarbon != null)
                            {
                                Point3D end = alfaCarbon.Position;
                                Cylinder cylinder = new Cylinder(begin, end, radius);
                                container.Children.Add(cylinder);
                            }
                        }
                    }
                }

                #endregion
            }

            // Get bounding box
            Rect3D boundingBox = VisualTreeHelper.GetDescendantBounds(container);
            if (boundingBox.IsEmpty)
            {
                shadowRefreshStarted = false;
                return;
            }

            #region Render Shadow

            const double blurSize = 25;
            const int renderTargetWidth = 200;
            int renderTargetHeight = (int)(200.0 * (boundingBox.SizeX / boundingBox.SizeY));
            RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap(renderTargetWidth, renderTargetHeight, 96, 96, PixelFormats.Pbgra32);

            Viewport3D shadowViewport3D = new Viewport3D();
            Border border = new Border();
            border.Padding = new Thickness(blurSize);
            border.Child = shadowViewport3D;

            // Change size of the visualizer
            border.Width = renderTargetBitmap.PixelWidth;
            border.Height = renderTargetBitmap.PixelHeight;
            border.Measure(new Size(renderTargetBitmap.PixelWidth, renderTargetBitmap.PixelHeight));
            border.Arrange(new Rect(0, 0, renderTargetBitmap.PixelWidth, renderTargetBitmap.PixelHeight));

            shadowViewport3D.Children.Add(container);

            // Create camera
            OrthographicCamera orthographicCamera = new OrthographicCamera();

            #region Accomodate camera to fit content

            orthographicCamera.Position = new Point3D(boundingBox.Location.X + boundingBox.SizeX / 2.0,
                                                      boundingBox.Location.Y,
                                                      boundingBox.Location.Z + boundingBox.SizeZ / 2.0);
            orthographicCamera.LookDirection = new Vector3D(0, 1, 0);
            orthographicCamera.UpDirection = new Vector3D(-1, 0, 0);
            orthographicCamera.Width = boundingBox.SizeZ;

            #endregion

            orthographicCamera.NearPlaneDistance = 0;

            // Set the camera & correct lights
            shadowViewport3D.Camera = orthographicCamera;

            BlurEffect blurEffect = new BlurEffect();
            blurEffect.Radius = blurSize;

            border.Effect = blurEffect;

            renderTargetBitmap.Render(border);
            renderTargetBitmap.Freeze();

            #endregion

            // Invoke in main thread
            Dispatcher.BeginInvoke((Action) delegate
            {
                #region Create Plane

                Vector3D margin = new Vector3D(boundingBox.SizeX * 0.4, 0, boundingBox.SizeZ * 0.4);
                Point3D[] points = new Point3D[]
                {
                    boundingBox.Location + new Vector3D(-margin.X, -margin.Y, -margin.Z),
                    boundingBox.Location +
                    new Vector3D(margin.X + boundingBox.SizeX, -margin.Y, -margin.Z),
                    boundingBox.Location +
                    new Vector3D(margin.X + boundingBox.SizeX, -margin.Y,
                                margin.Z + boundingBox.SizeZ),
                    boundingBox.Location +
                    new Vector3D(-margin.X, -margin.Y, margin.Z + boundingBox.SizeZ)
                };

                Polygon shadowPlane = new Polygon();
                shadowPlane.Positions = points;
                shadowPlane.TextureCoordinates = new Point[] { new Point(0, 0), new Point(0, 1), new Point(1, 1), new Point(1, 0) };

                #endregion
                shadowBrush.ImageSource = renderTargetBitmap;
                shadowBrush.Stretch = Stretch.Fill;
                shadowTargetOpacity = 0.8;

                shadowPlane.Material = new DiffuseMaterial(shadowBrush);
                shadowContainer.Children.Clear();
                shadowContainer.Children.Add(shadowPlane);

                // Update shadow hash
                shadowRefreshStarted = false;

              }, DispatcherPriority.SystemIdle);
        }
Esempio n. 37
0
 private void OnMoveMade(object sender, HandledEventArgs e)
 {
     // Blur or unblur based on whether the move was a valid one.
     BlurEffect blur = new BlurEffect();
     blur.Radius = 2;
     //BlurBitmapEffect blur = (BlurBitmapEffect)ControlPanel.BitmapEffect;
     //ControlPanel.Effect.SetValue();
     ControlPanel.Effect = blur;
     if (blur != null)
     {
         if (e.Handled)
         {
             if (blur.Radius >= 2.0)
             {
                 blur.Radius -= 2.0;
             }
             StatusLabel.Content = "";
         }
         else
         {
             blur.Radius += 2.0;
             StatusLabel.Content = "Bad Move!";
         }
     }
 }
Esempio n. 38
0
 // Pause menu -----------------------------------------------------------
 /// <summary>
 /// Pause the game and display main menu
 /// </summary>
 private void ButtonMenu_Click(object sender, RoutedEventArgs e)
 {
     btnOpenMenu.Visibility = Visibility.Hidden;
     mainMenu.Visibility = Visibility.Visible;
     BlurEffect blur = new BlurEffect();
     blur.Radius = 15;
     mapGrid.Effect = blur;
     this.MediaPlayer.Volume = MIN_VOLUME;
 }
Esempio n. 39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BlurP = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 2:
                this.IoCOutPut = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.StartServerBtn = ((System.Windows.Controls.Button)(target));

            #line 373 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.StartServerBtn.Click += new System.Windows.RoutedEventHandler(this.StartServerBtn_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.StopServerBtn = ((System.Windows.Controls.Button)(target));

            #line 374 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.StopServerBtn.Click += new System.Windows.RoutedEventHandler(this.StopServerBtn_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.RestartServerBtn = ((System.Windows.Controls.Button)(target));

            #line 375 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.RestartServerBtn.Click += new System.Windows.RoutedEventHandler(this.RestartServerBtn_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.CommandBtn = ((System.Windows.Controls.Button)(target));

            #line 377 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.CommandBtn1 = ((System.Windows.Controls.Button)(target));

            #line 378 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn1.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.CommandBtn2 = ((System.Windows.Controls.Button)(target));

            #line 379 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn2.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.CommandBtn3 = ((System.Windows.Controls.Button)(target));

            #line 380 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn3.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.CommandBtn5 = ((System.Windows.Controls.Button)(target));

            #line 381 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn5.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.CommandBtn4 = ((System.Windows.Controls.Button)(target));

            #line 382 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn4.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.CommandBtn6 = ((System.Windows.Controls.Button)(target));

            #line 383 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn6.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.CommandBtn7 = ((System.Windows.Controls.Button)(target));

            #line 384 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn7.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.CommandBtn8 = ((System.Windows.Controls.Button)(target));

            #line 385 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn8.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.CommandBtn9 = ((System.Windows.Controls.Button)(target));

            #line 386 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.CommandBtn9.Click += new System.Windows.RoutedEventHandler(this.CommandBtn_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.DrawCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 17:
                this.Out = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.OutPut = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.ServerInput = ((System.Windows.Controls.TextBox)(target));

            #line 396 "..\..\..\..\Pages\ServerPage\Page.xaml"
                this.ServerInput.KeyDown += new System.Windows.Input.KeyEventHandler(this.ServerInput_KeyDown);

            #line default
            #line hidden
                return;

            case 20:
                this.ServerState = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.IMainFrame = ((System.Windows.Controls.Frame)(target));
                return;

            case 22:
                this.CrashOut = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.StoppedOut = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.Arc1 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;

            case 25:
                this.Arc2 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;

            case 26:
                this.Arc3 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;

            case 27:
                this.Arc4 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;

            case 28:
                this.Arc5 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\MainPage.xaml"
                ((TabletLocker.MainPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.MainCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.MainCanvasBlur = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 4:
                this.MainStatus = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.TimeMark = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.DateMark = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.BtnBack = ((System.Windows.Controls.Button)(target));

            #line 66 "..\..\MainPage.xaml"
                this.BtnBack.Click += new System.Windows.RoutedEventHandler(this.BtnBack_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.AdminLoginButton = ((System.Windows.Controls.Button)(target));

            #line 95 "..\..\MainPage.xaml"
                this.AdminLoginButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click_AdminLogin);

            #line default
            #line hidden
                return;

            case 9:
                this.BtnTake = ((System.Windows.Controls.Button)(target));

            #line 110 "..\..\MainPage.xaml"
                this.BtnTake.Click += new System.Windows.RoutedEventHandler(this.BtnTake_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.BtnReturn = ((System.Windows.Controls.Button)(target));

            #line 112 "..\..\MainPage.xaml"
                this.BtnReturn.Click += new System.Windows.RoutedEventHandler(this.BtnReturn_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.BtnReport = ((System.Windows.Controls.Button)(target));

            #line 114 "..\..\MainPage.xaml"
                this.BtnReport.Click += new System.Windows.RoutedEventHandler(this.BtnReport_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.BtnBarcodeEnter = ((System.Windows.Controls.Button)(target));

            #line 121 "..\..\MainPage.xaml"
                this.BtnBarcodeEnter.Click += new System.Windows.RoutedEventHandler(this.BtnBarcodeEnter_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.BarcodeInput = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 14:
                this.MsgBox = ((System.Windows.Controls.Canvas)(target));
                return;

            case 15:
                this.MsgBoxTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.MsgBoxMessage = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:

            #line 151 "..\..\MainPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Msgbox_Return);

            #line default
            #line hidden
                return;

            case 18:
                this.UncloseableMsgBox = ((System.Windows.Controls.Canvas)(target));
                return;

            case 19:
                this.UMsgBoxTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.UMsgBoxMessage = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.TroubleInputWindow = ((System.Windows.Controls.Canvas)(target));
                return;

            case 22:
                this.TroubleSv = ((System.Windows.Controls.ScrollViewer)(target));

            #line 215 "..\..\MainPage.xaml"
                this.TroubleSv.ManipulationBoundaryFeedback += new System.EventHandler <System.Windows.Input.ManipulationBoundaryFeedbackEventArgs>(this.TroubleSv_ManipulationBoundaryFeedback);

            #line default
            #line hidden
                return;

            case 23:
                this.TroubleSvp = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 24:
                this.BtnClose = ((System.Windows.Controls.Button)(target));

            #line 230 "..\..\MainPage.xaml"
                this.BtnClose.Click += new System.Windows.RoutedEventHandler(this.BtnTroubleInputClose_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.BtnSelect = ((System.Windows.Controls.Button)(target));

            #line 247 "..\..\MainPage.xaml"
                this.BtnSelect.Click += new System.Windows.RoutedEventHandler(this.BtnTroubleInputSelect_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.BtnCancel = ((System.Windows.Controls.Button)(target));

            #line 249 "..\..\MainPage.xaml"
                this.BtnCancel.Click += new System.Windows.RoutedEventHandler(this.BtnTroubleInputCancel_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 41
0
      /// <summary>
      /// creates path from list of points, for performance set addBlurEffect to false
      /// </summary>
      /// <param name="pl"></param>
      /// <returns></returns>
      public virtual Path CreatePolygonPath(List<Point> localPath, bool addBlurEffect)
      {
         // Create a StreamGeometry to use to specify myPath.
         StreamGeometry geometry = new StreamGeometry();

         using(StreamGeometryContext ctx = geometry.Open())
         {
            ctx.BeginFigure(localPath[0], true, true);

            // Draw a line to the next specified point.
            ctx.PolyLineTo(localPath, true, true);
         }

         // Freeze the geometry (make it unmodifiable)
         // for additional performance benefits.
         geometry.Freeze();

         // Create a path to draw a geometry with.
         Path myPath = new Path();
         {
            // Specify the shape of the Path using the StreamGeometry.
            myPath.Data = geometry;

            if (addBlurEffect)
            {
                BlurEffect ef = new BlurEffect();
                {
                    ef.KernelType = KernelType.Gaussian;
                    ef.Radius = 3.0;
                    ef.RenderingBias = RenderingBias.Performance;
                }

                myPath.Effect = ef;
            }

            myPath.Stroke = Brushes.MidnightBlue;
            myPath.StrokeThickness = 5;
            myPath.StrokeLineJoin = PenLineJoin.Round;
            myPath.StrokeStartLineCap = PenLineCap.Triangle;
            myPath.StrokeEndLineCap = PenLineCap.Square;

            myPath.Fill = Brushes.AliceBlue;

            myPath.Opacity = 0.6;
            myPath.IsHitTestVisible = false;
         }
         return myPath;
      }
Esempio n. 42
0
        /// <summary>
        /// creates path from list of points
        /// </summary>
        /// <param name="pl"></param>
        /// <returns></returns>
        public Path CreateRoutePath(List<System.Windows.Point> localPath)
        {
            // Create a StreamGeometry to use to specify myPath.
             StreamGeometry geometry = new StreamGeometry();

             using(StreamGeometryContext ctx = geometry.Open())
             {
            ctx.BeginFigure(localPath[0], false, false);

            // Draw a line to the next specified point.
            ctx.PolyLineTo(localPath, true, true);
             }

             // Freeze the geometry (make it unmodifiable)
             // for additional performance benefits.
             geometry.Freeze();

             // Create a path to draw a geometry with.
             Path myPath = new Path();
             {
            // Specify the shape of the Path using the StreamGeometry.
            myPath.Data = geometry;

            BlurEffect ef = new BlurEffect();
            {
               ef.KernelType = KernelType.Gaussian;
               ef.Radius = 3.0;
               ef.RenderingBias = RenderingBias.Quality;
            }

            myPath.Effect = ef;

            myPath.Stroke = Brushes.Navy;
            myPath.StrokeThickness = 5;
            myPath.StrokeLineJoin = PenLineJoin.Round;
            myPath.StrokeStartLineCap = PenLineCap.Triangle;
            myPath.StrokeEndLineCap = PenLineCap.Square;
            myPath.Opacity = 0.6;
             }
             return myPath;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AdminCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.AdminCanvasBlur = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 3:
                this.TimeMark = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.DateMark = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.BtnBack = ((System.Windows.Controls.Button)(target));

            #line 63 "..\..\AdminLoginPage.xaml"
                this.BtnBack.Click += new System.Windows.RoutedEventHandler(this.BtnBack_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.LoginInput = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 7:
                this.PasswordInput = ((Xceed.Wpf.Toolkit.WatermarkPasswordBox)(target));
                return;

            case 8:
                this.BtnLogin = ((System.Windows.Controls.Button)(target));

            #line 113 "..\..\AdminLoginPage.xaml"
                this.BtnLogin.Click += new System.Windows.RoutedEventHandler(this.BtnLogin_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.MsgBox = ((System.Windows.Controls.Canvas)(target));
                return;

            case 10:
                this.MsgBoxTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.MsgBoxMessage = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:

            #line 136 "..\..\AdminLoginPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Msgbox_Return);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.title34 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 2:
                this.Autorization = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\MainWindow.xaml"
                this.Autorization.Click += new System.Windows.RoutedEventHandler(this.Autorization_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.UserLogin = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.SignOut = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.SignOut.Click += new System.Windows.RoutedEventHandler(this.SignOut_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 50 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Instructions_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 51 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AboutProgramm_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ExcelExport = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.ExcelExport.Click += new System.Windows.RoutedEventHandler(this.ExcelExport_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.ButtonPopUp = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.ButtonPopUp.Click += new System.Windows.RoutedEventHandler(this.ButtonPopUp_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.Clock = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.ContentPresenter = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.PresenterEffect = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 12:
                this.OutputView = ((System.Windows.Controls.ContentPresenter)(target));
                return;

            case 13:
                this.GridMenu = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.ButtonCloseMenu = ((System.Windows.Controls.Button)(target));

            #line 72 "..\..\MainWindow.xaml"
                this.ButtonCloseMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonCloseMenu_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.ButtonOpenMenu = ((System.Windows.Controls.Button)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.ButtonOpenMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonOpenMenu_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.GridConverter = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.ConverterSelect = ((System.Windows.Controls.Grid)(target));
                return;

            case 18:
                this.Converter = ((System.Windows.Controls.Button)(target));

            #line 83 "..\..\MainWindow.xaml"
                this.Converter.Click += new System.Windows.RoutedEventHandler(this.Converter_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.GridCalculator = ((System.Windows.Controls.Grid)(target));
                return;

            case 20:
                this.CalculatorSelect = ((System.Windows.Controls.Grid)(target));
                return;

            case 21:
                this.Calculator = ((System.Windows.Controls.Button)(target));

            #line 90 "..\..\MainWindow.xaml"
                this.Calculator.Click += new System.Windows.RoutedEventHandler(this.Calculator_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.GridClothes = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.ClothesSelect = ((System.Windows.Controls.Grid)(target));
                return;

            case 24:
                this.Clothes = ((System.Windows.Controls.Button)(target));

            #line 97 "..\..\MainWindow.xaml"
                this.Clothes.Click += new System.Windows.RoutedEventHandler(this.Clothes_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.GridCalendar = ((System.Windows.Controls.Grid)(target));
                return;

            case 26:
                this.CalendarSelect = ((System.Windows.Controls.Grid)(target));
                return;

            case 27:
                this.Calendar = ((System.Windows.Controls.Button)(target));

            #line 104 "..\..\MainWindow.xaml"
                this.Calendar.Click += new System.Windows.RoutedEventHandler(this.Calendar_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.GridPaint = ((System.Windows.Controls.Grid)(target));
                return;

            case 29:
                this.PaintSelect = ((System.Windows.Controls.Grid)(target));
                return;

            case 30:
                this.Paint = ((System.Windows.Controls.Button)(target));

            #line 112 "..\..\MainWindow.xaml"
                this.Paint.Click += new System.Windows.RoutedEventHandler(this.Paint_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.userControl = ((Companion_1._0.Cwa_Engine.CwaAnalyst)(target));

            #line 9 "..\..\..\Cwa-Engine\CwaAnalyst.xaml"
                this.userControl.Loaded += new System.Windows.RoutedEventHandler(this.userControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.FlatCanvas = ((System.Windows.Controls.Canvas)(target));

            #line 29 "..\..\..\Cwa-Engine\CwaAnalyst.xaml"
                this.FlatCanvas.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.FlatCanvas_MouseUp);

            #line default
            #line hidden
                return;

            case 4:
                this.ErectCanvas = ((System.Windows.Controls.Canvas)(target));

            #line 57 "..\..\..\Cwa-Engine\CwaAnalyst.xaml"
                this.ErectCanvas.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.ErectCanvas_MouseUp);

            #line default
            #line hidden
                return;

            case 5:
                this.MainStack = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 6:
                this.DreamCwaTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 98 "..\..\..\Cwa-Engine\CwaAnalyst.xaml"
                this.DreamCwaTextBox.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp);

            #line default
            #line hidden
                return;

            case 7:
                this.lblErrorMessage = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.CourseStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 9:
                this.DG = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 10:
                this.SemesterTrailLabel = ((FirstFloor.ModernUI.Windows.Controls.BBCodeBlock)(target));
                return;

            case 11:
                this.TDG = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 12:
                this.SliderStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 13:
                this.HighestCwa = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.LowestCwa = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.BlurEffect = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 16:
                this.CwaValue = ((System.Windows.Controls.Canvas)(target));

            #line 165 "..\..\..\Cwa-Engine\CwaAnalyst.xaml"
                this.CwaValue.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.CwaValue_MouseUp);

            #line default
            #line hidden
                return;

            case 17:
                this.CwaLabel = ((FirstFloor.ModernUI.Windows.Controls.BBCodeBlock)(target));
                return;

            case 18:
                this.SidePaneCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 19:
                this.ControlsListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 20:
                this.CalculateCwaButton = ((System.Windows.Controls.Button)(target));

            #line 177 "..\..\..\Cwa-Engine\CwaAnalyst.xaml"
                this.CalculateCwaButton.Click += new System.Windows.RoutedEventHandler(this.CalculateCwaButton_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.PreviousRecordButton = ((System.Windows.Controls.Button)(target));

            #line 202 "..\..\..\Cwa-Engine\CwaAnalyst.xaml"
                this.PreviousRecordButton.Click += new System.Windows.RoutedEventHandler(this.PreviousRecordButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 46
0
        /// <summary>
        /// Blurs the specified framework element.
        /// </summary>
        /// <param name="frameworkElement">The framework element.</param>
        /// <param name="completedDelegate">The completed delegate. If <c>null</c>, the callback will not be called.</param>
        /// <exception cref="ArgumentNullException">The <paramref name="frameworkElement"/> is <c>null</c>.</exception>
        public static void Blur(this FrameworkElement frameworkElement, Action completedDelegate = null)
        {
            Argument.IsNotNull("frameworkElement", frameworkElement);

            var blur = new BlurEffect();
            blur.Radius = 5;

            frameworkElement.Effect = blur;

            Dimm(frameworkElement, completedDelegate);
        }
Esempio n. 47
0
        /// <summary>コンストラクタ</summary>
        /// <param name="hWnd">現在のWindowハンドル</param>
        public WinEnumerator(IntPtr hWnd, Int32Rect screenRect, uint[] wallPixels)
        {
            _mainWindowHandle = hWnd;
            _mainProcessId = System.Diagnostics.Process.GetCurrentProcess().Id;
            _windowDesktop = WindowInfo.Create(IntPtr.Zero, "デスクトップ", null, _mainProcessId, screenRect, false, true);

            _screenRect = screenRect;
            _wallPixels = wallPixels;

            _blurEffect = new BlurEffect { Radius = Simulation.Sph.WALL_RADIUS };
            _blurEffect.Freeze();
        }
Esempio n. 48
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.gridContent = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.gridContentBlurEffekt = ((System.Windows.Media.Effects.BlurEffect)(target));
     return;
     case 4:
     this.bVorschau = ((System.Windows.Controls.Border)(target));
     return;
     case 5:
     this.imgVorschau = ((System.Windows.Controls.Image)(target));
     return;
     case 6:
     this.VorschauBlurEffekt = ((System.Windows.Media.Effects.BlurEffect)(target));
     return;
     case 7:
     this.gridVorschauBildEffekt = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.labInfVorschau = ((System.Windows.Controls.Label)(target));
     
     #line 25 "..\..\winMain.xaml"
     this.labInfVorschau.MouseEnter += new System.Windows.Input.MouseEventHandler(this.labInfVorschau_MouseEnter);
     
     #line default
     #line hidden
     
     #line 25 "..\..\winMain.xaml"
     this.labInfVorschau.MouseLeave += new System.Windows.Input.MouseEventHandler(this.labInfVorschau_MouseLeave);
     
     #line default
     #line hidden
     return;
     case 9:
     this.labInfStart = ((System.Windows.Controls.Label)(target));
     
     #line 35 "..\..\winMain.xaml"
     this.labInfStart.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfStart_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 10:
     this.labInfLaenge = ((System.Windows.Controls.Label)(target));
     
     #line 36 "..\..\winMain.xaml"
     this.labInfLaenge.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfLaenge_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 11:
     this.sstartzeit = ((System.Windows.Controls.Slider)(target));
     
     #line 37 "..\..\winMain.xaml"
     this.sstartzeit.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slider_ValueChanged);
     
     #line default
     #line hidden
     
     #line 37 "..\..\winMain.xaml"
     this.sstartzeit.GotFocus += new System.Windows.RoutedEventHandler(this.slider_GotFocus);
     
     #line default
     #line hidden
     return;
     case 12:
     this.slaenge = ((System.Windows.Controls.Slider)(target));
     
     #line 38 "..\..\winMain.xaml"
     this.slaenge.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slaenge_ValueChanged);
     
     #line default
     #line hidden
     
     #line 38 "..\..\winMain.xaml"
     this.slaenge.GotFocus += new System.Windows.RoutedEventHandler(this.slaenge_GotFocus);
     
     #line default
     #line hidden
     return;
     case 13:
     this.sqmin = ((System.Windows.Controls.Slider)(target));
     
     #line 45 "..\..\winMain.xaml"
     this.sqmin.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sqmin_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 14:
     this.sqmax = ((System.Windows.Controls.Slider)(target));
     
     #line 46 "..\..\winMain.xaml"
     this.sqmax.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sqmax_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 15:
     this.scrf = ((System.Windows.Controls.Slider)(target));
     
     #line 47 "..\..\winMain.xaml"
     this.scrf.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.scrf_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 16:
     this.sbreite = ((System.Windows.Controls.Slider)(target));
     
     #line 48 "..\..\winMain.xaml"
     this.sbreite.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sbreite_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 17:
     this.shoehe = ((System.Windows.Controls.Slider)(target));
     
     #line 49 "..\..\winMain.xaml"
     this.shoehe.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.shoehe_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 18:
     this.scropbreite = ((System.Windows.Controls.Slider)(target));
     
     #line 50 "..\..\winMain.xaml"
     this.scropbreite.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.scropbreite_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 19:
     this.scrophoehe = ((System.Windows.Controls.Slider)(target));
     
     #line 51 "..\..\winMain.xaml"
     this.scrophoehe.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.scrophoehe_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 20:
     this.scropx = ((System.Windows.Controls.Slider)(target));
     
     #line 52 "..\..\winMain.xaml"
     this.scropx.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.scropx_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 21:
     this.scropy = ((System.Windows.Controls.Slider)(target));
     
     #line 53 "..\..\winMain.xaml"
     this.scropy.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.scropy_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 22:
     this.labInfQMin = ((System.Windows.Controls.Label)(target));
     
     #line 54 "..\..\winMain.xaml"
     this.labInfQMin.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfQMin_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 23:
     this.labInfQMax = ((System.Windows.Controls.Label)(target));
     
     #line 55 "..\..\winMain.xaml"
     this.labInfQMax.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfQMax_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 24:
     this.labInfCRF = ((System.Windows.Controls.Label)(target));
     
     #line 56 "..\..\winMain.xaml"
     this.labInfCRF.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfCRF_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 25:
     this.labInfBreite = ((System.Windows.Controls.Label)(target));
     
     #line 57 "..\..\winMain.xaml"
     this.labInfBreite.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfBreite_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 26:
     this.labInfHoehe = ((System.Windows.Controls.Label)(target));
     
     #line 58 "..\..\winMain.xaml"
     this.labInfHoehe.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfHoehe_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 27:
     this.cbAudioAus = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 28:
     this.labInfCropBreite = ((System.Windows.Controls.Label)(target));
     
     #line 99 "..\..\winMain.xaml"
     this.labInfCropBreite.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfCropBreite_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 29:
     this.labInfCropHoehe = ((System.Windows.Controls.Label)(target));
     
     #line 100 "..\..\winMain.xaml"
     this.labInfCropHoehe.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfCropHoehe_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 30:
     this.labInfCropX = ((System.Windows.Controls.Label)(target));
     
     #line 101 "..\..\winMain.xaml"
     this.labInfCropX.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfCropX_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 31:
     this.labInfCropY = ((System.Windows.Controls.Label)(target));
     
     #line 102 "..\..\winMain.xaml"
     this.labInfCropY.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfCropY_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 32:
     this.sMaxFileSize = ((System.Windows.Controls.Slider)(target));
     
     #line 103 "..\..\winMain.xaml"
     this.sMaxFileSize.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sMaxFileSize_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 33:
     this.labInfMaxFileSize = ((System.Windows.Controls.Label)(target));
     return;
     case 34:
     this.comVorlage = ((System.Windows.Controls.ComboBox)(target));
     
     #line 110 "..\..\winMain.xaml"
     this.comVorlage.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comVorlage_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 35:
     this.btnVorlageDelete = ((System.Windows.Controls.Button)(target));
     
     #line 111 "..\..\winMain.xaml"
     this.btnVorlageDelete.Click += new System.Windows.RoutedEventHandler(this.btnVorlageDelete_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.btnVorlageSpeichern = ((System.Windows.Controls.Button)(target));
     
     #line 112 "..\..\winMain.xaml"
     this.btnVorlageSpeichern.Click += new System.Windows.RoutedEventHandler(this.btnVorlageSpeichern_Click);
     
     #line default
     #line hidden
     return;
     case 37:
     this.btnExport = ((System.Windows.Controls.Button)(target));
     
     #line 119 "..\..\winMain.xaml"
     this.btnExport.Click += new System.Windows.RoutedEventHandler(this.btnExport_Click);
     
     #line default
     #line hidden
     return;
     case 38:
     this.btnOpenFile = ((System.Windows.Controls.Button)(target));
     
     #line 120 "..\..\winMain.xaml"
     this.btnOpenFile.Click += new System.Windows.RoutedEventHandler(this.btnOpenFile_Click);
     
     #line default
     #line hidden
     return;
     case 39:
     this.btnCopyright = ((System.Windows.Controls.Button)(target));
     
     #line 121 "..\..\winMain.xaml"
     this.btnCopyright.Click += new System.Windows.RoutedEventHandler(this.btnCopyright_Click);
     
     #line default
     #line hidden
     return;
     case 40:
     this.gridTimeMagicInput = ((System.Windows.Controls.Grid)(target));
     return;
     case 41:
     this.tbTimeMagicStunden = ((System.Windows.Controls.TextBox)(target));
     
     #line 128 "..\..\winMain.xaml"
     this.tbTimeMagicStunden.KeyDown += new System.Windows.Input.KeyEventHandler(this.tbTimeMagicStunden_KeyDown);
     
     #line default
     #line hidden
     return;
     case 42:
     this.tbTimeMagicMinuten = ((System.Windows.Controls.TextBox)(target));
     
     #line 129 "..\..\winMain.xaml"
     this.tbTimeMagicMinuten.KeyDown += new System.Windows.Input.KeyEventHandler(this.tbTimeMagicMinuten_KeyDown);
     
     #line default
     #line hidden
     return;
     case 43:
     this.tbTimeMagicSekunden = ((System.Windows.Controls.TextBox)(target));
     
     #line 130 "..\..\winMain.xaml"
     this.tbTimeMagicSekunden.KeyDown += new System.Windows.Input.KeyEventHandler(this.tbTimeMagicSekunden_KeyDown);
     
     #line default
     #line hidden
     return;
     case 44:
     this.btnTimeMagicOk = ((System.Windows.Controls.Button)(target));
     
     #line 131 "..\..\winMain.xaml"
     this.btnTimeMagicOk.Click += new System.Windows.RoutedEventHandler(this.btnTimeMagicOk_Click);
     
     #line default
     #line hidden
     return;
     case 45:
     this.btnTimeMagicCancel = ((System.Windows.Controls.Button)(target));
     
     #line 132 "..\..\winMain.xaml"
     this.btnTimeMagicCancel.Click += new System.Windows.RoutedEventHandler(this.btnTimeMagicCancel_Click);
     
     #line default
     #line hidden
     return;
     case 46:
     this.gridSingleMagicInput = ((System.Windows.Controls.Grid)(target));
     return;
     case 47:
     this.labSingleMagicBeschreibung = ((System.Windows.Controls.Label)(target));
     return;
     case 48:
     this.tbSingleMagicInput = ((System.Windows.Controls.TextBox)(target));
     
     #line 139 "..\..\winMain.xaml"
     this.tbSingleMagicInput.KeyDown += new System.Windows.Input.KeyEventHandler(this.tbSingleMagicInput_KeyDown);
     
     #line default
     #line hidden
     return;
     case 49:
     this.btnSingleMagicOK = ((System.Windows.Controls.Button)(target));
     
     #line 140 "..\..\winMain.xaml"
     this.btnSingleMagicOK.Click += new System.Windows.RoutedEventHandler(this.btnSingleMagicOK_Click);
     
     #line default
     #line hidden
     return;
     case 50:
     this.btnSingleMagicCancel = ((System.Windows.Controls.Button)(target));
     
     #line 141 "..\..\winMain.xaml"
     this.btnSingleMagicCancel.Click += new System.Windows.RoutedEventHandler(this.btnSingleMagicCancel_Click);
     
     #line default
     #line hidden
     return;
     case 51:
     this.gridLoading = ((System.Windows.Controls.Grid)(target));
     return;
     case 52:
     this.labLadeInfo = ((System.Windows.Controls.Label)(target));
     return;
     case 53:
     this.gridRechtliches = ((System.Windows.Controls.Grid)(target));
     return;
     case 54:
     this.labInfCopyrightUser = ((System.Windows.Controls.Label)(target));
     
     #line 156 "..\..\winMain.xaml"
     this.labInfCopyrightUser.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.labInfCopyrightUser_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 55:
     this.btnCloseRechtliches = ((System.Windows.Controls.Button)(target));
     
     #line 157 "..\..\winMain.xaml"
     this.btnCloseRechtliches.Click += new System.Windows.RoutedEventHandler(this.btnCloseRechtliches_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((УчетнаяСистема.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Loaded_Window);

            #line default
            #line hidden
                return;

            case 2:
                this.blur = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 3:
                this.Button_Close = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.Button_Close.Click += new System.Windows.RoutedEventHandler(this.Button_Clic);

            #line default
            #line hidden
                return;

            case 4:
                this.Menu = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 5:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.button2 = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.button_people = ((System.Windows.Controls.Button)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.button_people.Click += new System.Windows.RoutedEventHandler(this.button_people_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.grafBtn = ((System.Windows.Controls.Button)(target));

            #line 103 "..\..\MainWindow.xaml"
                this.grafBtn.Click += new System.Windows.RoutedEventHandler(this.grafBtn_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.prod_btn = ((System.Windows.Controls.Button)(target));

            #line 126 "..\..\MainWindow.xaml"
                this.prod_btn.Click += new System.Windows.RoutedEventHandler(this.prod_btn_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.obmen_btn = ((System.Windows.Controls.Button)(target));

            #line 149 "..\..\MainWindow.xaml"
                this.obmen_btn.Click += new System.Windows.RoutedEventHandler(this.obmen_btn_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.bron_btn = ((System.Windows.Controls.Button)(target));

            #line 175 "..\..\MainWindow.xaml"
                this.bron_btn.Click += new System.Windows.RoutedEventHandler(this.bron_btn_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.button_cars = ((System.Windows.Controls.Button)(target));

            #line 200 "..\..\MainWindow.xaml"
                this.button_cars.Click += new System.Windows.RoutedEventHandler(this.button_cars_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.lock_button = ((System.Windows.Controls.Button)(target));

            #line 246 "..\..\MainWindow.xaml"
                this.lock_button.Click += new System.Windows.RoutedEventHandler(this.lock_button_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.Os_Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.pag = ((System.Windows.Controls.Frame)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BlurP = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.IoCOutPut = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.DrawCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 5:
                this.Out = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.OutPut = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.ServerState = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.IMainFrame = ((System.Windows.Controls.Frame)(target));
                return;

            case 9:
                this.CrashOut = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.StoppedOut = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.Arc1 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;

            case 12:
                this.Arc2 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;

            case 13:
                this.Arc3 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;

            case 14:
                this.Arc4 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;

            case 15:
                this.Arc5 = ((Microsoft.Expression.Shapes.Arc)(target));
                return;

            case 16:
                this.Samplebutton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
        /// <summary>
        /// Returns a Effect that emulates this BlurBitmapEffect.
        /// </summary>        
        internal override Effect GetEmulatingEffect()
        {
            if (_imageEffectEmulation != null && _imageEffectEmulation.IsFrozen)
            {
                return _imageEffectEmulation;
            }
            
            if (_imageEffectEmulation == null)
            {
                _imageEffectEmulation = new BlurEffect();
            }

            double radius = Radius;
            if (_imageEffectEmulation.Radius != radius)
            {
                _imageEffectEmulation.Radius = radius;
            }

            KernelType kernelType = KernelType;
            if (_imageEffectEmulation.KernelType != kernelType)
            {
                _imageEffectEmulation.KernelType = kernelType;
            }

            _imageEffectEmulation.RenderingBias = RenderingBias.Performance;

            if (this.IsFrozen)
            {
                _imageEffectEmulation.Freeze();
            }
            
            return _imageEffectEmulation;
        }        
        /// <summary>
        /// Opens the about dialog.
        /// </summary>
        /// <param name="action"></param>
        private void OpenAbout(object action)
        {
            Window about = new About();

            // Apply a blur effect to main window.
            BlurEffect blur = new BlurEffect();
            blur.Radius = 4;
            Application.Current.MainWindow.Effect = blur;

            about.ShowDialog();

            Application.Current.MainWindow.Effect = null;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\UserWindow.xaml"
                ((InterviewManager.UserWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 13 "..\..\UserWindow.xaml"
                ((InterviewManager.UserWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 17 "..\..\UserWindow.xaml"
                ((InterviewManager.UserWindow)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.Blur = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 3:
                this.ListName = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.UserList = ((System.Windows.Controls.ListBox)(target));

            #line 121 "..\..\UserWindow.xaml"
                this.UserList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UserList_SelectionChanged);

            #line default
            #line hidden

            #line 121 "..\..\UserWindow.xaml"
                this.UserList.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.UserList_MouseUp);

            #line default
            #line hidden
                return;

            case 5:
                this.Calendar = ((System.Windows.Controls.Calendar)(target));
                return;

            case 6:
                this.PhoneL = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.MainUI = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.Back = ((System.Windows.Controls.Button)(target));

            #line 127 "..\..\UserWindow.xaml"
                this.Back.Click += new System.Windows.RoutedEventHandler(this.Back_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.Profile = ((System.Windows.Controls.Button)(target));

            #line 128 "..\..\UserWindow.xaml"
                this.Profile.Click += new System.Windows.RoutedEventHandler(this.Profile_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.MyDates = ((System.Windows.Controls.Button)(target));

            #line 129 "..\..\UserWindow.xaml"
                this.MyDates.Click += new System.Windows.RoutedEventHandler(this.MyDates_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.AdminUI = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.AddInterviewer = ((System.Windows.Controls.Button)(target));

            #line 131 "..\..\UserWindow.xaml"
                this.AddInterviewer.Click += new System.Windows.RoutedEventHandler(this.AddInterviewer_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.RemoveInterviewer = ((System.Windows.Controls.Button)(target));

            #line 132 "..\..\UserWindow.xaml"
                this.RemoveInterviewer.Click += new System.Windows.RoutedEventHandler(this.RemoveInterviewer_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.InterviewerUI = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 15:
                this.AddDate = ((System.Windows.Controls.Button)(target));

            #line 135 "..\..\UserWindow.xaml"
                this.AddDate.Click += new System.Windows.RoutedEventHandler(this.AddDate_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.RemoveDate = ((System.Windows.Controls.Button)(target));

            #line 136 "..\..\UserWindow.xaml"
                this.RemoveDate.Click += new System.Windows.RoutedEventHandler(this.RemoveDate_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.UserUI = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 18:
                this.SubscribeToInterview = ((System.Windows.Controls.Button)(target));

            #line 139 "..\..\UserWindow.xaml"
                this.SubscribeToInterview.Click += new System.Windows.RoutedEventHandler(this.SubscribeToInterview_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.UnsubscribeFromInterview = ((System.Windows.Controls.Button)(target));

            #line 140 "..\..\UserWindow.xaml"
                this.UnsubscribeFromInterview.Click += new System.Windows.RoutedEventHandler(this.UnsubscribeFromInterview_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 54
0
        private void setInterfaceEnabledness(bool status)
        {
            BlurEffect blur;
            disabled = !status;
            CancelButton.IsEnabled = !status;
            ribbon.IsEnabled = status;
            GameGrid.IsEnabled = status;
            ArchiveGrid.IsEnabled = status;

            System.Windows.Visibility a;
            FadeEffect fade;
            if (status) {
                // this is when enabled
                fade = new FadeOutEffect(timing);
                a = System.Windows.Visibility.Collapsed;
                //                b = System.Windows.Visibility.Visible;
                blur = null;
            } else {
                fade = new FadeInEffect(timing);
                // this is when disabled
                a = System.Windows.Visibility.Visible;
                //              b = System.Windows.Visibility.Collapsed;
                blur = new BlurEffect();
                blur.Radius = 10;
            }
            fade.Start(DisablerGrid);

            notifier.Animated = !status;

            notifier.MenuEnabled = status;
            //progress.Effect = blur;

            //ribbon.Effect = blur;
            //subGrid.Effect = blur;

            CancelButton.Visibility = a;
            //            DisablerGrid.Visibility = a;
        }
Esempio n. 55
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\Pages\SetttingPage.xaml"
                ((Server_Restart_Final.SetttingPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.BlurP = ((System.Windows.Media.Effects.BlurEffect)(target));
                return;

            case 3:
                this.OpenFilePicker_Btn = ((System.Windows.Controls.Button)(target));

            #line 503 "..\..\..\Pages\SetttingPage.xaml"
                this.OpenFilePicker_Btn.Click += new System.Windows.RoutedEventHandler(this.OpenFilePicker_Btn_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.SaveFilePicker_Btn = ((System.Windows.Controls.Button)(target));

            #line 506 "..\..\..\Pages\SetttingPage.xaml"
                this.SaveFilePicker_Btn.Click += new System.Windows.RoutedEventHandler(this.SaveFilePicker_Btn_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Settings = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.Settingsa = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.UserFroceCheck = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 8:
                this.SQLServerLocation = ((System.Windows.Controls.TextBox)(target));

            #line 549 "..\..\..\Pages\SetttingPage.xaml"
                this.SQLServerLocation.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.SQLServerLocation_MouseDown);

            #line default
            #line hidden
                return;

            case 9:
                this.ServerRestartTimes = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.MemorySlider = ((System.Windows.Controls.Slider)(target));

            #line 559 "..\..\..\Pages\SetttingPage.xaml"
                this.MemorySlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.MemorySlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.parameter = ((System.Windows.Controls.TextBox)(target));

            #line 560 "..\..\..\Pages\SetttingPage.xaml"
                this.parameter.KeyDown += new System.Windows.Input.KeyEventHandler(this.Parameter_KeyDown);

            #line default
            #line hidden
                return;

            case 12:
                this.ValueSearch = ((System.Windows.Controls.TextBox)(target));

            #line 561 "..\..\..\Pages\SetttingPage.xaml"
                this.ValueSearch.KeyDown += new System.Windows.Input.KeyEventHandler(this.ValueSearch_KeyDown);

            #line default
            #line hidden
                return;

            case 13:
                this.ValueSearchMinimize = ((System.Windows.Controls.TextBox)(target));

            #line 562 "..\..\..\Pages\SetttingPage.xaml"
                this.ValueSearchMinimize.KeyDown += new System.Windows.Input.KeyEventHandler(this.ValueSearch_KeyDown);

            #line default
            #line hidden
                return;

            case 14:
                this.CommandEditList = ((System.Windows.Controls.ListBox)(target));
                return;

            case 15:
                this.CommandEdit = ((System.Windows.Controls.TextBox)(target));

            #line 580 "..\..\..\Pages\SetttingPage.xaml"
                this.CommandEdit.KeyDown += new System.Windows.Input.KeyEventHandler(this.CommandEdit_KeyDown);

            #line default
            #line hidden
                return;

            case 16:
                this.CommandEditNum = ((System.Windows.Controls.TextBox)(target));

            #line 581 "..\..\..\Pages\SetttingPage.xaml"
                this.CommandEditNum.KeyDown += new System.Windows.Input.KeyEventHandler(this.CommandEdit_KeyDown);

            #line default
            #line hidden
                return;

            case 17:
                this.DelBtn = ((System.Windows.Controls.Button)(target));

            #line 582 "..\..\..\Pages\SetttingPage.xaml"
                this.DelBtn.Click += new System.Windows.RoutedEventHandler(this.DelBtn_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }