Ejemplo n.º 1
0
 private void UpdateOperatorAboutTime()
 {
     if (OperationMethod == 1)
     {
         OperatorAboutTime = OperationArguHour.ToString("D2") + ":" + OperationArguMinute.ToString("D2");
     }
     else if (OperationMethod == 2)
     {
         OperatorAboutTime = "日落偏移:" + OperationArguOffset;
     }
     else if (OperationMethod == 11)
     {
         OperatorAboutTime = LightStartEffectHour.ToString("D2") + ":" + LightStartEffectMinute.ToString("D2") +
                             " - "
                             + LightEndEffectHour.ToString("D2") + ":" + LightEndEffectMinute.ToString("D2");
     }
     else if (OperationMethod == 12)
     {
         OperatorAboutTime = "日出偏移:" + OperationArguOffset;
     }
     else
     {
         OperatorAboutTime = "--";
     }
 }
Ejemplo n.º 2
0
        private void UpdateOperatorAboutTime()
        {
            //this.OperationMethod = info.OperationMethod;
            //if (info.OperationMethod == 1)
            //{
            //    this.OperationArguHour = info.OperationArgu / 60;
            //    this.OperationArguMinute = info.OperationArgu % 60;
            //}
            //if (info.OperationMethod == 2)
            //{
            //    this.OperationArguOffset = info.OperationArgu;
            //}
            //if (info.OperationMethod == 11)
            //{
            //    this.OperationArguLight = info.OperationArgu;
            //}

            //this.OperationOrder = info.OperationOrder + 1;
            //this.LightEndEffectHour = info.LightEndEffect / 60;
            //this.LightEndEffectMinute = info.LightEndEffect % 60;

            //this.LightStartEffectHour = info.LightStartEffect / 60;
            //this.LightStartEffectMinute = info.LightStartEffect % 60;

            if (OperationMethod == 1)
            {
                OperatorAboutTime = OperationArguHour.ToString("D2") + ":" + OperationArguMinute.ToString("D2");
            }
            else if (OperationMethod == 2)
            {
                OperatorAboutTime = "日落偏移:" + OperationArguOffset;
            }
            else if (OperationMethod == 11)
            {
                OperatorAboutTime = LightStartEffectHour.ToString("D2") + ":" + LightStartEffectMinute.ToString("D2") +
                                    " - "
                                    + LightEndEffectHour.ToString("D2") + ":" + LightEndEffectMinute.ToString("D2");
            }
            else if (OperationMethod == 12)
            {
                OperatorAboutTime = "日出偏移:" + OperationArguOffset;
            }
            else
            {
                OperatorAboutTime = "--";
            }
        }