Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Input = ((WpfLab1.InputWindow)(target));
                return;

            case 2:
                this.Theme = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.Count = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 5:
                this.Start = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 6:
                this.End = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 7:

            #line 23 "..\..\InputWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OK_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 24 "..\..\InputWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Cansel_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        private void AddCustom(object sender, RoutedEventArgs e)
        {
            InputWindow IN = new InputWindow();

            IN.Owner               = this;
            IN.DataContext         = P;
            IN.Closed             += Child_Window_Closed;
            IN.OrgList.ItemsSource = RS.Worklist;
            IN.Show();

            P.theme = IN.Theme.Text;
            P.Name  = (string)IN.OrgList.SelectedItem;
            P.count = Convert.ToInt32(IN.Count.Text);
            P.Start = IN.Start.DisplayDate;
            P.End   = IN.End.DisplayDate;
        }