Beispiel #1
0
        void FinishComponentInitialization()
        {
            ActiveControl = InfoLbl;
            StopButt.Text = PauseButtonRunningText;
            BackColor     = GlobalBackColor;

            foreach (var mode in (PowerMode[])Enum.GetValues(typeof(PowerMode)))
            {
                PowerModeMenu.Items.Add(mode.ToString());
            }

            PowerMode normalMode = PowerMode.Normal;

            PowerModeMenu.Text = normalMode.ToString();
            toolTip1.SetToolTip(PowerModeMenu, normalMode.GetEnumDescription());
        }
 public void Update()
 {
     tmp.Data = PowerMode.ToString(modes);
     Result   = tmp;
 }