예제 #1
0
        //SOLD, ACTIVE. OFFMARKET
        private void btnDetachedAllCMA_Click(object sender, RibbonControlEventArgs e)
        {
            if (string.IsNullOrEmpty(comboBox1.Text))
            {
                string            caption = "Error Detected in Input";
                MessageBoxButtons buttons = MessageBoxButtons.OK;
                MessageBox.Show("Please Select Subject Property", caption, buttons);
                return;
            }
            ReportCMA cma = new ReportCMA(Globals.ThisAddIn.Application.Worksheets[CMADataSheet], ReportType.CMADetached);

            if (cma.ListingDataValidated)
            {
                try { cma.Residential(ListingStatus.Sold); } catch (Exception ex) { Debug.Write(ex); };
                try { cma.Residential(ListingStatus.Active); } catch (Exception ex) { Debug.Write(ex); };
                try { cma.Residential(ListingStatus.OffMarket, true); } catch (Exception ex) { Debug.Write(ex); };
            }
        }
예제 #2
0
        private void btnCondoActive_Click(object sender, RibbonControlEventArgs e)
        {
            ReportCMA cma = new ReportCMA(Globals.ThisAddIn.Application.Worksheets[CMADataSheet], ReportType.CMAAttached);

            cma.Residential(ListingStatus.Active);
        }