コード例 #1
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 = "";
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (PropertyChooser != null)
            {
                PropertyChooser.Dispose();
                PropertyChooser = null;
            }

            if (DocumentChooser != null)
            {
                DocumentChooser.Dispose();
                DocumentChooser = null;
            }

            if (ChosenDocumentLabel != null)
            {
                ChosenDocumentLabel.Dispose();
                ChosenDocumentLabel = null;
            }

            if (SenderChooser != null)
            {
                SenderChooser.Dispose();
                SenderChooser = null;
            }

            if (ReceiverChooser != null)
            {
                ReceiverChooser.Dispose();
                ReceiverChooser = null;
            }

            if (SenderReceiverLabel != null)
            {
                SenderReceiverLabel.Dispose();
                SenderReceiverLabel = null;
            }

            if (StatusChooser != null)
            {
                StatusChooser.Dispose();
                StatusChooser = null;
            }

            if (TransmitChooser != null)
            {
                TransmitChooser.Dispose();
                TransmitChooser = null;
            }

            if (ActionDateChooser != null)
            {
                ActionDateChooser.Dispose();
                ActionDateChooser = null;
            }

            if (RecordDateChooser != null)
            {
                RecordDateChooser.Dispose();
                RecordDateChooser = null;
            }

            if (SaveMessage != null)
            {
                SaveMessage.Dispose();
                SaveMessage = null;
            }
        }