// functionality of generate revenue button; creates instance of revenue report window
 private void revenueGenBtn_Click(object sender, RoutedEventArgs e)
 {
     if (searched == true)
     {
         List <string> info = getContactString();
         if (info != null)
         {
             Window report = new revenueReport(info[0], info[1], info[2], info[3], testPivot(commands[0]), productPivot(commands[0]));
             report.Show();
         }
     }
 }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.reportPage = ((LIMS_Invoice_grabber.revenueReport)(target));
                return;

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

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

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

            case 5:
                this.companyNameBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 7:
                this.testsGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 8:
                this.productsGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 9:
                this.toExel = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\revenueReport.xaml"
                this.toExel.Click += new System.Windows.RoutedEventHandler(this.toExel_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.grandTotalPrevBox = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }