示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.imgPin = ((System.Windows.Controls.Image)(target));

            #line 10 "..\..\..\GraphCheckUI\PinImage.xaml"
                this.imgPin.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Image_MouseEnter);

            #line default
            #line hidden

            #line 10 "..\..\..\GraphCheckUI\PinImage.xaml"
                this.imgPin.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Image_MouseLeave);

            #line default
            #line hidden
                return;

            case 2:
                this.shadowEffect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        public KNTabView()
            : base()
        {
            TabHeight = 30.0;

            SnapsToDevicePixels = true;

            contentCanvas = new Border();
            contentCanvas.Background = new SolidColorBrush(Color.FromRgb(245, 245, 245));
            contentCanvas.BorderBrush = new SolidColorBrush(Color.FromArgb(25, 0, 0, 0));
            contentCanvas.BorderThickness = new Thickness(1.0);
            Canvas.SetZIndex(contentCanvas, kContentZIndex);

            DropShadowEffect effect = new DropShadowEffect();
            effect.BlurRadius = 3.0;
            effect.Color = Colors.Black;
            effect.Direction = 90.0;
            effect.ShadowDepth = 0.0;

            contentCanvas.Effect = effect;

            this.Children.Add(contentCanvas);

            this.AddObserverToKeyPathWithOptions(this, "TabHeight", 0, null);
            this.AddObserverToKeyPathWithOptions(this, "ActiveItem", 0, null);
            this.AddObserverToKeyPathWithOptions(this, "LeftControl", 0, null);
            this.AddObserverToKeyPathWithOptions(this,
                "Items",
                KNKeyValueObservingOptions.KNKeyValueObservingOptionNew |
                KNKeyValueObservingOptions.KNKeyValueObservingOptionOld,
                null);
        }
示例#3
0
        private static void DirectionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DropShadowEffect target = ((DropShadowEffect)d);


            target.PropertyChanged(DirectionProperty);
        }
示例#4
0
        private void StatusBar_Update(object sender, ProgressChangedEventArgs e)
        {
            if (e.ProgressPercentage == 0 && StatusGrid.Visibility != Visibility.Visible)
            {
                DoubleAnimation FadeIn = new DoubleAnimation(1, TimeSpan.FromMilliseconds(250));
                FadeIn.AccelerationRatio = 0.5;
                FadeIn.DecelerationRatio = 0.5;
                StatusGrid.Visibility    = Visibility.Visible;
                StatusGrid.BeginAnimation(Grid.OpacityProperty, FadeIn);
                ColorAnimation ToOrange = new ColorAnimation(Color.FromRgb(0xd8, 0x8c, 0x41), TimeSpan.FromSeconds(1));
                FullWindow.Effect.BeginAnimation(DropShadowEffect.ColorProperty, ToOrange);
            }
            else if (e.ProgressPercentage == 1)
            {
                DoubleAnimation FadeOut = new DoubleAnimation(0, TimeSpan.FromMilliseconds(250));
                FadeOut.AccelerationRatio = 0.5;
                FadeOut.DecelerationRatio = 0.5;
                StatusGrid.BeginAnimation(Grid.OpacityProperty, FadeOut);
                ColorAnimation ToDefault = new ColorAnimation(Color.FromRgb(0x00, 0xC1, 0xEC), TimeSpan.FromSeconds(1));
                FullWindow.Effect.BeginAnimation(DropShadowEffect.ColorProperty, ToDefault);
            }
            else if (e.ProgressPercentage == 2)
            {
                StatusGrid.Visibility = Visibility.Collapsed;

                System.Windows.Media.Effects.DropShadowEffect dropShadowEffect = new System.Windows.Media.Effects.DropShadowEffect();
                dropShadowEffect.Color       = Color.FromRgb(0xd8, 0x8c, 0x41);
                dropShadowEffect.ShadowDepth = 0;
                StatusBar.Effect             = dropShadowEffect;
            }
        }
示例#5
0
        /// <summary>
        ///     create a new twitter block
        /// </summary>
        public TwitterBlock(HomePage parent)
        {
            InitializeComponent();

            _parentHome = parent;

            //Handlers for timers
            AddHandler(TouchUpEvent, new EventHandler<TouchEventArgs>(twitterBoxClicked), true);
            AddHandler(MouseUpEvent, new MouseButtonEventHandler(twitterBoxClicked), true);

            DropShadowEffect dShdow = new DropShadowEffect();
            dShdow.BlurRadius = 10;
            dShdow.Opacity = 0.365;
            Effect = dShdow;

            //create a new dispatcher
            dt = new DispatcherTimer();
            dt.Interval = TimeSpan.FromSeconds(7);
            dt.Tick += dt_Tick;

            if (tweets.Count == 0)
            {
                IEnumerable<TwitterStatus> result = service.getTweets();
                if (result != null)
                {
                    foreach (TwitterStatus t in result)
                    {
                        //Cache
                        tweets.Add(t);
                    }
                }
            }
            dt.Start();
        }
示例#6
0
        private static void RenderingBiasPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DropShadowEffect target = ((DropShadowEffect)d);


            target.PropertyChanged(RenderingBiasProperty);
        }
示例#7
0
        public Tile(ICase tile, TileFactory tileFactory, List<Unite> listUnite, SolidColorBrush playerBrush)
        {
            InitializeComponent();
            this.tile = tile;
            this.nbUnite = listUnite.Count;
            VisualBrush myBrush = new VisualBrush();
            aPanel = new Grid();

            aPanel.Background = tileFactory.getViewTile(tile);

            // Create some text.
            TextBlock backText = new TextBlock();
            Canvas.SetZIndex(backText, 3);
            if (listUnite != null && listUnite.Count > 0)
            {
                backText.Text = " " + listUnite.Count.ToString() + " ";
                backText.Background = (SolidColorBrush)new BrushConverter().ConvertFromString(listUnite[0].Proprietaire.Couleur);
                backText.Foreground = Brushes.White;
            }
            FontSizeConverter fSizeConverter = new FontSizeConverter();
            backText.FontSize = (double)fSizeConverter.ConvertFromString("10pt");
            backText.Margin = new Thickness(10);
            Grid.SetColumn(backText, 0);
            Grid.SetRow(backText, 0);
            DropShadowEffect myDropShadowEffect  = new DropShadowEffect();
            myDropShadowEffect.BlurRadius = 1;
            myDropShadowEffect.Color = Color.FromRgb(0,0,0);
            myDropShadowEffect.ShadowDepth = 2;
            backText.Effect=myDropShadowEffect;
            aPanel.Children.Add(backText);
            myBrush.Visual = aPanel;
            rect.Fill = myBrush;
            rect1.Stroke = playerBrush;
        }
示例#8
0
 private void rect1_MouseDown(object sender, MouseButtonEventArgs e)
 {
     Shape s = (Shape)sender;
     startx = Canvas.GetLeft(s);
     starty = Canvas.GetTop(s);
     s.MouseMove += rect1_MouseMove;
     s.CaptureMouse();
     e.Handled = true;
     Point p = e.GetPosition((IInputElement)canvas1);
     deltax = p.X - Canvas.GetLeft(s);
     deltay = p.Y - Canvas.GetTop(s);
     if (last != null)
     {
         if (last.Effect != null)
         {
             last.Effect = null;
             Canvas.SetZIndex(last, 0);
         }
     }
     last = s;
     DropShadowEffect ef  = new DropShadowEffect();
     ef.Color = Colors.Red;
     ef.BlurRadius = 30;
     ef.ShadowDepth = 0;
     s.Effect = ef;
     Canvas.SetZIndex(last, 10);
 }
示例#9
0
        public Webcam()
        {
            InitializeComponent();

            // Subscribe command bindings
            CommandBindings.Add(new CommandBinding(CaptureImageCommands.CaptureImage,
                CaptureImage_Executed, CaptureImage_CanExecute));
            CommandBindings.Add(new CommandBinding(CaptureImageCommands.RemoveImage,
                RemoveImage_Executed));
            CommandBindings.Add(new CommandBinding(CaptureImageCommands.ClearAllImages,
                ClearAllImages_Executed));

            _tweetBtn.Background = new SolidColorBrush((Color) ColorConverter.ConvertFromString("#FF146290"));
            DropShadowEffect dShdow = new DropShadowEffect();
            dShdow.BlurRadius = 10;
            dShdow.Opacity = 0.365;
            _tweetBtn.Effect = dShdow;

            // Create default device
            SelectedWebcamMonikerString = (CapDevice.DeviceMonikers.Length > 0)
                ? CapDevice.DeviceMonikers[0].MonikerString
                : "";

            _sbIn = new Storyboard();
            Util.FadeIn(_sbIn, _selectedImg);
            Util.FadeIn(_sbIn, _tweetTxt);
            Util.FadeIn(_sbIn, _imagesBox);
            Util.FadeIn(_sbIn, webcamPlayer);
        }
示例#10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DS = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            #line 34 "..\..\dash_board.xaml"
                this.TB.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TB_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 37 "..\..\dash_board.xaml"
                this.AButton.Click += new System.Windows.RoutedEventHandler(this.OnImageButtonClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#11
0
 public static void EaseValue(DropShadowEffect current, DropShadowEffect startValue, DropShadowEffect endValue, double percent)
 {
     if ( current.BlurRadius != endValue.BlurRadius) current.BlurRadius  = EaseHelper.EaseValue(startValue.BlurRadius, endValue.BlurRadius, percent);
     if (current.Opacity != endValue.Opacity) current.Opacity = EaseHelper.EaseValue(startValue.Opacity, endValue.Opacity, percent);
     if (current.Color != endValue.Color) current.Color = EaseHelper.EaseValue(startValue.Color, endValue.Color, percent);
     if (current.Direction != endValue.Direction) current.Direction = EaseHelper.EaseValue(startValue.Direction, endValue.Direction, percent);
     if (current.ShadowDepth != endValue.ShadowDepth) current.ShadowDepth = EaseHelper.EaseValue(startValue.ShadowDepth, endValue.ShadowDepth, percent);
 }
 void menu_Loaded(object sender, RoutedEventArgs e)
 {
     //Direction="-90" BlurRadius="10" ShadowDepth="10"
     sombra = Efectos.getSombra1();
     fondo.Effect = null;
     this.Height = TAM_MIN;
     
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyCaptionLabel = ((System.Windows.Controls.Label)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.MyCaptionLabel.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MyCaptionLabel_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\MainWindow.xaml"
                this.btnClose.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnClose_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 3:
                this.btnColeShadow = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            #line 44 "..\..\MainWindow.xaml"
                this.myBtnMax.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.myBtnMax_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 5:
                this.btnMaxShadow = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            #line 68 "..\..\MainWindow.xaml"
                this.myBtnMin.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.myBtnMin_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 7:
                this.btnMinShadow = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#14
0
        public static Se.DropShadowEffect ToMediaEffect(this Wg.ShadowEffect input)
        {
            Se.DropShadowEffect output = new Se.DropShadowEffect();
            output.BlurRadius  = input.Radius;
            output.Direction   = input.Angle + 90;
            output.ShadowDepth = input.Distance;

            return(output);
        }
示例#15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

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

            case 3:
                this.pageTransitionControl = ((WpfPageTransitions.PageTransition)(target));
                return;

            case 4:
                this.Title = ((System.Windows.Shapes.Rectangle)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.Title.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Title_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 58 "..\..\MainWindow.xaml"
                this.btnExit.Click += new System.Windows.RoutedEventHandler(this.btnExit_Click);

            #line default
            #line hidden
                return;

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

            #line 67 "..\..\MainWindow.xaml"
                this.btnMin.Click += new System.Windows.RoutedEventHandler(this.btnMin_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.DS = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#16
0
        private static void ManageChange(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DropShadowEffect shadow = (DropShadowEffect)d;

            if (shadow._parentUIElement != null && INTERNAL_VisualTreeManager.IsElementInVisualTree(shadow._parentUIElement))
            {
                shadow.RefreshEffect();
            }
        }
示例#17
0
 public DropShadowEffect DropEffect()
 {
     DropShadowEffect dropeffect = new DropShadowEffect();
     dropeffect.ShadowDepth = 3;
     dropeffect.Color = Color.FromRgb(0, 0, 0);
     dropeffect.Opacity = .7;
     dropeffect.BlurRadius = 5.8;
     return dropeffect;
 }
 public static DropShadowEffect getSombra1()
 {
     DropShadowEffect sombra = new DropShadowEffect();
     sombra.RenderingBias = RenderingBias.Performance;
     sombra.Direction = -90;
     sombra.BlurRadius = 10;
     sombra.ShadowDepth = 10;
     return sombra;
 }
示例#19
0
        /// <summary>
        ///     Helper method to list all the tweets in the scrollviewer
        /// </summary>
        private void listTweetsInTheScrollViewer()
        {
            IEnumerable<TwitterStatus> tweets = service.getTweets();

            listTitle.FontFamily = Util.buttonTextFont;
            listTitle.Foreground = new SolidColorBrush(Util.buttonTextColor);

            // set up the "Tweet Us" button properties
            _tweetUsBtn.FontFamily = Util.buttonTextFont;
            DropShadowEffect dShdow = new DropShadowEffect();
            dShdow.BlurRadius = 10;
            dShdow.Opacity = 0.365;
            _tweetUsBtn.Effect = dShdow;

            // iterate over the twitter list
            if (tweets != null)
            {
                int i = 0;
                foreach (TwitterStatus tweet in tweets)
                {
                    // a tweet element (tweet image + tweet message)
                    TweetListElement twElm = new TweetListElement();

                    BrushConverter bc = new BrushConverter();
                    // change the background colour of each element
                    Brush br = i%2 == 0 ? (Brush) bc.ConvertFrom("#FF073f60") : (Brush) bc.ConvertFrom("#FF4899c8");
                    twElm.setBackground(br);
                    twElm.setMargin(0, 0, 0, 5);

                    // put the twitter text in this variable
                    String twitterText = tweet.TextDecoded;
                    twElm.setTweetText(twitterText);

                    // put the default twitter image, for the case that the url is not working.
                    BitmapImage img = new BitmapImage();
                    img.BeginInit();
                    img.UriSource = new Uri("pack://application:,,/Resources/images/logoCCF.png");
                    img.EndInit();

                    //Ask Twitter to get url
                    List<String> urls = service.getImageUrlsForTweet(tweet);
                    if (urls.Count > 0)
                    {
                        String imgUrl = urls[0];
                        img = service.getBitmapImageForUrl(imgUrl);
                    }

                    Util.SetupQR(QRText, "https://twitter.com/childcancernz");

                    twElm.setTweetImg(img);

                    _tweetsList.Children.Add(twElm);
                    i++;
                }
            }
        }
示例#20
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.OG = ((System.Windows.Media.Effects.DropShadowEffect)(target));
         return;
     }
     this._contentLoaded = true;
 }
示例#21
0
 public DragPreviewAdorner(UIElement adornedElement, FrameworkElement previewElement)
     : base(adornedElement)
 {
     SetPreviewElement(previewElement);
       DropShadowEffect d = new DropShadowEffect();
       d.BlurRadius = 25.0;
       d.ShadowDepth = 2;
       d.Opacity = 0.5;
       this.Effect = d;
 }
示例#22
0
        public Widget(LogicCanvasType type)
        {
            InitializeComponent();
            ToolTip = type.ToString();

            glow = new DropShadowEffect();
            glow.ShadowDepth = 0;
            glow.Color = Colors.Blue;
            glow.BlurRadius = 5;
        }
 private static DropShadowEffect Clone(DropShadowEffect dropShadowEffect)
 {
     return new DropShadowEffect()
     {
         BlurRadius = dropShadowEffect.BlurRadius,
         Color = dropShadowEffect.Color,
         Direction = dropShadowEffect.Direction,
         Opacity = dropShadowEffect.Opacity,
         RenderingBias = dropShadowEffect.RenderingBias,
         ShadowDepth = dropShadowEffect.ShadowDepth
     };
 }
        public pnlMenuLugar()
        {
            InitializeComponent();
            sombra = new DropShadowEffect();
            sombra.Direction = -90;
            sombra.ShadowDepth = 10;
            sombra.BlurRadius = 10;
            sombra.RenderingBias = RenderingBias.Performance;

            this.Height = MIN_SIZE;
            initEventHandlers();
        }
示例#25
0
 public static DropShadowEffect ShadowProvider()
 {
     if(_dropShad==null)
     {
         _dropShad = new DropShadowEffect();
         _dropShad.BlurRadius = 10;
         _dropShad.Opacity = 0.35;
         _dropShad.ShadowDepth = 3;
         _dropShad.RenderingBias = RenderingBias.Performance;                
     }
     return _dropShad;
 }
        public pnlVerFondoSeries()
        {
            InitializeComponent();
            sombra = new DropShadowEffect();
            sombra.Direction = -90;
            sombra.ShadowDepth = 20;
            sombra.BlurRadius = 20;
            sombra.RenderingBias = RenderingBias.Performance;

            this.Height = MIN_SIZE;
            this.Loaded += new RoutedEventHandler(pnlVerFondoSeries_Loaded);
        }
示例#27
0
        public static DropShadowEffect CreateGlowEffect(Color color)
        {
            DropShadowEffect glowEffect = new DropShadowEffect()
            {
                ShadowDepth = 0,
                Color = color,
                Opacity = 1,
                BlurRadius = 20
            };

            return glowEffect;
        }
示例#28
0
 public About()
 {
     InitializeComponent();
     textBlock1.Text = VersionInfo;
     myDropShadow = new DropShadowEffect();
     myDropShadow.Opacity = 1;
     myDropShadow.ShadowDepth = 0;
     myDropShadow.BlurRadius = 8;
     myDropShadow.Color = Colors.Red;
     this.Closing += new System.ComponentModel.CancelEventHandler(About_Closing);
     textBox1.Text = Properties.Resources.Credits;
 }
        public pnlCompartir()
        {
            InitializeComponent();
            sombra = new DropShadowEffect();
            sombra.Direction = -90;
            sombra.ShadowDepth = 10;
            sombra.BlurRadius = 10;
            sombra.RenderingBias = RenderingBias.Performance;

            this.Height = MIN_SIZE;
            this.Visibility = System.Windows.Visibility.Hidden;
            
        }
示例#30
0
        private void Grid_Loaded(object sender, RoutedEventArgs e)
        {
            glowSelected = new DropShadowEffect();
            glowSelected.ShadowDepth = 0;
            glowSelected.BlurRadius = 15;
            glowSelected.Color = Colors.Red;

            Database.SelectAll(dataGrid);
            Database.DeserializeRunsFromDB();

            totalRuns.Text = "Total runs: " + Database.dataTable.Rows.Count.ToString();

            dataGrid.SelectedIndex = 0;
        }
示例#31
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BeadsOfCourage"/> class.
 /// </summary>
 public BeadsOfCourage()
 {
     InitializeComponent();
     beadPoloroid.IsUnclickable = true;
     //load beads from xml
     String path = Path.Combine(Path.GetFullPath("."), "Utils/xml/BeadsOfCourageSchema/beads.xml");
     _beadModel = XMLUtilities.GetBeadsContentFromFile(path);
     _r = new Random();
     button.Background = SELECTED_COLOR;
     DropShadowEffect dShdow = new DropShadowEffect();
     dShdow.BlurRadius = 10;
     dShdow.Opacity = 0.365;
     button.Effect = dShdow;
 }
示例#32
0
        public MainWindow()
        {
            InitializeComponent();
            randomNumber = new Random();

            m_arrUsedCards = new bool[iCardsNumber];
            m_arrCardState = new eCatdState[iCardsOnScreen];

            effectSelected = new DropShadowEffect();
            effectSelected.ShadowDepth = 0;
            effectSelected.BlurRadius = 20;
            effectSelected.Color = brushSelectedColor.Color;
            m_Cards = new Card[iCardsOnScreen];
        }
    }//Считываем с html нужные нам значения

    private void AddLabelOnGrid(Panel panel, byte count)
    {
        ushort Height = 3;
        Label  lb     = new Label();

        #region Blur на лбл 1
        System.Windows.Media.Effects.DropShadowEffect effect = new System.Windows.Media.Effects.DropShadowEffect();
        effect.BlurRadius    = 35;
        effect.Direction     = 160;
        effect.Opacity       = 100;
        effect.RenderingBias = System.Windows.Media.Effects.RenderingBias.Performance;
        effect.ShadowDepth   = 0;
        #endregion
        for (int i = 1; i <= count + 1; i++)
        {
            #region статические настройки label
            lb            = new Label();
            lb.Foreground = new SolidColorBrush(Color.FromRgb(160, 160, 160));
            lb.FontWeight = FontWeights.Bold;
            lb.FontSize   = 16;
            lb.FontFamily = new FontFamily("Tahoma");
            #endregion
            lb.Margin  = new Thickness(10, Height++, 0, 0);
            lb.Content = Items[i - 1];
            panel.Children.Add(lb);
        }
        //
        #region до такогото числа опалачено
        #region статические настройки label
        lb            = new Label();
        lb.FontWeight = FontWeights.Bold;
        lb.FontSize   = 16;
        lb.FontFamily = new FontFamily("Tahoma");
        #endregion
        if (Items[Items.Length - 1] == "Сегодня после 10:00 у вас отключат инернет")
        {
            effect.Color = Colors.Red;
        }
        else
        {
            effect.Color = Colors.CornflowerBlue;
        }
        lb.Effect     = effect;
        lb.Foreground = new SolidColorBrush(Color.FromRgb(160, 160, 160));
        lb.Margin     = new Thickness(10, Height++, 0, 0);
        lb.Content    = Items[Items.Length - 1];
        panel.Children.Add(lb);
        #endregion
    }//Добавление на форму меток
示例#34
0
 //Sets the UI style of a text box
 private static void setRTBoxStyle(RichTextBox box)
 {
     box.FontFamily = Util.contentTextFont;
     box.FontSize = Util.contentTextSize;
     box.Foreground = new SolidColorBrush(Util.contentTextColor);
     box.Background = new SolidColorBrush(Util.contentBgColor);
     box.Margin = new Thickness(10);
     box.Width = 400;
     box.Height = 250;
     //add drop shadow
     DropShadowEffect dShdow = new DropShadowEffect();
     dShdow.BlurRadius = 10;
     dShdow.Opacity = 0.365;
     box.Effect = dShdow;
 }
 public GaugeControl()
 {
     InitializeComponent();
     motion.onMotion   += Motion_onMotion;
     back_front.Fill    = arcOutBackColor;
     front.Fill         = arcBackColor;
     shadow             = new System.Windows.Media.Effects.DropShadowEffect();
     shadow.ShadowDepth = 5;
     shadow.Opacity     = .4;
     needleHeigth       = arcHeight;
     if (isFirst)
     {
         setStyle();
     }
     isFirst = false;
 }
示例#36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BorderTogglePopup = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

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

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

            #line 69 "..\..\..\..\control_items\your_order_content_presenters\TechnicalTaskContent.xaml"
                this.ButtonStatusProcessing.Click += new System.Windows.RoutedEventHandler(this.ButtonStatusChange_Click);

            #line default
            #line hidden
                return;

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

            case 5:

            #line 125 "..\..\..\..\control_items\your_order_content_presenters\TechnicalTaskContent.xaml"
                ((System.Windows.Controls.ListBox)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListBox_MouseDoubleClick);

            #line default
            #line hidden
                return;

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

            #line 142 "..\..\..\..\control_items\your_order_content_presenters\TechnicalTaskContent.xaml"
                this.ButtonDelete.Click += new System.Windows.RoutedEventHandler(this.ButtonDelete_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#37
0
//=================================================================================================================
//Methods for handling mouse events on our board
        private void cardChangeSmall_MouseEnter(object sender, EventArgs e)
        {
            Image img = ((Image)sender);
            DropShadowEffect cardGlow = new DropShadowEffect();
            Color c = new Color();
            c.ScA = (float)0.5;
            c.ScB = 1;
            c.ScG = (float)0.5;
            c.ScR = (float)0.4;

            cardGlow.Color = c;
            cardGlow.Direction = 90;
            img.Effect = cardGlow;
            g_index = Canvas.GetZIndex(img);

            Canvas.SetZIndex(img, 20);//make sure its on top while its in focus
        }
        public CompositeFilter(ConvolutionSet2D set = null, bool isEditor = true)
        {
            InitializeComponent();

            // Selected effect
            _selectEffect = new DropShadowEffect()
            {
                Direction = 0,
                ShadowDepth = 0,
                BlurRadius = 40,
                Color = UtilityWPF.ColorFromHex("FFEB85"),
                Opacity = 1,
            };

            // Context Menu
            _kernelContextMenu = (ContextMenu)this.Resources["kernelContextMenu"];

            // Combobox
            foreach (SetOperationType operation in Enum.GetValues(typeof(SetOperationType)))
            {
                cboPostOperation.Items.Add(operation);
            }
            cboPostOperation.SelectedIndex = 0;

            // Load set passed in
            if (set != null)
            {
                foreach (var child in set.Convolutions)
                {
                    InsertKernel(child);
                }

                cboPostOperation.SelectedValue = set.OperationType;

                lblInstructions.Visibility = Visibility.Collapsed;

                if (!isEditor)
                {
                    btnSave.Visibility = Visibility.Collapsed;
                }
            }

            _initialized = true;

            RefreshStatsPanel();
        }
        public static DropShadowEffect selectionGlowEnvironment()
        {
            DropShadowEffect glowEffect = new DropShadowEffect();
            glowEffect.Direction = 220;
            glowEffect.ShadowDepth = 5;
            glowEffect.BlurRadius = 5;

            Color cardGlowColor = new Color();
            cardGlowColor.ScA = 1;
            cardGlowColor.ScR = 0.10F;
            cardGlowColor.ScG = 1;
            cardGlowColor.ScB = 0.3F;

            glowEffect.Color = cardGlowColor;

            return glowEffect;
        }
        public FlagGeneratorWindow()
        {
            InitializeComponent();

            this.Background = SystemColors.ControlBrush;

            _selectEffect = new DropShadowEffect()
            {
                Direction = 0,
                ShadowDepth = 0,
                BlurRadius = 14,
                Color = UtilityWPF.ColorFromHex("0086E2"),
                Opacity = .8,
            };

            _initialized = true;
        }
示例#41
0
        private void Grid_Loaded(object sender, RoutedEventArgs e)
        {
            glowSelected = new DropShadowEffect();
            glowSelected.ShadowDepth = 0;
            glowSelected.BlurRadius = 15;
            glowSelected.Color = Colors.Red;

            this.DataContext = this;

            BackupEnabled = Properties.Settings.Default.backupEnabled;
            backupPath.Text = Properties.Settings.Default.backupPath;

            backupPath.IsEnabled = BackupEnabled;
            btnBrowse.IsEnabled = BackupEnabled;

            slider.Value = Properties.Settings.Default.timerRefreshSpeed;
            txtSaved.Visibility = Visibility.Hidden;
        }
        static GlobalEffects() {
            int blurRadius = 10;

            RedGlowEffect = new DropShadowEffect();
            RedGlowEffect.ShadowDepth = 0;
            RedGlowEffect.BlurRadius = blurRadius;
            RedGlowEffect.Color = Colors.Red;

            GoldGlowEffect = new DropShadowEffect();
            GoldGlowEffect.ShadowDepth = 0;
            GoldGlowEffect.BlurRadius = blurRadius;
            GoldGlowEffect.Color = Colors.Gold;

            BlueGlowEffect = new DropShadowEffect();
            BlueGlowEffect.ShadowDepth = 0;
            BlueGlowEffect.BlurRadius = blurRadius;
            BlueGlowEffect.Color = Colors.BlueViolet;
        }
示例#43
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            glowSelected = new DropShadowEffect();
            glowSelected.ShadowDepth = 0;
            glowSelected.BlurRadius = 15;
            glowSelected.Color = Colors.Red;

            foreach (var character in Characters.List)
            {
                var icon = new Image();
                icon.ToolTip = character.Name;
                icon.Stretch = Stretch.None;

                icon.Source = Stuff.BitmapToImageSource(character.Icon);
                charPanel.Children.Add(icon);
                icon.MouseLeftButtonDown += Icon_MouseLeftButtonDown;
            }
        }
示例#44
0
    // on start of the Application windows is generated and shown
    protected override void OnStartup(StartupEventArgs args)
    {
        // call original OnStartup routine
        base.OnStartup(args);

        // generate WPF class Window
        objWindow = new Window();
        // and set properties
        objWindow.Title = "Test program for Windows Presentation Framework";
        objWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
        objWindow.Width         = 800;
        objWindow.Height        = 600;
        objWindow.ShowInTaskbar = true;
        objWindow.AddHandler(FrameworkElement.KeyDownEvent, new KeyEventHandler(Window_KeyDown), false);

        // generate Textblock class
        objTextBlock = new TextBlock();
        // and set properties
        objTextBlock.TextAlignment       = TextAlignment.Center;
        objTextBlock.HorizontalAlignment = HorizontalAlignment.Center;
        objTextBlock.VerticalAlignment   = VerticalAlignment.Center;
        objTextBlock.Foreground          = Brushes.Black;
        objTextBlock.FontSize            = 40;
        objTextBlock.Text = "Test program for \n\nWindows Presentation Framework";

        // generate effect object for the Textblock class
        objEffect = new System.Windows.Media.Effects.DropShadowEffect();
        // and set properties
        objEffect.ShadowDepth = 4;
        objEffect.Color       = (Color)ColorConverter.ConvertFromString("DarkGray");
        objEffect.BlurRadius  = 4;

        // assign Effect to Textblock
        objTextBlock.Effect = objEffect;

        // assign Textblock to Window
        objWindow.Content = objTextBlock;

        // show windows (in opposite to ShowDialog() Show() does not wait for closing of the window)
        objWindow.Show();
    }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MetroMainWindow = ((RFIDBackground.MainWindow)(target));

            #line 6 "..\..\MainWindow.xaml"
                this.MetroMainWindow.Closing += new System.ComponentModel.CancelEventHandler(this.MetroMainWindow_Closing);

            #line default
            #line hidden
                return;

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

            #line 9 "..\..\MainWindow.xaml"
                this.SetButton.Click += new System.Windows.RoutedEventHandler(this.SetButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.SetFlyout = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 4:
                this.SerialComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 6:
                this.MainControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
                return;

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

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

            case 9:
                this.SwitchButton = ((MahApps.Metro.Controls.Tile)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.SwitchButton.Click += new System.Windows.RoutedEventHandler(this.SwitchButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.SwitchDropShadowEffect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

            case 11:
                this.IndicateStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 12:
                this.StatusRing = ((MahApps.Metro.Controls.ProgressRing)(target));
                return;

            case 13:
                this.StatusTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#46
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BorderG2 = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 153 "..\..\..\Views\Dashboard.xaml"
                this.GridTitle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.GridTitle_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 161 "..\..\..\Views\Dashboard.xaml"
                this.btnPower.Click += new System.Windows.RoutedEventHandler(this.btnPower_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.GridShadow = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            #line 192 "..\..\..\Views\Dashboard.xaml"
                this.staffBtn.Click += new System.Windows.RoutedEventHandler(this.staffBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 198 "..\..\..\Views\Dashboard.xaml"
                this.profileBtn.Click += new System.Windows.RoutedEventHandler(this.profileBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 204 "..\..\..\Views\Dashboard.xaml"
                this.tablesBtn.Click += new System.Windows.RoutedEventHandler(this.tablesBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 210 "..\..\..\Views\Dashboard.xaml"
                this.deliveryBtn.Click += new System.Windows.RoutedEventHandler(this.deliveryBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 220 "..\..\..\Views\Dashboard.xaml"
                this.productBtn.Click += new System.Windows.RoutedEventHandler(this.productBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 226 "..\..\..\Views\Dashboard.xaml"
                this.settingBtn.Click += new System.Windows.RoutedEventHandler(this.settingBtn_Click);

            #line default
            #line hidden
                return;

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

            case 12:

            #line 239 "..\..\..\Views\Dashboard.xaml"
                ((System.Windows.Documents.Hyperlink)(target)).Click += new System.Windows.RoutedEventHandler(this.buttonRegister_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#47
0
        /// <summary>
        /// Returns a ImageEffect that emulates this DropShadowBitmapEffect.
        /// </summary>
        internal override Effect GetEmulatingEffect()
        {
            if (_imageEffectEmulation != null && _imageEffectEmulation.IsFrozen)
            {
                return(_imageEffectEmulation);
            }

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

            Color color = Color;

            if (_imageEffectEmulation.Color != color)
            {
                _imageEffectEmulation.Color = color;
            }
            // The limits on ShadowDepth preserve existing behavior.
            // A scale transform can scale the shadow depth to exceed 50.0,
            // and this behavior is also handled correctly in the unmanaged layer.
            double shadowDepth = ShadowDepth;

            if (_imageEffectEmulation.ShadowDepth != shadowDepth)
            {
                if (shadowDepth >= 50.0)
                {
                    _imageEffectEmulation.ShadowDepth = 50.0;
                }
                else if (shadowDepth < 0.0)
                {
                    _imageEffectEmulation.ShadowDepth = 0.0;
                }
                else
                {
                    _imageEffectEmulation.ShadowDepth = shadowDepth;
                }
            }

            double direction = Direction;

            if (_imageEffectEmulation.Direction != direction)
            {
                _imageEffectEmulation.Direction = direction;
            }

            double opacity = Opacity;

            if (_imageEffectEmulation.Opacity != opacity)
            {
                if (opacity >= 1.0)
                {
                    _imageEffectEmulation.Opacity = 1.0;
                }
                else if (opacity <= 0.0)
                {
                    _imageEffectEmulation.Opacity = 0.0;
                }
                else
                {
                    _imageEffectEmulation.Opacity = opacity;
                }
            }

            double softness = Softness;

            if (_imageEffectEmulation.BlurRadius / _MAX_EMULATED_BLUR_RADIUS != softness)
            {
                if (softness >= 1.0)
                {
                    _imageEffectEmulation.BlurRadius = _MAX_EMULATED_BLUR_RADIUS;
                }
                else if (softness <= 0.0)
                {
                    _imageEffectEmulation.BlurRadius = 0.0;
                }
                else
                {
                    _imageEffectEmulation.BlurRadius = _MAX_EMULATED_BLUR_RADIUS * softness;
                }
            }

            _imageEffectEmulation.RenderingBias = RenderingBias.Performance;

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

            return(_imageEffectEmulation);
        }
示例#48
0
        protected internal UIElement CreateInternalVisual(UIElement value)
        {
            var effect = new System.Windows.Media.Effects.DropShadowEffect();

            BindingOperations.SetBinding(effect, DropShadowEffect.BlurRadiusProperty, new Binding("BlurRadius")
            {
                Source = this
            });
            BindingOperations.SetBinding(effect, DropShadowEffect.ColorProperty, new Binding("Color")
            {
                Source = this
            });
            BindingOperations.SetBinding(effect, DropShadowEffect.DirectionProperty, new Binding("Direction")
            {
                Source = this
            });
            BindingOperations.SetBinding(effect, DropShadowEffect.OpacityProperty, new Binding("ShadowOpacity")
            {
                Source = this
            });
            BindingOperations.SetBinding(effect, DropShadowEffect.RenderingBiasProperty, new Binding("RenderingBias")
            {
                Source = this
            });
            BindingOperations.SetBinding(effect, DropShadowEffect.ShadowDepthProperty, new Binding("ShadowDepth")
            {
                Source = this
            });

            // DropShadowのモード切替用にトリガーを設定
            var st = new Style();

            // ShadowMode.Contentの場合は、ContentをVisualBrushとして扱ってContentの形状に応じた影を作る
            var brush = new VisualBrush(value)
            {
                TileMode     = TileMode.None,
                Stretch      = Stretch.None,
                AlignmentX   = AlignmentX.Left,
                AlignmentY   = AlignmentY.Top,
                ViewboxUnits = BrushMappingMode.Absolute
            };
            var contentTrigger = new DataTrigger()
            {
                Binding = new Binding("ShadowMode")
                {
                    Source = this
                },
                Value = ShadowMode.Content,
            };

            contentTrigger.Setters.Add(new Setter()
            {
                Property = Rectangle.FillProperty,
                Value    = brush
            });
            st.Triggers.Add(contentTrigger);


            // ShadowMode.Outerの場合は、影はコントロールの外側にだけ表示
            var outerTrigger = new DataTrigger()
            {
                Binding = new Binding("ShadowMode")
                {
                    Source = this
                },
                Value = ShadowMode.Outer,
            };

            outerTrigger.Setters.Add(new Setter()
            {
                Property = Rectangle.ClipProperty,
                Value    = new MultiBinding()
                {
                    Bindings =
                    {
                        new Binding("ActualWidth")
                        {
                            Source = this
                        },
                        new Binding("ActualHeight")
                        {
                            Source = this
                        },
                        new Binding("BlurRadius")
                        {
                            Source = this
                        },
                    },
                    Converter = new ClipInnerRectConverter()
                }
            });
            outerTrigger.Setters.Add(new Setter()
            {
                Property = Rectangle.FillProperty,
                Value    = Brushes.White
            });
            st.Triggers.Add(outerTrigger);

            // ShadowMode.Innerの場合は、影はコントロールの内側にだけ表示
            var innerTrigger = new DataTrigger()
            {
                Binding = new Binding("ShadowMode")
                {
                    Source = this
                },
                Value = ShadowMode.Inner,
            };

            innerTrigger.Setters.Add(new Setter()
            {
                Property = Rectangle.StrokeProperty,
                Value    = Brushes.White
            });
            innerTrigger.Setters.Add(new Setter()
            {
                Property = Rectangle.StrokeThicknessProperty,
                Value    = new Binding("BlurRadius")
                {
                    Source = this
                }
            });
            innerTrigger.Setters.Add(new Setter()
            {
                Property = Rectangle.MarginProperty,
                Value    = new Binding("BlurRadius")
                {
                    Source = this, Converter = new NegativeMarginConverter()
                }
            });
            innerTrigger.Setters.Add(new Setter()
            {
                Property = Rectangle.ClipProperty,
                Value    = new MultiBinding()
                {
                    Bindings =
                    {
                        new Binding("ActualWidth")
                        {
                            Source = this
                        },
                        new Binding("ActualHeight")
                        {
                            Source = this
                        },
                        new Binding("BlurRadius")
                        {
                            Source = this
                        },
                    },
                    Converter = new ClipOuterRectConverter()
                }
            });
            st.Triggers.Add(innerTrigger);

            var border = new Rectangle()
            {
                Effect = effect,
                Style  = st,
            };

            var grid = new Grid();

            BindingOperations.SetBinding(grid, Grid.BackgroundProperty, new Binding("Background")
            {
                Source = this
            });
            grid.Children.Add(border);
            if (value != null)
            {
                grid.Children.Add(value);
            }

            return(grid);
        }
示例#49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.purchasesUserControl = ((MyStore.Views.PurchasesUserControlView)(target));
                return;

            case 2:
                this.customerComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.searchBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 4:
                this.effect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            case 6:
                this.filterToDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 7:
                this.addPurchaseToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 8:
                this.addPurchasePopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 9:
                this.popupAddPurchaseStatusComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 11:
                this.popupAddPurchaseReceivedDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            case 13:
                this.updatePurchaseToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 14:
                this.updatePurchasePopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 15:
                this.popupUpdatePurchaseStatusComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 17:
                this.popupUpdatePurchaseReceivedDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 18:
                this.purchaseDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 19:
                this.addPurchaseDetailToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 20:
                this.addPurchaseDetailPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

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

            case 22:
                this.popupAddPurchaseDetailProductComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 23:
                this.popupAddPurchaseDetailQuantityTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 24:
                this.updatePurchaseDetailToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 25:
                this.updatePurchaseDetailPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 26:
                this.popupUpdatePurchaseDetailCategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 27:
                this.popupUpdatePurchaseDetailProductComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 28:
                this.popupUpdatePurchaseDetailQuantityTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 29:
                this.purchaseDetailDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden

            #line 23 "..\..\..\MainWindow.xaml"
                ((FramelessWPF.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.taskBarItemInfo1 = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.btnPreviewForTaskBar = ((System.Windows.Shell.ThumbButtonInfo)(target));

            #line 50 "..\..\..\MainWindow.xaml"
                this.btnPreviewForTaskBar.Click += new System.EventHandler(this.BtnPreviewForTaskBar_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnPlayForTaskBar = ((System.Windows.Shell.ThumbButtonInfo)(target));

            #line 54 "..\..\..\MainWindow.xaml"
                this.btnPlayForTaskBar.Click += new System.EventHandler(this.BtnPlayForTaskBar_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnNextForTaskBar = ((System.Windows.Shell.ThumbButtonInfo)(target));
                return;

            case 6:
                this.dig_ifCreatStream = ((MaterialDesignThemes.Wpf.DialogHost)(target));

            #line 77 "..\..\..\MainWindow.xaml"
                this.dig_ifCreatStream.DialogClosing += new MaterialDesignThemes.Wpf.DialogClosingEventHandler(this.DialogHost_DialogClosing);

            #line default
            #line hidden
                return;

            case 7:
                this.dig_Commander = ((MaterialDesignThemes.Wpf.DialogHost)(target));

            #line 106 "..\..\..\MainWindow.xaml"
                this.dig_Commander.DialogClosing += new MaterialDesignThemes.Wpf.DialogClosingEventHandler(this.dig_Commander_DialogClosing);

            #line default
            #line hidden
                return;

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

            case 9:
                this.dig_Error = ((MaterialDesignThemes.Wpf.DialogHost)(target));

            #line 135 "..\..\..\MainWindow.xaml"
                this.dig_Error.DialogClosing += new MaterialDesignThemes.Wpf.DialogClosingEventHandler(this.Dig_Error_DialogClosing);

            #line default
            #line hidden
                return;

            case 10:
                this.MainMenu = ((System.Windows.Controls.Menu)(target));

            #line 153 "..\..\..\MainWindow.xaml"
                this.MainMenu.MouseMove += new System.Windows.Input.MouseEventHandler(this.MainMenu_MouseMove);

            #line default
            #line hidden

            #line 153 "..\..\..\MainWindow.xaml"
                this.MainMenu.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MainMenu_MouseDown);

            #line default
            #line hidden
                return;

            case 11:
                this.MenuItem_OpenFile = ((System.Windows.Controls.MenuItem)(target));

            #line 155 "..\..\..\MainWindow.xaml"
                this.MenuItem_OpenFile.Click += new System.Windows.RoutedEventHandler(this.MenuItem_OpenFile_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.MenuItem_OpenCD = ((System.Windows.Controls.MenuItem)(target));

            #line 158 "..\..\..\MainWindow.xaml"
                this.MenuItem_OpenCD.Click += new System.Windows.RoutedEventHandler(this.MenuItem_OpenCD_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.MenuItem_AddFile = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 14:
                this.MenuItem_AddFloder = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 15:
                this.MenuItem_AddCD = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 16:
                this.MenuItem_Exit = ((System.Windows.Controls.MenuItem)(target));

            #line 163 "..\..\..\MainWindow.xaml"
                this.MenuItem_Exit.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Exit_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.MenuItem_Play_Pause = ((System.Windows.Controls.MenuItem)(target));

            #line 166 "..\..\..\MainWindow.xaml"
                this.MenuItem_Play_Pause.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Play_Pause_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.MenuItem_PlayFromStart = ((System.Windows.Controls.MenuItem)(target));

            #line 167 "..\..\..\MainWindow.xaml"
                this.MenuItem_PlayFromStart.Click += new System.Windows.RoutedEventHandler(this.MenuItem_PlayFromStart_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.MenuItem_StopPlay = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 20:
                this.MenuItem_CopyFile = ((System.Windows.Controls.MenuItem)(target));

            #line 172 "..\..\..\MainWindow.xaml"
                this.MenuItem_CopyFile.Click += new System.Windows.RoutedEventHandler(this.MenuItem_CopyFile_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.MenuItem_VolumeUp = ((System.Windows.Controls.MenuItem)(target));

            #line 176 "..\..\..\MainWindow.xaml"
                this.MenuItem_VolumeUp.Click += new System.Windows.RoutedEventHandler(this.MenuItem_VolumeUp_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.MenuItem_VolumeDown = ((System.Windows.Controls.MenuItem)(target));

            #line 177 "..\..\..\MainWindow.xaml"
                this.MenuItem_VolumeDown.Click += new System.Windows.RoutedEventHandler(this.MenuItem_VolumeDown_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.MenuItem_OpenSettingsView = ((System.Windows.Controls.MenuItem)(target));

            #line 179 "..\..\..\MainWindow.xaml"
                this.MenuItem_OpenSettingsView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_OpenSettingsView_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.MenuItem_Commander = ((System.Windows.Controls.MenuItem)(target));

            #line 182 "..\..\..\MainWindow.xaml"
                this.MenuItem_Commander.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Commander_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.MenuItem_MaxView = ((System.Windows.Controls.MenuItem)(target));

            #line 188 "..\..\..\MainWindow.xaml"
                this.MenuItem_MaxView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_MaxView_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.MenuItem_MinView = ((System.Windows.Controls.MenuItem)(target));

            #line 189 "..\..\..\MainWindow.xaml"
                this.MenuItem_MinView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_MinView_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.MenuItem_CloseView = ((System.Windows.Controls.MenuItem)(target));

            #line 190 "..\..\..\MainWindow.xaml"
                this.MenuItem_CloseView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_CloseView_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.MenuItem_ToggleTopMost = ((System.Windows.Controls.MenuItem)(target));

            #line 191 "..\..\..\MainWindow.xaml"
                this.MenuItem_ToggleTopMost.Click += new System.Windows.RoutedEventHandler(this.MenuItem_ToggleTopMost_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.MenuItem_About = ((System.Windows.Controls.MenuItem)(target));

            #line 197 "..\..\..\MainWindow.xaml"
                this.MenuItem_About.Click += new System.Windows.RoutedEventHandler(this.MenuItem_About_Click);

            #line default
            #line hidden
                return;

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

            #line 217 "..\..\..\MainWindow.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.BtnPlay_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.iconPlay = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 32:
                this.BtnchangeVolume = ((System.Windows.Controls.Button)(target));

            #line 225 "..\..\..\MainWindow.xaml"
                this.BtnchangeVolume.Click += new System.Windows.RoutedEventHandler(this.BtnchangeVolume_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.packicon_volumestate = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 34:
                this.MainVolume = ((System.Windows.Controls.Slider)(target));

            #line 235 "..\..\..\MainWindow.xaml"
                this.MainVolume.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.MainVolume_ValueChanged);

            #line default
            #line hidden
                return;

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

            case 36:
                this.ImageAlbumArtBG = ((MaterialDesignThemes.Wpf.Card)(target));
                return;

            case 37:
                this.DropShadowEffect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

            case 38:
                this.ImageAlbumArt = ((System.Windows.Controls.Image)(target));
                return;

            case 39:
                this.LabelTime = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.LabelTitle = ((System.Windows.Controls.Label)(target));
                return;

            case 41:
                this.LabelArtist = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.LabelLeftTime = ((System.Windows.Controls.Label)(target));
                return;

            case 43:
                this.svg3692 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 44:
                this.path3684 = ((System.Windows.Shapes.Path)(target));
                return;

            case 45:
                this.path3686 = ((System.Windows.Shapes.Path)(target));
                return;

            case 46:
                this.path3688 = ((System.Windows.Shapes.Path)(target));
                return;

            case 47:
                this.path3690 = ((System.Windows.Shapes.Path)(target));
                return;

            case 48:
                this.MainProgressBar = ((System.Windows.Controls.Slider)(target));

            #line 322 "..\..\..\MainWindow.xaml"
                this.MainProgressBar.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.MainProgressBar_MouseUp);

            #line default
            #line hidden

            #line 324 "..\..\..\MainWindow.xaml"
                this.MainProgressBar.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.MainProgressBar_DragCompleted));

            #line default
            #line hidden

            #line 325 "..\..\..\MainWindow.xaml"
                this.MainProgressBar.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.MainProgressBar_DragStarted));

            #line default
            #line hidden
                return;

            case 49:
                this.TextBox_Search = ((System.Windows.Controls.TextBox)(target));

            #line 347 "..\..\..\MainWindow.xaml"
                this.TextBox_Search.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_Search_TextChanged);

            #line default
            #line hidden

            #line 347 "..\..\..\MainWindow.xaml"
                this.TextBox_Search.TextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_Search_TextInput);

            #line default
            #line hidden
                return;

            case 50:
                this.Btn_Search = ((System.Windows.Controls.Button)(target));

            #line 350 "..\..\..\MainWindow.xaml"
                this.Btn_Search.Click += new System.Windows.RoutedEventHandler(this.Btn_Search_Click);

            #line default
            #line hidden

            #line 350 "..\..\..\MainWindow.xaml"
                this.Btn_Search.GotFocus += new System.Windows.RoutedEventHandler(this.Btn_Search_GotFocus);

            #line default
            #line hidden

            #line 350 "..\..\..\MainWindow.xaml"
                this.Btn_Search.LostFocus += new System.Windows.RoutedEventHandler(this.Btn_Search_LostFocus);

            #line default
            #line hidden
                return;

            case 51:
                this.PopupBox_List = ((MaterialDesignThemes.Wpf.PopupBox)(target));
                return;

            case 52:
                this.ImageAlbumArtBig = ((System.Windows.Controls.Image)(target));

            #line 407 "..\..\..\MainWindow.xaml"
                this.ImageAlbumArtBig.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ImageAlbumArtBig_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 53:
                this.LabelTitleForCard = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 54:
                this.LabelAlbumForCard = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 55:
                this.LabelArtistForCard = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 56:
                this.ListViewCard = ((MaterialDesignThemes.Wpf.Card)(target));
                return;

            case 57:
                this.tb1 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 58:
                this.ListViewItemBit = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 59:
                this.ListViewItemRate = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 60:
                this.ListViewItemWriteTime = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 61:
                this.ListViewItemAddTime = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 62:
                this.ListViewItemFileSize = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 63:
                this.ListViewItemFilePath = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 64:
                this.BtnSaveInfo = ((System.Windows.Controls.Button)(target));

            #line 538 "..\..\..\MainWindow.xaml"
                this.BtnSaveInfo.Click += new System.Windows.RoutedEventHandler(this.BtnSaveInfo_Click);

            #line default
            #line hidden
                return;

            case 65:
                this.BtnOpenLyric = ((MaterialDesignThemes.Wpf.PopupBox)(target));
                return;

            case 66:
                this.BtnOpenLyricEX = ((System.Windows.Controls.Button)(target));

            #line 554 "..\..\..\MainWindow.xaml"
                this.BtnOpenLyricEX.Click += new System.Windows.RoutedEventHandler(this.BtnOpenLyricEX_Click);

            #line default
            #line hidden
                return;

            case 67:
                this.BtnSearchLyric = ((System.Windows.Controls.Button)(target));

            #line 557 "..\..\..\MainWindow.xaml"
                this.BtnSearchLyric.Click += new System.Windows.RoutedEventHandler(this.BtnOpenLyricEX_Click);

            #line default
            #line hidden
                return;

            case 68:
                this.BaseLineSP = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 69:
                this.BaseLine = ((System.Windows.Shapes.Line)(target));
                return;

            case 70:
                this.tbDragTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 71:
                this.CanvasLyric = ((System.Windows.Controls.Canvas)(target));
                return;

            case 72:
                this.StackPanelCommonLyric = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 73:
                this.CanvasFocusLyric = ((System.Windows.Controls.Canvas)(target));
                return;

            case 74:
                this.TBFocusLyricBack = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 75:
                this.CanvasFocusLyricFore = ((System.Windows.Controls.Canvas)(target));
                return;

            case 76:
                this.TBFocusLyricFore = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#51
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 44 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Border)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Border_MouseMove);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 139 "..\..\MainWindow.xaml"
                this.btnPlus.Click += new System.Windows.RoutedEventHandler(this.BtnPlus_Click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.BorderPlayerShadow = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            #line 221 "..\..\MainWindow.xaml"
                this.btnPrev.Click += new System.Windows.RoutedEventHandler(this.BtnPrev_Click);

            #line default
            #line hidden
                return;

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

            #line 255 "..\..\MainWindow.xaml"
                this.btnLeft.Click += new System.Windows.RoutedEventHandler(this.BtnLeft_Click);

            #line default
            #line hidden

            #line 255 "..\..\MainWindow.xaml"
                this.btnLeft.LostMouseCapture += new System.Windows.Input.MouseEventHandler(this.BtnLeft_LostMouseCapture);

            #line default
            #line hidden

            #line 255 "..\..\MainWindow.xaml"
                this.btnLeft.GotMouseCapture += new System.Windows.Input.MouseEventHandler(this.BtnLeft_GotMouseCapture);

            #line default
            #line hidden
                return;

            case 9:
                this.ButtonLeftPackIcon = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 10:
                this.ButtonLeftShadow = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            #line 289 "..\..\MainWindow.xaml"
                this.btnPlayPause.Click += new System.Windows.RoutedEventHandler(this.BtnPlayPause_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.PackIconPlayPause = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 13:
                this.ShadowPlayPause = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            #line 323 "..\..\MainWindow.xaml"
                this.btnRight.Click += new System.Windows.RoutedEventHandler(this.BtnRight_Click);

            #line default
            #line hidden

            #line 323 "..\..\MainWindow.xaml"
                this.btnRight.LostMouseCapture += new System.Windows.Input.MouseEventHandler(this.BtnRight_LostMouseCapture);

            #line default
            #line hidden

            #line 323 "..\..\MainWindow.xaml"
                this.btnRight.GotMouseCapture += new System.Windows.Input.MouseEventHandler(this.BtnRight_GotMouseCapture);

            #line default
            #line hidden
                return;

            case 15:
                this.ButtonRightPachIcon = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 16:
                this.ButtonRightShadow = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            #line 357 "..\..\MainWindow.xaml"
                this.btnNext.Click += new System.Windows.RoutedEventHandler(this.BtnNext_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.slider_vol = ((System.Windows.Controls.Slider)(target));

            #line 388 "..\..\MainWindow.xaml"
                this.slider_vol.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_vol_ValueChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.slider_time = ((System.Windows.Controls.Slider)(target));

            #line 389 "..\..\MainWindow.xaml"
                this.slider_time.LostMouseCapture += new System.Windows.Input.MouseEventHandler(this.Slider_time_LostMouseCapture);

            #line default
            #line hidden

            #line 389 "..\..\MainWindow.xaml"
                this.slider_time.GotMouseCapture += new System.Windows.Input.MouseEventHandler(this.Slider_time_GotMouseCapture);

            #line default
            #line hidden

            #line 389 "..\..\MainWindow.xaml"
                this.slider_time.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_time_ValueChanged);

            #line default
            #line hidden
                return;

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

            case 21:
                this.TrackName = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 439 "..\..\MainWindow.xaml"
                this.ListTrack.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListTrack_SelectionChanged);

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

            #line 11 "..\..\..\Internal\DefaultLaunchPad.xaml"
                ((AquaL.Internal.DefaultFrameHost)(target)).Loaded += new System.Windows.RoutedEventHandler(this.PageLoaded);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.backgroundTopClip = ((System.Windows.Media.RectangleGeometry)(target));
                return;

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

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

            case 7:
                this.LookBoardTalks = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.UserSelector = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 9:
                this.actionBar_launch = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

            case 11:
                this.Main_Layout = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:
                this.Main_Right = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.UserSelectorMenu = ((System.Windows.Controls.Border)(target));
                return;

            case 14:
                this.LTShadow = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BorderTogglePopup = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 2:
                this.PopupStatus = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

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

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

            #line 66 "..\..\..\..\control_items\your_order_content_presenters\EditTechnicalTaskContent.xaml"
                this.ButtonStatusExecute.Click += new System.Windows.RoutedEventHandler(this.ButtonStatusChange_Click);

            #line default
            #line hidden
                return;

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

            #line 78 "..\..\..\..\control_items\your_order_content_presenters\EditTechnicalTaskContent.xaml"
                this.ButtonStatusCancel.Click += new System.Windows.RoutedEventHandler(this.ButtonStatusChange_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.DemandList = ((System.Windows.Controls.ListBox)(target));

            #line 148 "..\..\..\..\control_items\your_order_content_presenters\EditTechnicalTaskContent.xaml"
                this.DemandList.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ListBox_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 148 "..\..\..\..\control_items\your_order_content_presenters\EditTechnicalTaskContent.xaml"
                this.DemandList.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListBox_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 8:
                this.DemandDescription = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 156 "..\..\..\..\control_items\your_order_content_presenters\EditTechnicalTaskContent.xaml"
                this.ButtonAddDemand.Click += new System.Windows.RoutedEventHandler(this.ButtonAddDemand_Click);

            #line default
            #line hidden
                return;

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

            #line 159 "..\..\..\..\control_items\your_order_content_presenters\EditTechnicalTaskContent.xaml"
                this.ButtonSave.Click += new System.Windows.RoutedEventHandler(this.ButtonSave_Click);

            #line default
            #line hidden
                return;

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

            #line 161 "..\..\..\..\control_items\your_order_content_presenters\EditTechnicalTaskContent.xaml"
                this.ButtonDelete.Click += new System.Windows.RoutedEventHandler(this.ButtonDelete_Click);

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

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

            case 3:
                this.effect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

            case 4:
                this.addCustomerToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 5:
                this.addCustomerPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

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

            case 7:
                this.popupAddCustomerAddressTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.popupAddCustomerTelTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

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

            case 10:
                this.updateCustomerToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 11:
                this.updateCustomerPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

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

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

            case 14:
                this.popupUpdateCustomerTelTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 15:
                this.customerDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#55
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 2:
                this.container = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.controlPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 13 "..\..\MainWindow.xaml"
                this.mousePassThrough.Click += new System.Windows.RoutedEventHandler(this.mousePassThrough_Click);

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\MainWindow.xaml"
                this.moveableButton.Click += new System.Windows.RoutedEventHandler(this.moveableButton_Click);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\MainWindow.xaml"
                this.option.Click += new System.Windows.RoutedEventHandler(this.option_Click);

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\MainWindow.xaml"
                this.close.Click += new System.Windows.RoutedEventHandler(this.close_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.optionsPanel = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

            case 10:
                this.bootAutoRunCheckbox = ((System.Windows.Controls.CheckBox)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.bootAutoRunCheckbox.Click += new System.Windows.RoutedEventHandler(this.bootAutoRunCheckbox_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.topMostCheckbox = ((System.Windows.Controls.CheckBox)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.topMostCheckbox.Click += new System.Windows.RoutedEventHandler(this.CheckBox_Click);

            #line default
            #line hidden
                return;

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

            #line 74 "..\..\MainWindow.xaml"
                this.font.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.font_SelectionChanged);

            #line default
            #line hidden

            #line 74 "..\..\MainWindow.xaml"
                this.font.Loaded += new System.Windows.RoutedEventHandler(this.font_Loaded);

            #line default
            #line hidden
                return;

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

            case 14:
                this.fontSize = ((System.Windows.Controls.Slider)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.fontSize.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.fontSize_ValueChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.fontBold = ((System.Windows.Controls.CheckBox)(target));

            #line 81 "..\..\MainWindow.xaml"
                this.fontBold.Checked += new System.Windows.RoutedEventHandler(this.fontBold_Checked);

            #line default
            #line hidden

            #line 81 "..\..\MainWindow.xaml"
                this.fontBold.Unchecked += new System.Windows.RoutedEventHandler(this.fontBold_Unchecked);

            #line default
            #line hidden
                return;

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

            #line 86 "..\..\MainWindow.xaml"
                this.fontItalic.Checked += new System.Windows.RoutedEventHandler(this.fontItalic_Checked);

            #line default
            #line hidden

            #line 86 "..\..\MainWindow.xaml"
                this.fontItalic.Unchecked += new System.Windows.RoutedEventHandler(this.fontItalic_Unchecked);

            #line default
            #line hidden
                return;

            case 17:
                this.fontColorRed = ((System.Windows.Controls.Slider)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.fontColorRed.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.fontColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.fontColorGreen = ((System.Windows.Controls.Slider)(target));

            #line 112 "..\..\MainWindow.xaml"
                this.fontColorGreen.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.fontColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.fontColorBlue = ((System.Windows.Controls.Slider)(target));

            #line 128 "..\..\MainWindow.xaml"
                this.fontColorBlue.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.fontColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.fontColorAlpha = ((System.Windows.Controls.Slider)(target));

            #line 144 "..\..\MainWindow.xaml"
                this.fontColorAlpha.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.fontColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 21:
                this.blurDisplay = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.shadowBlurSize = ((System.Windows.Controls.Slider)(target));

            #line 169 "..\..\MainWindow.xaml"
                this.shadowBlurSize.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.shadowBlurSize_ValueChanged);

            #line default
            #line hidden
                return;

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

            case 24:
                this.shadowAngle = ((System.Windows.Controls.Slider)(target));

            #line 175 "..\..\MainWindow.xaml"
                this.shadowAngle.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.shadowAngle_ValueChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.depthDisplay = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.shadowDepth = ((System.Windows.Controls.Slider)(target));

            #line 181 "..\..\MainWindow.xaml"
                this.shadowDepth.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.shadowDepth_ValueChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.shadowColorRed = ((System.Windows.Controls.Slider)(target));

            #line 186 "..\..\MainWindow.xaml"
                this.shadowColorRed.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.fontShadowColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 28:
                this.shadowColorGreen = ((System.Windows.Controls.Slider)(target));

            #line 202 "..\..\MainWindow.xaml"
                this.shadowColorGreen.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.fontShadowColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 29:
                this.shadowColorBlue = ((System.Windows.Controls.Slider)(target));

            #line 218 "..\..\MainWindow.xaml"
                this.shadowColorBlue.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.fontShadowColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 30:
                this.backgroundColorRed = ((System.Windows.Controls.Slider)(target));

            #line 238 "..\..\MainWindow.xaml"
                this.backgroundColorRed.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.backgroundColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 31:
                this.backgroundColorGreen = ((System.Windows.Controls.Slider)(target));

            #line 254 "..\..\MainWindow.xaml"
                this.backgroundColorGreen.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.backgroundColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 32:
                this.backgroundColorBlue = ((System.Windows.Controls.Slider)(target));

            #line 270 "..\..\MainWindow.xaml"
                this.backgroundColorBlue.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.backgroundColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 33:
                this.backgroundColorAlpha = ((System.Windows.Controls.Slider)(target));

            #line 286 "..\..\MainWindow.xaml"
                this.backgroundColorAlpha.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.backgroundColor_ValueChanged);

            #line default
            #line hidden
                return;

            case 34:
                this.timeDisplay = ((System.Windows.Controls.Label)(target));

            #line 308 "..\..\MainWindow.xaml"
                this.timeDisplay.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.timeDisplay_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 308 "..\..\MainWindow.xaml"
                this.timeDisplay.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.timeDisplay_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 35:
                this.labelShadow = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#56
0
        public Token(object parentWindow, enGameToken engameToken, Point pos, double canvaswidth, double canvasheight)
        {
            InitializeComponent();
            _startPoint    = new Point(pos.X, pos.Y);
            DataContext    = this;
            _parentWindow  = parentWindow as Window;
            tokenAnimation = new DoubleAnimation();
            tokenAnimation.FillBehavior = FillBehavior.Stop;
            _tokenMoveSound             = new System.Media.SoundPlayer(Properties.Resources.TokenMoveBasic);// Windows Pop-up Blocked.wav");
            _tokenLadderMoveSound       = new System.Media.SoundPlayer(Properties.Resources.TokenMoveAudio);
            _tokenSnakeMoveSound        = new System.Media.SoundPlayer(Properties.Resources.SnakeAudio);
            //tokenAnimation.Completed += Animation_Completed;
            switch (engameToken)
            {
            case enGameToken.Blue:
                _color     = Brushes.Blue;
                _RingColor = Brushes.DarkBlue;
                break;

            case enGameToken.Red:
                _color     = Brushes.Red;
                _RingColor = Brushes.DarkRed;
                break;

            case enGameToken.Green:
                _color     = Brushes.Green;
                _RingColor = Brushes.ForestGreen;
                break;

            case enGameToken.Yellow:
                _color     = Brushes.Yellow;
                _RingColor = Brushes.Goldenrod;
                break;
            }
            _centerPoint = pos;

            _outerRing             = new Ellipse();
            _outerRing.DataContext = this;
            _outerRing.Stretch     = Stretch.Uniform;
            _outerRing.Fill        = Brushes.Transparent;
            _outerRing.SetBinding(Ellipse.StrokeProperty, "RingColor");
            _outerRing.SetBinding(Canvas.LeftProperty, "OuterRingLeft");
            _outerRing.SetBinding(Canvas.TopProperty, "OuterRingTop");
            _outerRing.SetBinding(Ellipse.HeightProperty, "OuterRingHeight");
            _outerRing.SetBinding(Ellipse.WidthProperty, "OuterRingWidth");
            _outerRing.SetBinding(Ellipse.StrokeThicknessProperty, "RingStrokeThickness");
            _outerRing.SetValue(Ellipse.NameProperty, "OuterRing");
            DropShadowEffect effect = new System.Windows.Media.Effects.DropShadowEffect();

            effect.BlurRadius      = EffectBlurRadius;
            effect.Direction       = 3;
            effect.ShadowDepth     = 0;
            _outerRing.Effect      = effect;
            _innerRing             = new Ellipse();
            _innerRing.DataContext = this;
            _innerRing.Stretch     = Stretch.Uniform;
            _innerRing.Fill        = Brushes.Transparent;
            _innerRing.SetBinding(Ellipse.StrokeProperty, "RingColor");
            _innerRing.SetBinding(Canvas.LeftProperty, "InnerRingLeft");
            _innerRing.SetBinding(Canvas.TopProperty, "InnerRingTop");
            _innerRing.SetBinding(Ellipse.HeightProperty, "InnerRingHeight");
            _innerRing.SetBinding(Ellipse.WidthProperty, "InnerRingWidth");
            _innerRing.SetBinding(Ellipse.StrokeThicknessProperty, "RingStrokeThickness");
            _innerRing.SetValue(Ellipse.NameProperty, "InnerRing");
            _innerRing.Effect = effect;

            _canvasHeight = canvasheight;
            _canvasWidth  = canvaswidth;


            MainCircleWidth     = canvaswidth / 18.0;
            RingStrokeThickness = canvaswidth / 280.0;

            OnPropertyChanged("Color");
            OnPropertyChanged("RingColor");
        }
示例#57
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\..\Controls\DisplayAdControlH.xaml"
                ((Atestat.Controls.DisplayAdControlH)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.UserControl_MouseEnter);

            #line default
            #line hidden

            #line 8 "..\..\..\..\Controls\DisplayAdControlH.xaml"
                ((Atestat.Controls.DisplayAdControlH)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.UserControl_MouseLeave);

            #line default
            #line hidden

            #line 8 "..\..\..\..\Controls\DisplayAdControlH.xaml"
                ((Atestat.Controls.DisplayAdControlH)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.UserControl_MouseDown);

            #line default
            #line hidden
                return;

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

            case 3:
                this.FavGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 58 "..\..\..\..\Controls\DisplayAdControlH.xaml"
                this.Favorite.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Favorite_MouseDown);

            #line default
            #line hidden

            #line 58 "..\..\..\..\Controls\DisplayAdControlH.xaml"
                this.Favorite.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Favorite_MouseEnter);

            #line default
            #line hidden

            #line 59 "..\..\..\..\Controls\DisplayAdControlH.xaml"
                this.Favorite.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Favorite_MouseLeave);

            #line default
            #line hidden
                return;

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

            case 6:
                this.DeleteGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 130 "..\..\..\..\Controls\DisplayAdControlH.xaml"
                this.RemoveImage.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Image_MouseEnter);

            #line default
            #line hidden

            #line 130 "..\..\..\..\Controls\DisplayAdControlH.xaml"
                this.RemoveImage.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Image_MouseLeave);

            #line default
            #line hidden

            #line 130 "..\..\..\..\Controls\DisplayAdControlH.xaml"
                this.RemoveImage.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown);

            #line default
            #line hidden
                return;

            case 8:
                this.ButtonEffect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

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

            case 10:
                this.AdPrice = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.inventoryUserControl = ((MyStore.Views.InventoryUserControlView)(target));
                return;

            case 2:
                this.categoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.addCategoryToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 4:
                this.addCategoryPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

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

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

            case 7:
                this.updateCategoryToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 8:
                this.updateCategoryPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

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

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

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

            case 12:
                this.effect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

            case 13:
                this.addProductToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 14:
                this.addProductPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

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

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

            case 17:
                this.popupAddProductPriceTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 18:
                this.popupAddProductCategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 19:
                this.popupAddProductTotalTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 20:
                this.popupAddProductSoldTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 21:
                this.popupAddProductRemainTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 22:
                this.popupAddProductDescriptionTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.updateProductToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 24:
                this.updateProductPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 25:
                this.popupUpdateProductNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 26:
                this.popupUpdateProductColorTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.popupUpdateProductPriceTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 28:
                this.popupUpdateProductCategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 29:
                this.popupUpdateProductTotalTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 30:
                this.popupUpdateProductSoldTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 31:
                this.popupUpdateProductRemainTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

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

            case 33:
                this.productListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 34:
                this.detailIdTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.detailSkuTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.detailNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.detailColorTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 39:
                this.detailCategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 42:
                this.detailRemainTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 43:
                this.detailDescriptionTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 44:
                this.imageListView = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }