Beispiel #1
0
        private void Add_Click(object sender, RoutedEventArgs e)
        {
            var window = new ReportWindow(null, ReportOperation.Add, Context.CurrentUser, Context.ViewTasks);

            window.DataContext = Context;
            window.Show();
        }
Beispiel #2
0
        private void Delete_Click(object sender, RoutedEventArgs e)
        {
            var view   = ((Button)sender).DataContext as ViewReport;
            var window = new ReportWindow(view, ReportOperation.Delete, Context.CurrentUser, Context.ViewTasks);

            window.DataContext = Context;
            window.Show();
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyWindow = ((TMS.Client.Windows.ReportWindow)(target));
                return;

            case 2:
                this.ComboBox_Tasks = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.ComboBox_Activity = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:
                this.DateTimePicker_BeginTime = ((Xceed.Wpf.Toolkit.DateTimePicker)(target));
                return;

            case 5:
                this.DateTimePicker_EndTime = ((Xceed.Wpf.Toolkit.DateTimePicker)(target));
                return;

            case 6:
                this.RichTextBox_Description = ((System.Windows.Controls.RichTextBox)(target));
                return;

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

            case 8:

            #line 118 "..\..\..\Windows\ReportWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Submit_Click);

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