예제 #1
0
 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
 public void ExecuteCommand(VFlashCommand command)
 {
     Command = command;
 }