コード例 #1
0
 private void DoStateLogging(PropertyStateType propertyStateType,
                             string description)
 {
     Log(new StateLogInfo
     {
         State       = (uint)propertyStateType,
         Description = description
     });
 }
コード例 #2
0
        /// <summary>
        /// Evaulate the State and then set the State Buttons Accordingly
        /// </summary>
        /// <param name="propertyStateType">PropertyStateType</param>
        private void SetStates(PropertyStateType propertyStateType)
        {
            // First disable all State/Action Buttons
            DisableStateButtons();

            if (propertyStateType == PropertyStateType.NotStarted)
            {
                btnInitApplication.Enabled = true;
            }
            else
            {
                if (propertyStateType == PropertyStateType.Rejected)
                {
                    btnReApply.Enabled = true;
                }
                else
                {
                    stateButtons[(int)propertyStateType].Enabled = true;
                }
            }
        }