private void StopFlowButton_Click(object sender, EventArgs e) { FlowEnvironment flow = sender as FlowEnvironment; if (flow == null) { return; } flow.Stop(); }
public void Unload(FlowEnvironment flow) { Log.Debug("Unloading {0}", flow.File.Name); try { flow.Stop(); Log.Info("Unloaded {0}", flow.File.Name); } catch (Exception e) { OnNotification(new FlowTomatorNotification(LogVerbosity.Error, "Failed to unload the specified flow : " + flow.File.Name + ". " + e.Message)); } Flows.Remove(flow); }
private void RemoveFlowButton_Click(object sender, EventArgs e) { FlowEnvironment flow = sender as FlowEnvironment; if (flow == null) { return; } if (flow.Running) { flow.Stop(); } Service.Unload(flow); }