Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mindmaps_window = ((Jiu_Jitsu_Assistant.Roll)(target));
                return;

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

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

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

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

            #line 26 "..\..\Roll.xaml"
                this.newRoundButton.Click += new System.Windows.RoutedEventHandler(this.newRoundClicked);

            #line default
            #line hidden

            #line 26 "..\..\Roll.xaml"
                this.newRoundButton.IsEnabledChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.newRoundButton_IsEnabledChanged);

            #line default
            #line hidden
                return;

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

            #line 27 "..\..\Roll.xaml"
                this.resetButton.Click += new System.Windows.RoutedEventHandler(this.resetClicked);

            #line default
            #line hidden

            #line 27 "..\..\Roll.xaml"
                this.resetButton.IsEnabledChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.newRoundButton_IsEnabledChanged);

            #line default
            #line hidden
                return;

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

            case 8:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.selectedTime_textbox = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));

            #line 46 "..\..\Roll.xaml"
                this.selectedTime_textbox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.timeTextBoxChanged);

            #line default
            #line hidden
                return;

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

            case 11:
                this.opponentSetupTimeMin_textBox = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));

            #line 48 "..\..\Roll.xaml"
                this.opponentSetupTimeMin_textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.timeTextBoxChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.gi_radioButton = ((System.Windows.Controls.RadioButton)(target));

            #line 49 "..\..\Roll.xaml"
                this.gi_radioButton.Checked += new System.Windows.RoutedEventHandler(this.gi_radioButton_Checked);

            #line default
            #line hidden
                return;

            case 13:
                this.nogi_radioButton = ((System.Windows.Controls.RadioButton)(target));

            #line 50 "..\..\Roll.xaml"
                this.nogi_radioButton.Checked += new System.Windows.RoutedEventHandler(this.nogi_radioButton_Checked);

            #line default
            #line hidden
                return;

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

            case 15:
                this.opponentSetupTimeMax_textBox = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));

            #line 52 "..\..\Roll.xaml"
                this.opponentSetupTimeMax_textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.timeTextBoxChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.currentPositionLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.label_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.lastTechniqueLabel = ((System.Windows.Controls.AccessText)(target));
                return;

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

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

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

            case 23:
                this.opponentLastTechniqueLabel = ((System.Windows.Controls.AccessText)(target));
                return;

            case 24:
                this.setup_textBox = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));

            #line 72 "..\..\Roll.xaml"
                this.setup_textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.enableTechniques);

            #line default
            #line hidden
                return;

            case 25:
                this.helper_textBox = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 26:
                this.helper_textBox2 = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));
                return;

            case 27:
                this.buttonsGrid = ((System.Windows.Controls.Primitives.UniformGrid)(target));
                return;

            case 28:
                this.timer_label = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        private void roll_Button_Click(object sender, RoutedEventArgs e)
        {
            Roll win2 = new Roll(this.Left, this.Top, this.Height, this.Width);

            win2.ShowDialog();
        }