1.0-northcote/cs/Sharpen/frmSharpen.cs
/// <summary>
/// Sets the text fields on the Sharpen form depending on the number of energy values in the <see cref="IEncounter"/> instance.
/// </summary>
Sets the text fields on the Sharpen form depending on the number of energy values in the  instance.
Sets the text fields on the Sharpen form depending on the number of energy values in the instance .
private void SetUi()
        {
            this.txtDescription.Text = this.encounter.Description;
            if (this.encounter.EnergyCount >= 1)
            {
                this.txtDimerDimer.Text = this.encounter.Dimer.ToString();
            }
            if (this.encounter.EnergyCount >= 2)
            {
                this.txtMonADimer.Text = this.encounter.MonomerADimerBasis.ToString();
            }
            if (this.encounter.EnergyCount >= 3)
            {
                this.txtMonBDimer.Text = this.encounter.MonomerBDimerBasis.ToString();
                if (this.encounter.EnergyCount >= 4)
                {
                    this.txtMonAMon.Text = this.encounter.MonomerAMonomerBasis.ToString();
                }
                if (this.encounter.EnergyCount == 5)
                {
                    this.txtMonBMon.Text = this.encounter.MonomerBMonomerBasis.ToString();
                }
                this.txtInteractionHartree.Text = this.encounter.InteractionEnergyHartrees.ToString();
                this.txtInteractionKjmol.Text = this.encounter.InteractionEnergyKjmol.ToString();
                this.txtBindingConstant.Text = this.encounter.BindingConstant.ToString();
            }
        }
private void SetUi ( ) { this . txtDescription . Text = this . encounter . Description ; if ( this . encounter . EnergyCount >= 1 ) { this . txtDimerDimer . Text = this . encounter . Dimer . ToString ( ) ; } if ( this . encounter . EnergyCount >= 2 ) { this . txtMonADimer . Text = this . encounter . MonomerADimerBasis . ToString ( ) ; } if ( this . encounter . EnergyCount >= 3 ) { this . txtMonBDimer . Text = this . encounter . MonomerBDimerBasis . ToString ( ) ; if ( this . encounter . EnergyCount >= 4 ) { this . txtMonAMon . Text = this . encounter . MonomerAMonomerBasis . ToString ( ) ; } if ( this . encounter . EnergyCount == 5 ) { this . txtMonBMon . Text = this . encounter . MonomerBMonomerBasis . ToString ( ) ; } this . txtInteractionHartree . Text = this . encounter . InteractionEnergyHartrees . ToString ( ) ; this . txtInteractionKjmol . Text = this . encounter . InteractionEnergyKjmol . ToString ( ) ; this . txtBindingConstant . Text = this . encounter . BindingConstant . ToString ( ) ; } }
Sets the text fields on the Sharpen form depending on the number of energy values in the  instance.
Sets the text fields on the Sharpen form depending on the number of energy values in the instance .