示例#1
0
        private void bt_staff_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            staff_menu frm = new staff_menu();

            frm.Show();
            this.Close();
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Staff_Screen = ((WpfApp2.staff_menu)(target));
                return;

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

            #line 13 "..\..\staff_menu.xaml"
                this.btn_bookings.Click += new System.Windows.RoutedEventHandler(this.btn_bookings_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\staff_menu.xaml"
                this.btn_patients.Click += new System.Windows.RoutedEventHandler(this.btn_patients_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\staff_menu.xaml"
                this.btn_home.Click += new System.Windows.RoutedEventHandler(this.btn_home_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.search_bar = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.staff_on_duty_list = ((System.Windows.Controls.ListView)(target));

            #line 23 "..\..\staff_menu.xaml"
                this.staff_on_duty_list.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.staff_on_duty_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.staff_name_id_shift = ((System.Windows.Controls.ListBoxItem)(target));

            #line 32 "..\..\staff_menu.xaml"
                this.staff_name_id_shift.Selected += new System.Windows.RoutedEventHandler(this.staff_name_id_shift_Selected);

            #line default
            #line hidden
                return;

            case 8:
                this.duty_list_scroller = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 9:
                this.staff_on_duty_date = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Staff_Screen = ((WpfApp2.staff_menu)(target));
                return;

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

            #line 13 "..\..\staff_menu.xaml"
                this.btn_bookings.Click += new System.Windows.RoutedEventHandler(this.btn_bookings_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\staff_menu.xaml"
                this.btn_patients.Click += new System.Windows.RoutedEventHandler(this.btn_patients_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\staff_menu.xaml"
                this.btn_home.Click += new System.Windows.RoutedEventHandler(this.btn_home_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.SearchBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 7:
                this.StaffSearchbt = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\staff_menu.xaml"
                this.StaffSearchbt.Click += new System.Windows.RoutedEventHandler(this.Search_Staff);

            #line default
            #line hidden
                return;

            case 8:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 9:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.dp2 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 11:

            #line 33 "..\..\staff_menu.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.gettodayshifts);

            #line default
            #line hidden
                return;

            case 12:
                this.bt_register_staff = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\staff_menu.xaml"
                this.bt_register_staff.Click += new System.Windows.RoutedEventHandler(this.bt_new_staff);

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