Exemple #1
0
        private void button_Copy_Click(object sender, RoutedEventArgs e)
        {
            MyTechniques win2 = new MyTechniques(this.Left, this.Top, this.Height, this.Width);

            win2.ShowDialog();
            //this.Close();
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window1 = ((Jiu_Jitsu_Assistant.MyTechniques)(target));
                return;

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

            case 3:
                this.techniquesGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 28 "..\..\MyTechniques.xaml"
                this.techniquesGrid.CellEditEnding += new System.EventHandler <System.Windows.Controls.DataGridCellEditEndingEventArgs>(this.updateTechniqueFromDataGrid);

            #line default
            #line hidden

            #line 29 "..\..\MyTechniques.xaml"
                this.techniquesGrid.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.deletingRowFromDatagrid);

            #line default
            #line hidden

            #line 29 "..\..\MyTechniques.xaml"
                this.techniquesGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lookupSetupsForTechnique);

            #line default
            #line hidden
                return;

            case 4:
                this.techniqueGroupsGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 40 "..\..\MyTechniques.xaml"
                this.techniqueGroupsGrid.SelectedCellsChanged += new System.Windows.Controls.SelectedCellsChangedEventHandler(this.techniqueGroupsGrid_SelectedCellsChanged);

            #line default
            #line hidden
                return;

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

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

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

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

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

            case 10:
                this.techniqueName_textbox = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));

            #line 57 "..\..\MyTechniques.xaml"
                this.techniqueName_textbox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.emptyTechniqueNameCheck);

            #line default
            #line hidden
                return;

            case 11:
                this.lbl_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.dateLearned_datepicker = ((System.Windows.Controls.DatePicker)(target));
                return;

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

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

            case 15:
                this.white = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 16:
                this.blue = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 17:
                this.purple = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 18:
                this.brown = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 19:
                this.black = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

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

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

            case 22:
                this.addTechnique_button = ((System.Windows.Controls.Button)(target));

            #line 91 "..\..\MyTechniques.xaml"
                this.addTechnique_button.Click += new System.Windows.RoutedEventHandler(this.AddNewTechnique);

            #line default
            #line hidden

            #line 91 "..\..\MyTechniques.xaml"
                this.addTechnique_button.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.addTechnique_button_MouseDown);

            #line default
            #line hidden
                return;

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

            case 24:
                this.from_Position_comboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 27:
                this.nogi_checkBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 28:
                this.setup_textBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.description_label = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 101 "..\..\MyTechniques.xaml"
                this.add_setup_button.Click += new System.Windows.RoutedEventHandler(this.addSetup);

            #line default
            #line hidden
                return;

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

            #line 102 "..\..\MyTechniques.xaml"
                this.finish_technique_button.Click += new System.Windows.RoutedEventHandler(this.finishAddingTechniqueAndSetups);

            #line default
            #line hidden
                return;

            case 32:
                this.setup_label = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }