示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Generator = ((Passwords.Window1)(target));
                return;

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

            #line 10 "..\..\Window1.xaml"
                this.GenerateButton.Click += new System.Windows.RoutedEventHandler(this.GenerateButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.CapCheck = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 4:
                this.PuncCheck = ((System.Windows.Controls.CheckBox)(target));
                return;

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

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

            #line 14 "..\..\Window1.xaml"
                this.LenghtSlide.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.LenghtSlide_ValueChanged);

            #line default
            #line hidden
                return;

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

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

            case 9:
                this.PasswordRating = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.ScoreBox = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        private void GeneratorOpen_Click(object sender, RoutedEventArgs e)
        {
            Window1 window1 = new Window1();

            window1.Show();
        }