12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- // Copyright (c) UESTC. All Rights Reserved
- // <author>QC</author>
- // <date>2022/4/14</date>
- namespace Uestc.Auto6.Dso.Core
- {
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using Uestc.Auto6.Dso.ComModel;
- using Uestc.Auto6.Dso.Core.Tools;
- public class WidgetPrsnt
- {
- private static Int32 _Combo = 0;
- public static Int32 Combo
- {
- get => _Combo;
- set
- {
- if (_Combo != value)
- {
- _Combo = value;
- Hardware.HdCmdFactory.Push(ComModel.HdCmd.Combo);
- }
- }
- }
- public static Action<Int32, Int32>? SetMousePosHandler { get; set; }
- public static Action<UInt32, Int32>? MouseEventHandler { get; set; }
- public static Action<Byte, Int32>? KeyboradEventHandler { get; set; }
- //public static void SetColor(ChannelId id, Color color)
- //{
- // ColorConfig.Default[id.ToString()] = color;
- // if (DsoModel.Default.TryGetChannel(id, out var cm))
- // {
- // cm.DrawColor = color;
- // }
- //}
- //public static Color GetColor(ChannelId id)
- //{
- // if (DsoModel.Default.TryGetChannel(id, out var cm))
- // {
- // return cm.DrawColor;
- // }
- // return ColorConfig.Default[id.ToString()];
- //}
- //public static Int32 ColorLength => ColorConfig.Default.Count;
- //public static IReadOnlyCollection<ColorInfo> Colors => ColorConfig.Default.Colors;
- //public static void ResetColor()
- //{
- // ColorConfig.Default.Reset();
- // foreach (var id in ChannelId.GetValues<ChannelId>())
- // {
- // if (DsoModel.Default.TryGetChannel(id, out var cm))
- // {
- // cm.DrawColor = ColorConfig.Default[id.ToString()];
- // }
- // }
- //}
- }
- }
|