|
@@ -27,13 +27,13 @@ namespace SCADA_DAQ.Plugin.Qilin.Uct.AccessInformation
|
|
|
{
|
|
|
InitializeComponent();
|
|
|
Img_Access.Source = SCADA.CommonCtrl.WpfHelper.VisualHelper.ImageToImageSource(@"Content\Img\Access.png");
|
|
|
- //var accessFirstStringArray = new List<string>() { "夹板1", "夹板2", "夹板3" };
|
|
|
- //var accessScendStringArray = new List<string>() { "供轮1", "供轮2", "供轮3" };
|
|
|
+ var accessFirstStringArray = new List<string>() { "夹板1", "夹板2", "夹板3" };
|
|
|
+ var accessScendStringArray = new List<string>() { "供轮1", "供轮2", "供轮3" };
|
|
|
var firstReg = new string[] { };
|
|
|
var secondReg = new string[] { };
|
|
|
for (int i = 0; i < 3; i++)
|
|
|
{
|
|
|
- var basicInformation = new UctRegButtonTitleUnit() { FontSize = 20 };
|
|
|
+ var basicInformation = new UctButtonControl() { FontSize = 20 ,Width=180,Height=50,Title= accessFirstStringArray[i] };
|
|
|
basicInformation.DataContext = Omron.GetListenReg($"CIO304.{1 + i}");
|
|
|
var colunm = i % 3;
|
|
|
Grid.SetColumn(basicInformation, colunm);
|
|
@@ -41,7 +41,7 @@ namespace SCADA_DAQ.Plugin.Qilin.Uct.AccessInformation
|
|
|
}
|
|
|
for (int i = 0; i < 3; i++)
|
|
|
{
|
|
|
- var basicInformation = new UctRegButtonTitleUnit() { FontSize = 20 };
|
|
|
+ var basicInformation = new UctButtonControl() { FontSize = 20, Width = 180, Height = 50,Title= accessScendStringArray[i] };
|
|
|
basicInformation.DataContext = Omron.GetListenReg($"CIO305.{1 + i}");
|
|
|
var colunm = i % 3;
|
|
|
Grid.SetColumn(basicInformation, colunm);
|