示例#1
0
文件: MainPage.g.cs 项目: yaoxh6/uwp
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 17:
                    this.obj17 = (global::Windows.UI.Xaml.Controls.CheckBox)target;
                    (this.obj17).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsCheckedProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.Completed = (global::System.Boolean) this.LookupConverter("CheckBoxConverter").ConvertBack((this.obj17).IsChecked, typeof(global::System.Boolean), null, null);
                        }
                    });
                    break;

                case 18:
                    this.obj18 = (global::Windows.UI.Xaml.Controls.Image)target;
                    break;

                case 19:
                    this.obj19 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
                    break;

                case 20:
                    this.obj20 = (global::Windows.UI.Xaml.Shapes.Line)target;
                    break;

                default:
                    break;
                }
            }
示例#2
0
        public void InitializeComponent()
        {
            if (_contentLoaded)
            {
                return;
            }

            _contentLoaded = true;
            global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///Help/Seidal Help.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);

            Method     = (global::Windows.UI.Xaml.Controls.TextBlock) this.FindName("Method");
            line1      = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line1");
            line2      = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line2");
            line3      = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line3");
            line4      = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line4");
            line5      = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line5");
            XFirstEq   = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("XFirstEq");
            YFirstEq   = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("YFirstEq");
            ZFirstEq   = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("ZFirstEq");
            NFirstEq   = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("NFirstEq");
            XSeconudEq = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("XSeconudEq");
            YSeconudEq = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("YSeconudEq");
            ZSeconudEq = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("ZSeconudEq");
            NSeconudEq = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("NSeconudEq");
            XThirdEq   = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("XThirdEq");
            YThirdEq   = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("YThirdEq");
            ZThirdEq   = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("ZThirdEq");
            NThirdEq   = (global::Windows.UI.Xaml.Controls.TextBox) this.FindName("NThirdEq");
        }
示例#3
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 4:
                    this.obj4 = (global::Windows.UI.Xaml.Controls.CheckBox)target;
                    (this.obj4).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsCheckedProperty,
                                                                (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.LineModel.complete2 = (this.obj4).IsChecked;
                        }
                    });
                    break;

                case 5:
                    this.obj5 = (global::Windows.UI.Xaml.Shapes.Line)target;
                    (this.obj5).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Shapes.Shape.StrokeThicknessProperty,
                                                                (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.LineModel.visible2 = (this.obj5).StrokeThickness;
                        }
                    });
                    break;

                case 6:
                    this.obj6 = (global::Windows.UI.Xaml.Controls.CheckBox)target;
                    (this.obj6).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsCheckedProperty,
                                                                (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.LineModel.complete1 = (this.obj6).IsChecked;
                        }
                    });
                    break;

                case 7:
                    this.obj7 = (global::Windows.UI.Xaml.Shapes.Line)target;
                    (this.obj7).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Shapes.Shape.StrokeThicknessProperty,
                                                                (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.LineModel.visible1 = (this.obj7).StrokeThickness;
                        }
                    });
                    break;

                default:
                    break;
                }
            }
示例#4
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 30:
                    this.obj30 = (global::Windows.UI.Xaml.Controls.CheckBox)target;
                    (this.obj30).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsCheckedProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.Is_check = (this.obj30).IsChecked;
                        }
                    });
                    break;

                case 31:
                    this.obj31 = (global::Windows.UI.Xaml.Controls.Image)target;
                    (this.obj31).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Image.SourceProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.Picture = (this.obj31).Source;
                        }
                    });
                    break;

                case 32:
                    this.obj32 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
                    (this.obj32).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.TextBlock.TextProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.Title = (this.obj32).Text;
                        }
                    });
                    break;

                case 33:
                    this.obj33 = (global::Windows.UI.Xaml.Shapes.Line)target;
                    (this.obj33).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.UIElement.VisibilityProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.Visi = (this.obj33).Visibility;
                        }
                    });
                    break;

                default:
                    break;
                }
            }
示例#5
0
        public void InitializeComponent()
        {
            if (_contentLoaded)
            {
                return;
            }

            _contentLoaded = true;
            global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///MainPage.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);

            AppBar             = (global::Windows.UI.Xaml.Controls.CommandBar) this.FindName("AppBar");
            ConnectButton      = (global::Windows.UI.Xaml.Controls.AppBarButton) this.FindName("ConnectButton");
            PowerButton        = (global::Windows.UI.Xaml.Controls.AppBarButton) this.FindName("PowerButton");
            IntensitySlider    = (global::Windows.UI.Xaml.Controls.Slider) this.FindName("IntensitySlider");
            Pivot              = (global::Windows.UI.Xaml.Controls.Pivot) this.FindName("Pivot");
            hiPowerTextBlock   = (global::Windows.UI.Xaml.Controls.TextBlock) this.FindName("hiPowerTextBlock");
            LeftCanvas         = (global::Windows.UI.Xaml.Controls.Canvas) this.FindName("LeftCanvas");
            RightCanvas        = (global::Windows.UI.Xaml.Controls.Canvas) this.FindName("RightCanvas");
            RightPic           = (global::Windows.UI.Xaml.Controls.Image) this.FindName("RightPic");
            RightCircle        = (global::Windows.UI.Xaml.Shapes.Ellipse) this.FindName("RightCircle");
            LeftPic            = (global::Windows.UI.Xaml.Controls.Image) this.FindName("LeftPic");
            LeftCircle         = (global::Windows.UI.Xaml.Shapes.Ellipse) this.FindName("LeftCircle");
            RemoteCanvas       = (global::Windows.UI.Xaml.Controls.Canvas) this.FindName("RemoteCanvas");
            DirectionCanvas    = (global::Windows.UI.Xaml.Controls.Canvas) this.FindName("DirectionCanvas");
            ColorMap2          = (global::Windows.UI.Xaml.Controls.Image) this.FindName("ColorMap2");
            DirectionRectangle = (global::Windows.UI.Xaml.Shapes.Rectangle) this.FindName("DirectionRectangle");
            ColorMap           = (global::Windows.UI.Xaml.Controls.Image) this.FindName("ColorMap");
            HorizontalLine2    = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("HorizontalLine2");
            VerticalLine2      = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("VerticalLine2");
            ColorPicker        = (global::Windows.UI.Xaml.Shapes.Ellipse) this.FindName("ColorPicker");
            HorizontalLine     = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("HorizontalLine");
            VerticalLine       = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("VerticalLine");
        }
示例#6
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 22:
                    this.obj22 = (global::Windows.UI.Xaml.Controls.CheckBox)target;
                    ((global::Windows.UI.Xaml.Controls.CheckBox)target).Click += (global::System.Object param0, global::Windows.UI.Xaml.RoutedEventArgs param1) =>
                    {
                        this.dataRoot.Check_box();
                    };
                    break;

                case 23:
                    this.obj23 = (global::Windows.UI.Xaml.Controls.Image)target;
                    (this.obj23).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Image.SourceProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.Image = (this.obj23).Source;
                        }
                    });
                    break;

                case 24:
                    this.obj24 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
                    (this.obj24).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.TextBlock.TextProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.Title = (this.obj24).Text;
                        }
                    });
                    break;

                case 25:
                    this.obj25 = (global::Windows.UI.Xaml.Shapes.Line)target;
                    (this.obj25).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.UIElement.VisibilityProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.Line_Visibility = (this.obj25).Visibility;
                        }
                    });
                    break;

                default:
                    break;
                }
            }
示例#7
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 14:
                    this.obj14 = (global::Windows.UI.Xaml.Controls.CheckBox)target;
                    (this.obj14).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsCheckedProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.finish = (this.obj14).IsChecked;
                        }
                    });
                    break;

                case 15:
                    this.obj15 = (global::Windows.UI.Xaml.Controls.Image)target;
                    (this.obj15).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Image.SourceProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.img = (this.obj15).Source;
                        }
                    });
                    break;

                case 16:
                    this.obj16 = (global::Windows.UI.Xaml.Shapes.Line)target;
                    break;

                case 17:
                    this.obj17 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
                    (this.obj17).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.TextBlock.TextProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.title = (this.obj17).Text;
                        }
                    });
                    break;

                case 18:
                    this.obj18 = (global::Windows.UI.Xaml.Controls.MenuFlyoutItem)target;
                    break;

                default:
                    break;
                }
            }
示例#8
0
        public void InitializeComponent()
        {
            if (_contentLoaded)
            {
                return;
            }

            _contentLoaded = true;
            global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///Help/Roots Help.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);

            line1 = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line1");
        }
        public void InitializeComponent()
        {
            if (_contentLoaded)
            {
                return;
            }

            _contentLoaded = true;
            global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///Secant Method Calcualtion.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);

            lines      = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("lines");
            printpanal = (global::Windows.UI.Xaml.Controls.StackPanel) this.FindName("printpanal");
        }
示例#10
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 17:
                    this.obj17 = (global::Windows.UI.Xaml.Shapes.Line)target;
                    break;

                case 18:
                    this.obj18 = (global::Windows.UI.Xaml.Controls.MenuFlyoutItem)target;
                    break;

                case 19:
                    this.obj19 = (global::Windows.UI.Xaml.Controls.MenuFlyoutItem)target;
                    break;

                case 20:
                    this.obj20 = (global::Windows.UI.Xaml.Controls.CheckBox)target;
                    break;

                case 21:
                    this.obj21 = (global::Windows.UI.Xaml.Controls.Image)target;
                    (this.obj21).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Image.SourceProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.imgSrc = (this.obj21).Source;
                        }
                    });
                    break;

                case 22:
                    this.obj22 = (global::Windows.UI.Xaml.Controls.TextBlock)target;
                    (this.obj22).RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.TextBlock.TextProperty,
                                                                 (global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop) =>
                    {
                        if (this.initialized)
                        {
                            // Update Two Way binding
                            this.dataRoot.title = (this.obj22).Text;
                        }
                    });
                    break;

                default:
                    break;
                }
            }
        public void InitializeComponent()
        {
            if (_contentLoaded)
                return;

            _contentLoaded = true;
            global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///MainPage.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
 
            canvas = (global::Windows.UI.Xaml.Controls.Canvas)this.FindName("canvas");
            MaxContactsTB = (global::Windows.UI.Xaml.Controls.TextBlock)this.FindName("MaxContactsTB");
            LineRed = (global::Windows.UI.Xaml.Shapes.Line)this.FindName("LineRed");
            LineBlue = (global::Windows.UI.Xaml.Shapes.Line)this.FindName("LineBlue");
            messageTB = (global::Windows.UI.Xaml.Controls.TextBlock)this.FindName("messageTB");
        }
        public void InitializeComponent()
        {
            if (_contentLoaded)
            {
                return;
            }

            _contentLoaded = true;
            global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///GaussJacobi_calculation.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);

            LayoutRoot      = (global::Windows.UI.Xaml.Controls.Grid) this.FindName("LayoutRoot");
            motu            = (global::Windows.UI.Xaml.Controls.TextBlock) this.FindName("motu");
            lines           = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("lines");
            StackPanalPrint = (global::Windows.UI.Xaml.Controls.StackPanel) this.FindName("StackPanalPrint");
        }
示例#13
0
        public void InitializeComponent()
        {
            if (_contentLoaded)
            {
                return;
            }

            _contentLoaded = true;
            global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///MainPage.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);

            storyboard   = (global::Windows.UI.Xaml.Media.Animation.Storyboard) this.FindName("storyboard");
            TitlePanel   = (global::Windows.UI.Xaml.Controls.StackPanel) this.FindName("TitlePanel");
            ContentPanel = (global::Windows.UI.Xaml.Controls.Canvas) this.FindName("ContentPanel");
            line1        = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line1");
            ellipse1     = (global::Windows.UI.Xaml.Shapes.Ellipse) this.FindName("ellipse1");
            ellipse2     = (global::Windows.UI.Xaml.Shapes.Ellipse) this.FindName("ellipse2");
        }
示例#14
0
        public void InitializeComponent()
        {
            if (_contentLoaded)
            {
                return;
            }

            _contentLoaded = true;
            global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///Weddels Rule Calculation.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);

            LayoutRoot  = (global::Windows.UI.Xaml.Controls.Grid) this.FindName("LayoutRoot");
            lines       = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("lines");
            FindH       = (global::Windows.UI.Xaml.Controls.TextBlock) this.FindName("FindH");
            FirstStep   = (global::Windows.UI.Xaml.Controls.TextBlock) this.FindName("FirstStep");
            SecondStep  = (global::Windows.UI.Xaml.Controls.TextBlock) this.FindName("SecondStep");
            FinalAnswer = (global::Windows.UI.Xaml.Controls.TextBlock) this.FindName("FinalAnswer");
        }
        public void InitializeComponent()
        {
            if (_contentLoaded)
            {
                return;
            }

            _contentLoaded = true;
            global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///Help/Wedd Help.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);

            line2  = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line2");
            line1  = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line1");
            line9  = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line9");
            line10 = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line10");
            rect   = (global::Windows.UI.Xaml.Shapes.Rectangle) this.FindName("rect");
            line3  = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line3");
            line4  = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line4");
            line5  = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line5");
            line6  = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line6");
            line7  = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line7");
            line8  = (global::Windows.UI.Xaml.Shapes.Line) this.FindName("line8");
        }