You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
979 B
C#
27 lines
979 B
C#
using Mesnac.Action.Base;
|
|
using Mesnac.Controls.Default.GCTS;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.ProjectDebug
|
|
{
|
|
class OpenProjectDebug : ChemicalWeighingAction, IAction
|
|
{
|
|
public void Run(RuntimeParameter runtime)
|
|
{
|
|
base.RunIni(runtime); //必须要调用
|
|
ProjectDebugState_GCTS CurrentSB2 = runtime.Sender as ProjectDebugState_GCTS;
|
|
string _sbvNumber = CurrentSB2.Name;
|
|
ICSharpCode.Core.LoggingService<DJF_DebugAction>.Debug(_sbvNumber + "器件状态设置");
|
|
FrmProjectDebug frmProjectDebug = new FrmProjectDebug();
|
|
frmProjectDebug.FormText = "工程调试";
|
|
frmProjectDebug.PlcName = CurrentSB2.StatusName;
|
|
frmProjectDebug.PlcValue = CurrentSB2.Status.ToString();
|
|
frmProjectDebug.ShowDialog();
|
|
}
|
|
}
|
|
}
|