コード例 #1
0
ファイル: VFlashStation.cs プロジェクト: KH8/PlcAgent
 public bool StartFlashing(VFlashCommand command)
 {
     if (ProjectHandle != -1)
     {
         var res = VFlashStationAPI.Start(ProjectHandle, UpdateProgress, UpdateStatusConditioned);
         if (res != VFlashStationResult.Success)
         {
             string errMsg = VFlashStationAPI.GetLastErrorMessage(ProjectHandle);
             _reportErrorDelegate(ChannelId, ProjectHandle, String.Format("Start reprogramming failed ({0}).", errMsg));
             return false;
         }
     }
     return true;
 }
コード例 #2
0
ファイル: VFlashStation.cs プロジェクト: KH8/PlcAgent
 public void ExecuteCommand(VFlashCommand command)
 {
     Command = command;
 }