コード例 #1
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            CreateWeek Object = new CreateWeek();

            Object.Show();
            //FillData((When = DateTime.Now));
            //Datepick.Text = When.ToString();
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UI = ((TimeArk.CreateWeek)(target));
                return;

            case 2:
                this.DatePick = ((System.Windows.Controls.DatePicker)(target));

            #line 10 "..\..\CreateWeek.xaml"
                this.DatePick.CalendarClosed += new System.Windows.RoutedEventHandler(this.DatePick_CalendarClosed);

            #line default
            #line hidden
                return;

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

            case 4:
                this.MondayEnd = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 6:
                this.TuesdayStart = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.TuesdayEnd = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

            case 11:
                this.label_Copy2 = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.ThursdayStart = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 14:
                this.label_Copy3 = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.FridayStart = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.FridayEnd = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.label_Copy4 = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.SundayStart = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.SundayEnd = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.label_Copy5 = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.MondayLocal = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 22:
                this.TuesdayLocal = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 23:
                this.WednesdayLocal = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 24:
                this.ThursdayLocal = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 25:
                this.FridayLocal = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 26:
                this.SundayLocal = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 27:
                this.SaturdayLocal = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 28:
                this.SuProject = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.SaturdayStart = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.SaturdayEnd = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 32:
                this.MoProject = ((System.Windows.Controls.TextBox)(target));
                return;

            case 33:
                this.TuProject = ((System.Windows.Controls.TextBox)(target));
                return;

            case 34:
                this.WedProject = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.ThProject = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.FrProject = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.SatProject = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 39:
                this.label1_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.label1_Copy1 = ((System.Windows.Controls.Label)(target));
                return;

            case 41:
                this.label1_Copy2 = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.AutoFill = ((System.Windows.Controls.Button)(target));

            #line 65 "..\..\CreateWeek.xaml"
                this.AutoFill.Click += new System.Windows.RoutedEventHandler(this.AutoFill_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.Submit = ((System.Windows.Controls.Button)(target));

            #line 66 "..\..\CreateWeek.xaml"
                this.Submit.Click += new System.Windows.RoutedEventHandler(this.Submit_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.Save = ((System.Windows.Controls.Button)(target));

            #line 67 "..\..\CreateWeek.xaml"
                this.Save.Click += new System.Windows.RoutedEventHandler(this.Save_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.UpdateCheck = ((System.Windows.Controls.CheckBox)(target));
                return;
            }
            this._contentLoaded = true;
        }