Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Aleave = ((Config_with_Gui.Assign_Leave)(target));
                return;

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

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

            case 4:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.label2_Copy = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

            #line 19 "..\..\Assign_Leave.xaml"
                this.textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_TextChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 20 "..\..\Assign_Leave.xaml"
                this.comboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 12:
                this.label2_Copy4 = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.textBox_Copy = ((System.Windows.Controls.TextBox)(target));

            #line 25 "..\..\Assign_Leave.xaml"
                this.textBox_Copy.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 26 "..\..\Assign_Leave.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        public void Assign_Leave_Event(object sender, RoutedEventArgs e)
        {
            Page page = new Assign_Leave().getPage(Container.Height, Container.Width);

            Container.Navigate(page);
        }