コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.StudentDetailUserControl = ((ES.UI.Setups.ucStudentDetailView)(target));
                return;

            case 2:
                this.tabControl = ((Wpf.Controls.TabControl)(target));
                return;

            case 3:
                this.btnSearchParent = ((System.Windows.Controls.Button)(target));

            #line 145 "..\..\..\..\..\..\Setups\Setting\Student\ucStudentDetailView.xaml"
                this.btnSearchParent.Click += new System.Windows.RoutedEventHandler(this.btnSearchParent_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.cmbStdClass = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.cmbStdSection = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 329 "..\..\..\..\..\..\Setups\Setting\Student\ucStudentDetailView.xaml"
                this.btnStudentSave.Click += new System.Windows.RoutedEventHandler(this.btnStudentSave_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 private void OpenStudentDetailWindow(string mode, string title)
 {
     var win = (Student)gvStudentListView.SelectedItem;
     if (win == null && FormMode != FormModes.New)
     {
         Message(MessageTypes.Error, "Please Select to edit");
         return;
     }
     ucStudentDetailView view;
     if (mode == FormModes.New)
     {
         view = new ucStudentDetailView(mode);
     }
     else
     {
         view = new ucStudentDetailView(mode, win.StudentID);
     }
     view.ParentContainer = this;
     OpenPopUp(view, title, 650, 500);
 }
        private void OpenStudentDetailWindow(string mode, string title)
        {
            var win = (Student)gvStudentListView.SelectedItem;

            if (win == null && FormMode != FormModes.New)
            {
                Message(MessageTypes.Error, "Please Select to edit");
                return;
            }
            ucStudentDetailView view;

            if (mode == FormModes.New)
            {
                view = new ucStudentDetailView(mode);
            }
            else
            {
                view = new ucStudentDetailView(mode, win.StudentID);
            }
            view.ParentContainer = this;
            OpenPopUp(view, title, 650, 500);
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.StudentDetailUserControl = ((ES.UI.Setups.ucStudentDetailView)(target));
     return;
     case 2:
     this.tabControl = ((Wpf.Controls.TabControl)(target));
     return;
     case 3:
     this.btnSearchParent = ((System.Windows.Controls.Button)(target));
     
     #line 145 "..\..\..\..\..\..\Setups\Setting\Student\ucStudentDetailView.xaml"
     this.btnSearchParent.Click += new System.Windows.RoutedEventHandler(this.btnSearchParent_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.cmbStdClass = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 5:
     this.cmbStdSection = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 6:
     this.btnStudentSave = ((System.Windows.Controls.Button)(target));
     
     #line 329 "..\..\..\..\..\..\Setups\Setting\Student\ucStudentDetailView.xaml"
     this.btnStudentSave.Click += new System.Windows.RoutedEventHandler(this.btnStudentSave_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }