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