Exemplo n.º 1
0
        private void BtnGroupChange_Click(object sender, RoutedEventArgs e)
        {
            GroupWindow child = new GroupWindow(wordGroup);

            child.Owner = this;
            child.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            child.ShowDialog();
            wordGroup = new WordGroup(wordGroup.CurrentGroupNum);
            RefreshMainListView();
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GroupWindow1 = ((WordBox.GroupWindow)(target));
                return;

            case 2:
                this.listViewGroup = ((System.Windows.Controls.ListView)(target));

            #line 13 "..\..\GroupWindow.xaml"
                this.listViewGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListViewGroup_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.listViewApplyingRule = ((System.Windows.Controls.ListView)(target));

            #line 21 "..\..\GroupWindow.xaml"
                this.listViewApplyingRule.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListViewApplyingRule_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\GroupWindow.xaml"
                this.btnEnter.Click += new System.Windows.RoutedEventHandler(this.BtnEnter_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\GroupWindow.xaml"
                this.btnEditGroup.Click += new System.Windows.RoutedEventHandler(this.BtnEditGroup_Click);

            #line default
            #line hidden
                return;

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

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

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

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

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

            #line 39 "..\..\GroupWindow.xaml"
                this.btnEsc.Click += new System.Windows.RoutedEventHandler(this.BtnEsc_Click);

            #line default
            #line hidden
                return;

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

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

            case 13:
                this.btnDeleteBtn = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\GroupWindow.xaml"
                this.btnDeleteBtn.Click += new System.Windows.RoutedEventHandler(this.btnDeleteBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 45 "..\..\GroupWindow.xaml"
                this.btnCreateGroup.Click += new System.Windows.RoutedEventHandler(this.BtnCreateGroup_Click);

            #line default
            #line hidden
                return;

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

            case 16:
                this.btnEditApply = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\GroupWindow.xaml"
                this.btnEditApply.Click += new System.Windows.RoutedEventHandler(this.BtnEditApply_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }