Пример #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Initalize Property Chooser
            this.PropertyChooser.RemoveAll();
            this.PropertyChooser.Add((NSString)"Choose Property");
            List <string> addresses = clsProperty.AddressList();

            foreach (string s in addresses)
            {
                this.PropertyChooser.Add((NSString)s);
            }
            this.PropertyChooser.SelectItem(0);

            // Initialize Filters
            this.SenderFilter.RemoveAll();
            this.ReceiverFilter.RemoveAll();
            this.SenderFilter.Add((NSString)"All Senders");
            this.ReceiverFilter.Add((NSString)"All Receivers");
            for (int i = 0; i < this.tblEntities.Length(); i++)
            {
                this.SenderFilter.Add((NSString)tblEntities.Value(i, clsEntity.NameColumn));
                this.ReceiverFilter.Add((NSString)tblEntities.Value(i, clsEntity.NameColumn));
            }
            this.SenderFilter.SelectItem(0);
            this.ReceiverFilter.SelectItem(0);

            this.StatusFilter.RemoveAll();
            this.StatusFilter.Add((NSString)"All Status");
            for (int i = 0; i < Enum.GetValues(typeof(clsDocumentRecord.Status)).Length; i++)
            {
                this.StatusFilter.Add((NSString)((clsDocumentRecord.Status)i).ToString());
            }
            this.StatusFilter.SelectItem(0);

            this.TypeFilter.RemoveAll();
            this.TypeFilter.Add((NSString)"All Types");
            for (int i = 0; i < Enum.GetValues(typeof(clsDocument.Type)).Length; i++)
            {
                this.TypeFilter.Add((NSString)((clsDocument.Type)i).ToString());
            }
            this.TypeFilter.SelectItem(0);

            // Initialize Data Source
            this.dataSource                 = new DocumentRecordTableDataSource();
            this.dataSourceDelegate         = new DocumentRecordTableDataSourceDelegate(this.dataSource);
            this.DocRecTableView.DataSource = this.dataSource;
            this.DocRecTableView.Delegate   = this.dataSourceDelegate;
            for (int i = 0; i < tblEntities.Length(); i++)
            {
                this.dataSource.entityNames.Add(tblEntities.Value(i, clsEntity.NameColumn));
            }
            for (int i = 0; i < tblDocuments.Length(); i++)
            {
                this.dataSource.documentNames.Add(((clsDocument.Type)(Int32.Parse(tblDocuments.Value(i, clsDocument.TypeColumn)))).ToString());
            }
        }
Пример #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Do any additional setup after loading the view.
            List <string> addressList = clsProperty.AddressList();

            this.AddressComboBox.RemoveAll();
            foreach (string address in addressList)
            {
                this.AddressComboBox.Add((NSString)address);
            }

            this.HOILabel.StringValue         = "0";
            this.PriceLabel.StringValue       = "0";
            this.AcqTaxLabel.StringValue      = "0";
            this.RecordingLabel.StringValue   = "0";
            this.ConcessionLabel.StringValue  = "0";
            this.ProcessingLabel.StringValue  = "0";
            this.ClosingDateLabel.StringValue = "--/--/--";
            this.InitialDrawLabel.StringValue = "0";
            this.PropertyTaxLabel.StringValue = "0";
            this.TitlePolicyLabel.StringValue = "0";
            this.LenderLabel.StringValue      = "---";
            this.BorrowerLabel.StringValue    = "---";
            this.PointsLabel.StringValue      = "0";

            this.HOIField.StringValue           = this.HOILabel.StringValue;
            this.PriceField.StringValue         = this.PriceLabel.StringValue;
            this.AcqTaxField.StringValue        = this.AcqTaxLabel.StringValue;
            this.RecordingField.StringValue     = this.RecordingLabel.StringValue;
            this.ConcessionField.StringValue    = this.ConcessionLabel.StringValue;
            this.ProcessingField.StringValue    = this.ProcessingLabel.StringValue;
            this.ClosingDatePicker.DateValue    = (NSDate)System.DateTime.Today;
            this.InitialDrawField.StringValue   = this.InitialDrawLabel.StringValue;
            this.PropertyTaxField.StringValue   = this.PropertyTaxLabel.StringValue;
            this.TitlePolicyField.StringValue   = this.TitlePolicyLabel.StringValue;
            this.UpdatedPointsLabel.StringValue = this.PointsLabel.StringValue;

            clsCSVTable tblEntity = new clsCSVTable(clsEntity.strEntityPath);

            for (int i = 0; i < tblEntity.Length(); i++)
            {
                if ((clsEntity.Type)Int32.Parse(tblEntity.Value(i, clsEntity.EntityTypeColumn)) == clsEntity.Type.Lender)
                {
                    this.LenderComboBox.Add((NSString)tblEntity.Value(i, clsEntity.NameColumn));
                }
                else if ((clsEntity.Type)Int32.Parse(tblEntity.Value(i, clsEntity.EntityTypeColumn)) == clsEntity.Type.Borrower)
                {
                    this.BorrowerComboBox.Add((NSString)tblEntity.Value(i, clsEntity.NameColumn));
                }
            }
        }
Пример #3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Do any additional setup after loading the view.
            clsCSVTable EntityTable = new clsCSVTable(clsEntity.strEntityPath);

            for (int i = 0; i < EntityTable.Length(); i++)
            {
                this.TitleHolderPopUp.AddItem(EntityTable.Value(i, clsEntity.NameColumn));
                this.CoBorrowerPopUp.AddItem(EntityTable.Value(i, clsEntity.NameColumn));
                this.TitlePopUp.AddItem(EntityTable.Value(i, clsEntity.NameColumn));
                this.LenderPopUp.AddItem(EntityTable.Value(i, clsEntity.NameColumn));
            }
            this.PurchaseDatePicker.DateValue = (NSDate)System.DateTime.Today.AddMonths(1);
            this.TitleHolderPopUp.SelectItem(6);
            this.CoBorrowerPopUp.SelectItem(5);
            this.LenderPopUp.SelectItem(4);
        }
Пример #4
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Do any additional setup after loading the view.
            this.PropertyChooser.DataSource = new ComboBoxStringListDataSource(clsProperty.AddressList());

            DocumentChooser.RemoveAll();
            foreach (clsDocument.Type t in Enum.GetValues(typeof(clsDocument.Type)))
            {
                DocumentChooser.Add((NSString)t.ToString());
            }

            this.entityList = new List <clsEntity>();
            SenderChooser.RemoveAll();
            ReceiverChooser.RemoveAll();
            clsCSVTable tblEntities = new clsCSVTable(clsEntity.strEntityPath);

            for (int i = 0; i < tblEntities.Length(); i++)
            {
                SenderChooser.Add((NSString)tblEntities.Value(i, clsEntity.NameColumn));
                ReceiverChooser.Add((NSString)tblEntities.Value(i, clsEntity.NameColumn));
                this.entityList.Add(new clsEntity(i));
            }

            foreach (clsDocumentRecord.Status s in Enum.GetValues(typeof(clsDocumentRecord.Status)))
            {
                StatusChooser.Add((NSString)s.ToString());
            }

            foreach (clsDocumentRecord.Transmission t in Enum.GetValues(typeof(clsDocumentRecord.Transmission)))
            {
                TransmitChooser.Add((NSString)t.ToString());
            }

            ActionDateChooser.DateValue = (NSDate)System.DateTime.Today;
            RecordDateChooser.DateValue = (NSDate)System.DateTime.Now;

            this.loanList = clsLoan.LoanIDsByAddress();

            ChosenDocumentLabel.StringValue = "";
        }
Пример #5
0
        private void ReloadCashflows()
        {
            clsCSVTable cfTable = new clsCSVTable(clsCashflow.strCashflowPath);

            this.activeCashflows.Clear();
            for (int i = 0; i < cfTable.Length(); i++)
            {
                if (DateTime.Parse(cfTable.Value(i, clsCashflow.DeleteDateColumn)) > System.DateTime.Today.AddYears(50))
                {
                    this.activeCashflows.Add(new clsCashflow(i));
                }
            }
            this.RefreshTable();
        }
Пример #6
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Do any additional setup after loading the view.
            clsCSVTable EntityTable = new clsCSVTable(clsEntity.strEntityPath);

            for (int i = 0; i < EntityTable.Length(); i++)
            {
                switch (Int32.Parse(EntityTable.Value(i, clsEntity.EntityTypeColumn)))
                {
                case (Int32)clsEntity.Type.Borrower:
                    this.TitleHolderPopUp.AddItem(EntityTable.Value(i, clsEntity.NameColumn));
                    this.CoBorrowerPopUp.AddItem(EntityTable.Value(i, clsEntity.NameColumn));
                    break;

                case (Int32)clsEntity.Type.Title:
                    this.TitlePopUp.AddItem(EntityTable.Value(i, clsEntity.NameColumn));
                    break;

                case (Int32)clsEntity.Type.Lender:
                    this.LenderPopUp.AddItem(EntityTable.Value(i, clsEntity.NameColumn));
                    break;
                }
            }
            this.PurchaseDatePicker.DateValue = (NSDate)System.DateTime.Today.AddMonths(1);
            this.TitleHolderPopUp.SelectItem(2);
            this.CoBorrowerPopUp.SelectItem(0);
            this.LenderPopUp.SelectItem(2);
            this.PointsBox.DoubleValue             = 0D;
            this.DefaultRateBox.DoubleValue        = 0.05;
            this.LoanRateBox.DoubleValue           = 0.09;
            this.ProfitSplitBox.DoubleValue        = 0.50;
            this.AcquisitionOnlyCheckBox.State     = NSCellStateValue.Off;
            this.InitialLoanPercentBox.DoubleValue = 1D;
            this.InitialLoanPercentBox.Editable    = false;
        }
Пример #7
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Do any additional setup after loading the view.
            this.ReportDatePicker.DateValue  = (NSDate)System.DateTime.Today.Date.ToUniversalTime();
            this.ReportDatePicker2.DateValue = (NSDate)System.DateTime.Today.Date.AddDays(91).ToUniversalTime();

            clsCSVTable tblLenders = new clsCSVTable(clsEntity.strEntityPath);
            clsCSVTable tblLoans   = new clsCSVTable(clsLoan.strLoanPath);

            for (int i = 0; i < tblLenders.Length(); i++)
            {
                if (tblLoans.Matches(clsLoan.LenderColumn, i.ToString()).Count > 0)
                {
                    this.LenderPopUpButton.AddItem(tblLenders.Value(i, clsEntity.NameColumn));
                    this.lenderIndexToID.Add(i);
                }
            }
        }
Пример #8
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            clsCSVTable tblLenders = new clsCSVTable(clsEntity.strEntityPath);
            clsCSVTable tblLoans   = new clsCSVTable(clsLoan.strLoanPath);

            for (int i = 0; i < tblLenders.Length(); i++)
            {
                if (tblLoans.Matches(clsLoan.LenderColumn, i.ToString()).Count > 0)
                {
                    this.LenderPopUpButton.AddItem(tblLenders.Value(i, clsEntity.NameColumn));
                    this.lenderIndexToID.Add(i);
                }
            }
            for (int i = 0; i < tblLoans.Length(); i++)
            {
                this.lenderLoanIDs.Add(i);
            }

            // Do any additional setup after loading the view.
        }
Пример #9
0
        partial void propertyMenuChosen(AppKit.NSPopUpButton sender)
        {
            documentRecordHistory.StringValue  = " ";
            documentRecordHistory.StringValue += "\t" + "\t" + "\t" + "Sender           " + "Reciever         " + " Action Date     " + "Record Date     " + "\n";

            clsCSVTable tbl      = new clsCSVTable(clsDocument.strDocumentPath);
            int         chosenID = clsLoan.LoanID(propertyMenu.TitleOfSelectedItem);

            Console.WriteLine(chosenID.ToString());

            System.Collections.Generic.List <clsDocument> documentList    = new System.Collections.Generic.List <clsDocument>();
            System.Collections.Generic.List <int>         documentlistIDs = new System.Collections.Generic.List <int>();
            for (int i = 0; i < tbl.Length(); i++)
            {
                if (chosenID.ToString() == tbl.Value(i, clsDocument.PropertyColumn))
                {
                    clsDocument document = new clsDocument(i);
                    documentList.Add(document);
                    Console.Write(tbl.Value(i, clsDocument.PropertyColumn));
                    documentlistIDs.Add(i);
                }
            }

            clsCSVTable documentRecordTable = new clsCSVTable(clsDocumentRecord.strDocumentRecordPath);
            clsCSVTable tblEntities         = new clsCSVTable(clsEntity.strEntityPath);

            for (int iDocIndex = 0; iDocIndex < documentlistIDs.Count; iDocIndex++)
            {
                int docID = documentlistIDs[iDocIndex];
                documentRecordHistory.StringValue += documentList[iDocIndex].Name() + "\n";
                for (int i = 0; i < documentRecordTable.Length(); i++)
                {
                    if (documentRecordTable.Value(i, clsDocumentRecord.DocumentColumn) == docID.ToString())
                    {
                        int senderID     = Int32.Parse(documentRecordTable.Value(i, clsDocumentRecord.SenderColumn));
                        int receiverID   = Int32.Parse(documentRecordTable.Value(i, clsDocumentRecord.ReceiverColumn));
                        int status       = Int32.Parse(documentRecordTable.Value(i, clsDocumentRecord.StatusColumn));
                        int transmission = Int32.Parse(documentRecordTable.Value(i, clsDocumentRecord.TransmissionColumn));
                        Console.WriteLine(documentRecordTable.Value(i, clsDocumentRecord.DocumentColumn));
                        //documentRecordHistory.StringValue += "Doc record ID: " + i + ", Action date: " + (documentRecordTable.Value(i, clsDocumentRecord.ActionDateColumn)) + ", Record date: "+ (documentRecordTable.Value(i, clsDocumentRecord.RecordDateColumn)) + ", Sender ID: " + (documentRecordTable.Value(i, clsDocumentRecord.SenderColumn)) + ", Reciever ID: " + (documentRecordTable.Value(i, clsDocumentRecord.ReceiverColumn)) + ", Status: " + (documentRecordTable.Value(i, clsDocumentRecord.StatusColumn)) + ", Transmission method: " + (documentRecordTable.Value(i, clsDocumentRecord.TransmissionColumn)) + "\n";

                        string Sender   = tblEntities.Value(senderID, clsEntity.NameColumn);
                        string Reciever = tblEntities.Value(receiverID, clsEntity.NameColumn);
                        clsDocumentRecord.Status Status = (clsDocumentRecord.Status)(status);
                        string StatusString             = Status.ToString();
                        //Titles


                        if (Sender.Length > 15)
                        {
                            Sender = Sender.Substring(0, 15);
                        }
                        else
                        {
                            while (Sender.Length < 15)
                            {
                                Sender = Sender + " ";
                            }
                        }
                        documentRecordHistory.StringValue += "\t" + "\t" + "\t" + Sender;
                        // Now it is the reciever length
                        if (Reciever.Length > 15)
                        {
                            Reciever = Reciever.Substring(0, 15);
                        }
                        else
                        {
                            while (Reciever.Length < 15)
                            {
                                Reciever = Reciever + " ";
                            }
                        }
                        documentRecordHistory.StringValue += ", " + Reciever;

                        documentRecordHistory.StringValue += ",  " + DateTime.Parse(documentRecordTable.Value(i, clsDocumentRecord.ActionDateColumn)).ToString("MM/dd/yy hh:mm");
                        documentRecordHistory.StringValue += ", " + DateTime.Parse(documentRecordTable.Value(i, clsDocumentRecord.RecordDateColumn)).ToString("MM/dd/yy hh:mm");
                        while (StatusString.Length < 12)
                        {
                            StatusString = StatusString + " ";
                        }
                        documentRecordHistory.StringValue += ", " + StatusString;
                        documentRecordHistory.StringValue += ", " + (clsDocumentRecord.Transmission)(transmission) + "\n";
                    }
                }
            }
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Do any additional setup after loading the view.
            this.InitializeValues();
            this.TypePopUpButton.RemoveAllItems();
            List <string> typeList = new List <string>();

            foreach (clsCashflow.Type t in Enum.GetValues(typeof(clsCashflow.Type)))
            {
                if ((t == clsCashflow.Type.ManagementFee) ||
                    (t == clsCashflow.Type.AccountingFees) ||
                    (t == clsCashflow.Type.BankFees) ||
                    (t == clsCashflow.Type.CapitalCall) ||
                    (t == clsCashflow.Type.CatchUp) ||
                    (t == clsCashflow.Type.Distribution) ||
//                    (t == clsCashflow.Type.InterestAdditional) ||
                    (t == clsCashflow.Type.LegalFees) ||
                    (t == clsCashflow.Type.ManagementFee) ||
                    (t == clsCashflow.Type.Misc) ||
                    (t == clsCashflow.Type.PromoteFee))
                {
                    typeList.Add(t.ToString());
                }
            }
            typeList.Sort();
            foreach (string s in typeList)
            {
                this.TypePopUpButton.AddItem(s);
            }
            this.CashflowsTableView.Delegate = new NonLoanCashflowTableViewDelegate(this.dataSource);
            this.CashflowsTableView.TableColumns()[0].Title = "ID";
            this.CashflowsTableView.TableColumns()[0].Width = 60;
            this.CashflowsTableView.TableColumns()[1].Title = "PayDate";
            this.CashflowsTableView.TableColumns()[1].Width = 60;
            this.CashflowsTableView.TableColumns()[2].Title = "RecDate";
            this.CashflowsTableView.TableColumns()[2].Width = 60;
            this.CashflowsTableView.TableColumns()[3].Title = "Amount";
            this.CashflowsTableView.TableColumns()[3].Width = 80;
            this.CashflowsTableView.TableColumns()[4].Title = "Type";
            this.CashflowsTableView.TableColumns()[4].Width = 80;
            this.CashflowsTableView.TableColumns()[5].Title = "Actual";
            this.CashflowsTableView.TableColumns()[5].Width = 40;
            this.CashflowsTableView.TableColumns()[6].Title = "DelDate";
            this.CashflowsTableView.TableColumns()[6].Width = 60;
            this.CashflowsTableView.TableColumns()[7].Title = "Comment";
            this.CashflowsTableView.TableColumns()[7].Width = 200;
//            this.CashflowsTableView.RemoveColumn(this.CashflowsTableView.TableColumns()[0]);
            this.CashflowsTableView.DataSource = this.dataSource;

            clsCSVTable tblLenders = new clsCSVTable(clsEntity.strEntityPath);
            clsCSVTable tblLoans   = new clsCSVTable(clsLoan.strLoanPath);

            for (int i = 0; i < tblLenders.Length(); i++)
            {
                if (tblLoans.Matches(clsLoan.LenderColumn, i.ToString()).Count > 0)
                {
                    this.EntityPopUpButton.AddItem(tblLenders.Value(i, clsEntity.NameColumn));
                    this.entityIndexToID.Add(i);
                }
            }
        }
Пример #11
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Do any additional setup after loading the view.
            this.ScenarioButton.State      = NSCellStateValue.On;
            this.OutflowsOnlyButton.State  = NSCellStateValue.Off;
            this.ScheduledOnlyButton.State = NSCellStateValue.Off;
            this.showAll           = true;
            this.showScheduledOnly = false;
            this.showExpensesOnly  = false;

            clsCSVTable cfTable = new clsCSVTable(clsCashflow.strCashflowPath);

            for (int i = 0; i < cfTable.Length(); i++)
            {
                if (DateTime.Parse(cfTable.Value(i, clsCashflow.DeleteDateColumn)) > System.DateTime.Today.AddYears(50))
                {
                    this.activeCashflows.Add(new clsCashflow(i));
                }
            }

            this.DateFilterDatePicker.DateValue = (NSDate)System.DateTime.Today;
            this.startDate = System.DateTime.Today.AddYears(-10);
            this.StartDatePicker.DateValue = (NSDate)this.startDate;
            this.endDate = System.DateTime.Today.AddYears(10);
            this.EndDatePicker.DateValue = (NSDate)this.endDate;

            this.ActualFilterComboxBox.RemoveAll();
            this.ActualFilterComboxBox.Add((NSString)"All");
            this.ActualFilterComboxBox.Add((NSString)"True");
            this.ActualFilterComboxBox.Add((NSString)"False");
            this.ActualFilterComboxBox.SelectItem(0);

            this.AddressFilterComboBox.RemoveAll();
            this.AddressFilterComboBox.Add((NSString)"All");
            List <string> addresses = clsProperty.AddressList();

            foreach (string s in addresses)
            {
                this.AddressFilterComboBox.Add((NSString)s);
            }
            this.AddressFilterComboBox.SelectItem(0);

            this.TypeFilterComboBox.RemoveAll();
            this.TypeFilterComboBox.Add((NSString)"All");
            foreach (clsCashflow.Type t in Enum.GetValues(typeof(clsCashflow.Type)))
            {
                this.TypeFilterComboBox.Add((NSString)t.ToString());
            }
            this.TypeFilterComboBox.Remove((NSString)"Unknown");
            this.TypeFilterComboBox.SelectItem(0);

            this.dataSource                   = new CashflowTableDataSource();
            this.dataSourceDelegate           = new CashflowTableDataSourceDelegate(this.dataSource);
            this.CashflowTableView.DataSource = this.dataSource;
            this.CashflowTableView.Delegate   = this.dataSourceDelegate;

            this.LenderPopUp.RemoveItem("Item 2");
            this.LenderPopUp.RemoveItem("Item 3");
            clsCSVTable tblLenders = new clsCSVTable(clsEntity.strEntityPath);
            clsCSVTable tblLoans   = new clsCSVTable(clsLoan.strLoanPath);

            for (int i = 0; i < tblLenders.Length(); i++)
            {
                if (tblLoans.Matches(clsLoan.LenderColumn, i.ToString()).Count > 0)
                {
                    this.LenderPopUp.AddItem(tblLenders.Value(i, clsEntity.NameColumn));
                    this.lenderIndexToID.Add(i);
                }
            }
            for (int i = 0; i < tblLoans.Length(); i++)
            {
                this.lenderLoanIDs.Add(i);
            }
        }
Пример #12
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Do any additional setup after loading the view.
            this.ScenarioButton.State      = NSCellStateValue.On;
            this.OutflowsOnlyButton.State  = NSCellStateValue.Off;
            this.ScheduledOnlyButton.State = NSCellStateValue.Off;
            this.showAll           = true;
            this.showScheduledOnly = false;
            this.showExpensesOnly  = false;
            this.showExpired       = false;

            clsCSVTable cfTable = new clsCSVTable(clsCashflow.strCashflowPath);

            for (int i = 0; i < cfTable.Length(); i++)
            {
                DateTime         pd = DateTime.Parse(cfTable.Value(i, clsCashflow.TransactionDateColumn));
                DateTime         rd = DateTime.Parse(cfTable.Value(i, clsCashflow.RecordDateColumn));
                DateTime         dd = DateTime.Parse(cfTable.Value(i, clsCashflow.DeleteDateColumn));
                int              id = Int32.Parse(cfTable.Value(i, clsCashflow.LoanColumn));
                double           a  = Double.Parse(cfTable.Value(i, clsCashflow.AmountColumn));
                bool             b  = Boolean.Parse(cfTable.Value(i, clsCashflow.ActualColumn));
                clsCashflow.Type t  = (clsCashflow.Type)Int32.Parse(cfTable.Value(i, clsCashflow.TransactionTypeColumn));
                string           c  = cfTable.Value(i, clsCashflow.CommentColumn);
                clsCashflow      cf = new clsCashflow(pd, rd, dd, id, a, b, t, c);
                if (DateTime.Parse(cfTable.Value(i, clsCashflow.DeleteDateColumn)) > System.DateTime.Today.AddYears(50))
                {
                    this.activeCashflows.Add(cf);
                    //this.activeCashflows.Add(new clsCashflow(i));
                }
                else
                {
                    this.expiredCashflows.Add(cf);
                }
            }

            this.DateFilterDatePicker.DateValue = (NSDate)System.DateTime.Today;
            this.startDate = System.DateTime.Today.AddYears(-10);
            this.StartDatePicker.DateValue = (NSDate)this.startDate;
            this.endDate = System.DateTime.Today.AddYears(10);
            this.EndDatePicker.DateValue = (NSDate)this.endDate;

            this.ActualFilterComboxBox.RemoveAll();
            this.ActualFilterComboxBox.Add((NSString)"All");
            this.ActualFilterComboxBox.Add((NSString)"True");
            this.ActualFilterComboxBox.Add((NSString)"False");
            this.ActualFilterComboxBox.SelectItem(0);

            this.AddressFilterComboBox.RemoveAll();
            this.AddressFilterComboBox.Add((NSString)"All");
            List <string> addresses = clsProperty.AddressList();

            foreach (string s in addresses)
            {
                this.AddressFilterComboBox.Add((NSString)s);
            }
            this.AddressFilterComboBox.SelectItem(0);

            this.TypeFilterComboBox.RemoveAll();
            this.TypeFilterComboBox.Add((NSString)"All");
            foreach (clsCashflow.Type t in Enum.GetValues(typeof(clsCashflow.Type)))
            {
                this.TypeFilterComboBox.Add((NSString)t.ToString());
            }
            this.TypeFilterComboBox.Remove((NSString)"Unknown");
            this.TypeFilterComboBox.SelectItem(0);

            this.dataSource                   = new CashflowTableDataSource();
            this.dataSourceDelegate           = new CashflowTableDataSourceDelegate(this.dataSource);
            this.CashflowTableView.DataSource = this.dataSource;
            this.CashflowTableView.Delegate   = this.dataSourceDelegate;

            clsCSVTable tblLenders = new clsCSVTable(clsEntity.strEntityPath);
            clsCSVTable tblLoans   = new clsCSVTable(clsLoan.strLoanPath);

            for (int i = 0; i < tblLenders.Length(); i++)
            {
                if (tblLoans.Matches(clsLoan.LenderColumn, i.ToString()).Count > 0)
                {
                    this.LenderPopUp.AddItem(tblLenders.Value(i, clsEntity.NameColumn));
                    this.lenderIndexToID.Add(i);
                }
            }
            for (int i = 0; i < tblLoans.Length(); i++)
            {
                this.lenderLoanIDs.Add(i);
            }

            clsCSVTable tblBorrowers = new clsCSVTable(clsEntity.strEntityPath);

            for (int i = 0; i < tblBorrowers.Length(); i++)
            {
                if (tblLoans.Matches(clsLoan.TitleHolderColumn, i.ToString()).Count > 0)
                {
                    this.BorrowerPopUp.AddItem(tblBorrowers.Value(i, clsEntity.NameColumn));
                    this.borrowerIndexToID.Add(i);
                }
            }
            for (int i = 0; i < tblLoans.Length(); i++)
            {
                this.borrowerLoanIDs.Add(i);
            }
        }