| | |
| | | |
| | | namespace Bro.M071.Process |
| | | { |
| | | public class KeyLocation : IComplexDisplay |
| | | { |
| | | [Category("键名配置")] |
| | | [Description("单键键名")] |
| | | [TypeConverter(typeof(KeyNameDictConverter))] |
| | | public string Key { get; set; } |
| | | |
| | | [Category("位置配置")] |
| | | [Description("单键在键盘平面图上的位置显示")] |
| | | public Rectangle KeyRect { get; set; } = new Rectangle(); |
| | | |
| | | [Category("位置配置")] |
| | | [Description("单键之后间隙位置")] |
| | | public Rectangle IntervalRect { get; set; } = new Rectangle(); |
| | | |
| | | public string GetDisplayText() |
| | | { |
| | | return $"{Key}:{KeyRect.X},{KeyRect.Y},{KeyRect.Width},{KeyRect.Height}"; |
| | | } |
| | | } |
| | | |
| | | |
| | | public class KeyAlgorithem : IComplexDisplay |
| | | { |
| | | [Browsable(false)] |
| | |
| | | |
| | | #region 显示 |
| | | [Browsable(false)] |
| | | public Rectangle DisplayLocation { get; set; } = new Rectangle(); |
| | | public Rectangle DisplayLocation { get; set; } = new Rectangle(10, 10, 100, 100); |
| | | #endregion |
| | | |
| | | #region 检测结果 |
| | |
| | | if (valuePairs == null || valuePairs.Count == 0) |
| | | { |
| | | IsDone = false; |
| | | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("IsDone")); |
| | | return; |
| | | } |
| | | |
| | | foreach (KeyValuePair<string, double> pair in valuePairs) |