Exemplo n.º 1
0
        private void buttonLayoutUpdate_Click(object sender, EventArgs e)
        {
            //Define a 2 by 2 layout
            TableLayout layout = new TableLayout(2, 2);

            //Second column only takes up 25%
            layout.Columns[1].Width = 25F;
            //Send layout to server
            iClient.SetLayout(layout);

            //
            RecordingField recording = new RecordingField();

            recording.IsActive = true;
            recording.Text     = "Recording Tame of Gone until 22:05";
            //Set texts
            iClient.CreateFields(new DataField[]
            {
                new TextField(textBoxTop.Text, Alignment, 0, 0),
                new TextField(textBoxBottom.Text, Alignment, 0, 1),
                new TextField("Third text field", Alignment, 1, 0),
                new TextField("Forth text field", Alignment, 1, 1),
                recording
            });
        }
Exemplo n.º 2
0
        public static void SetRecordingField()
        {
            DataField field = new RecordingField();

            if (!iClient.SetField(field))
            {
                Console.WriteLine("ERROR: field not found! Check layout and field creation.");
            }
        }
Exemplo n.º 3
0
        public static void SetLayout()
        {
            TableLayout layout = new TableLayout(1, 1);

            iClient.SetLayout(layout);
            //We need to create our fields
            DataField field          = new TextField();
            DataField recordingField = new RecordingField();

            iClient.CreateFields(new DataField[]
            {
                field,
                recordingField
            });
        }
Exemplo n.º 4
0
        /// <summary>
        ///
        /// </summary>
        private void CreateFields()
        {
            iRecordingField       = new RecordingField();
            iAudioVisualizerField = new AudioVisualizerField();

            if (iShowingEq)
            {
                iFields = new DataField[] { iAudioVisualizerField };
            }
            else
            {
                if (SupportsGraphics)
                {
                    //Create fields for testing our graphics support.
                    //Currently not used in production environment
                    iBitmapField         = new BitmapField(null, 0, 0, 1, 2);
                    iBitmapField.RowSpan = 2;
                    iTextFieldTop        = new TextField("", ContentAlignment.MiddleCenter, 1, 0);
                    iTextFieldBottom     = new TextField("", ContentAlignment.MiddleCenter, 1, 1);
                    iTextFieldSingleLine = new TextField("", ContentAlignment.MiddleCenter, 0, 0);

                    iFields = new DataField[] { iRecordingField, iBitmapField, iTextFieldTop, iTextFieldBottom };
                }
                else
                {
                    //Just make sure both fields are instantiated
                    iTextFieldTop        = new TextField("", ContentAlignment.MiddleCenter, 0, 0);
                    iTextFieldBottom     = new TextField("", ContentAlignment.MiddleCenter, 0, 1);
                    iTextFieldSingleLine = new TextField("", ContentAlignment.MiddleCenter, 0, 0);

                    if (SharpLibDisplay.Settings.Instance.SingleLine)
                    {
                        //Single line mode
                        iFields = new DataField[] { iRecordingField, iTextFieldSingleLine };
                    }
                    else
                    {
                        //Two lines mode use both fields
                        iFields = new DataField[] { iRecordingField, iTextFieldTop, iTextFieldBottom };
                    }
                }
            }

            iClient.CreateFields(iFields);
        }
Exemplo n.º 5
0
    //
    void CreateFields()
    {
      iRecordingField = new RecordingField();

      if (SupportsGraphics)
      {
        //Create fields for testing our graphics support.
        //Currently not used in production environment
        iBitmapField = new BitmapField(null,0,0,1,2);
        iBitmapField.RowSpan = 2;
        iTextFieldTop = new TextField("",ContentAlignment.MiddleCenter,1,0);
        iTextFieldBottom = new TextField("", ContentAlignment.MiddleCenter, 1, 1);
        iTextFieldSingleLine = new TextField("", ContentAlignment.MiddleCenter, 0, 0);

        iFields = new DataField[] { iRecordingField, iBitmapField, iTextFieldTop, iTextFieldBottom };
      }
      else
      {
        //Just make sure both fields are instantiated
        iTextFieldTop = new TextField("", ContentAlignment.MiddleCenter, 0, 0);
        iTextFieldBottom = new TextField("", ContentAlignment.MiddleCenter, 0, 1);
        iTextFieldSingleLine = new TextField("", ContentAlignment.MiddleCenter, 0, 0);

        if (SharpLibDisplay.Settings.Instance.SingleLine)
        {
          //Single line mode
          iFields = new DataField[] { iRecordingField, iTextFieldSingleLine };
        }
        else
        {
          //Two lines mode use both fields
          iFields = new DataField[] { iRecordingField, iTextFieldTop, iTextFieldBottom };
        }
      }

      iClient.CreateFields(iFields);
    }
Exemplo n.º 6
0
        void ReleaseDesignerOutlets()
        {
            if (AcqTaxField != null)
            {
                AcqTaxField.Dispose();
                AcqTaxField = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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