public async Task <List <BpmProcess> > GetProcessesInstance(string Id) { using (var _httpClient = new HttpClient()) { try { var response = await _httpClient.GetAsync(_config["BpmEngine:Address"] + "/engine/api/instancenodes?name=" + Id); if (response.IsSuccessStatusCode) { string result = await response.Content.ReadAsStringAsync(); Proccess Processes = JsonConvert.DeserializeObject <Proccess>(result); return(Processes.processes); } return(null); } catch (Exception) { return(null); } } }
public void NextStage() { switch (mStage) { case Proccess.Title: mStage = Proccess.Instruct; mOrganizer.ShowTestTitle(); break; case Proccess.Instruct: mStage = Proccess.Exercise; mOrganizer.ShowInstruction(); break; case Proccess.Exercise: mStage = Proccess.Instruct2; mTL.SetFormal(false); mTL.StageIteration(); break; case Proccess.Instruct2: mStage = Proccess.Test; mOrganizer.ShowInstruction2(); mTL.mStage = InTestStage.SubTitle; break; case Proccess.Test: mTL.SetFormal(true); mTL.StageIteration(); break; } }
public OkDialog(string message) { InitializeComponent(); _message = message; this.btnOk.Clicked += (sender, arg) => { Proccess.SetResult(true); _popupNavigation.PopAsync(); }; }
public settings() { timer = new Timer(); timer.Tick += Timer_Tick; Launch = new Launch(); //sleep Launch.Sleep = new LaunchSleep(); //time Launch.Timing = new LaunchTiming( ); //http httpGet = new httpGET(); //proccess Proccess = new Proccess(); }
public ConfirmationDialog(string message) { InitializeComponent(); _message = message; OnApearing = () => { this.btnNo.Text = NoButtonText; this.btnYes.Text = YesButtonText; }; this.btnNo.Clicked += (sender, args) => { Proccess.SetResult(false); }; this.btnYes.Clicked += (sender, args) => { Proccess.SetResult(true); }; }
public WatcherToDir() { this.watcher = new FileSystemWatcher(); this.proc = new Proccess(); }
private static ProccessResult InvokeProccess(string arguments) { return(Proccess.InvokeProccess(_PSPATH, arguments)); }