private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            Window1 window1 = new Window1();

            window1.ShowDialog();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.staff_details = ((WpfApp2.Window1)(target));
                return;

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

            #line 10 "..\..\staff_individual.xaml"
                this.bt_bookings.Click += new System.Windows.RoutedEventHandler(this.btn_ookings_Click);

            #line default
            #line hidden
                return;

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

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

            case 5:
                this.staff_calendar = ((System.Windows.Controls.Calendar)(target));
                return;

            case 6:

            #line 14 "..\..\staff_individual.xaml"
                ((System.Windows.Controls.ListView)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListView_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\staff_individual.xaml"
                this.date_shift.Selected += new System.Windows.RoutedEventHandler(this.ListBoxItem_Selected);

            #line default
            #line hidden
                return;

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

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

            case 10:
                this.staff_details_box = ((System.Windows.Controls.TextBox)(target));

            #line 24 "..\..\staff_individual.xaml"
                this.staff_details_box.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Window1 window1 = new Window1();

            window1.Show();
        }