|
|
@ -28,7 +28,8 @@ namespace Rs.Controls
|
|
|
|
NotHave,
|
|
|
|
NotHave,
|
|
|
|
Ok,
|
|
|
|
Ok,
|
|
|
|
Ng,
|
|
|
|
Ng,
|
|
|
|
Disable
|
|
|
|
Disable,
|
|
|
|
|
|
|
|
Null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public partial class RsTray : UserControl
|
|
|
|
public partial class RsTray : UserControl
|
|
|
@ -271,6 +272,14 @@ namespace Rs.Controls
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void ChangeStatus(ESlotStatus status)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
foreach (KeyValuePair<int, TraySlot> kv in traySlotsDic)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ChangeStatus(kv.Value.Index,status);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void ChangeStatus(int index, ESlotStatus status)
|
|
|
|
public void ChangeStatus(int index, ESlotStatus status)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (traySlotsDic.ContainsKey(index))
|
|
|
|
if (traySlotsDic.ContainsKey(index))
|
|
|
@ -534,15 +543,25 @@ namespace Rs.Controls
|
|
|
|
case ESlotStatus.Disable:
|
|
|
|
case ESlotStatus.Disable:
|
|
|
|
g.FillRectangle(new SolidBrush(Color.Gray), Bound.X, Bound.Y, Bound.Width - 1, Bound.Height - 1);
|
|
|
|
g.FillRectangle(new SolidBrush(Color.Gray), Bound.X, Bound.Y, Bound.Width - 1, Bound.Height - 1);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ESlotStatus.Null:
|
|
|
|
|
|
|
|
g.FillRectangle(new SolidBrush(Color.FromArgb(11, 16, 36)), Bound.X, Bound.Y, Bound.Width - 1, Bound.Height - 1);
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(SlotStatus!= ESlotStatus.Null)
|
|
|
|
|
|
|
|
{
|
|
|
|
g.DrawRectangle(Pens.White, Bound.X, Bound.Y, Bound.Width, Bound.Height);
|
|
|
|
g.DrawRectangle(Pens.White, Bound.X, Bound.Y, Bound.Width, Bound.Height);
|
|
|
|
if (isShowText)
|
|
|
|
if (isShowText)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
g.DrawString(Index.ToString(), new Font("宋体", 8), new SolidBrush(Color.Yellow), _Bound, sf);
|
|
|
|
g.DrawString(Index.ToString(), new Font("宋体", 8), new SolidBrush(Color.Yellow), _Bound, sf);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
g.DrawRectangle(new Pen(new SolidBrush(Color.FromArgb(11, 16, 36))), Bound.X, Bound.Y, Bound.Width, Bound.Height);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|