protected override void OnStart(string[] args) { try { //--- start our components _assisetent = new WBXEngine.Manager.Assistant(); _assisetent.Start(); } catch (Exception ex) { } }
private void btnStart_Click(object sender, EventArgs e) { try { ButtonsEnabled = false; if (_assisentent == null) { _assisentent = new WBXEngine.Manager.Assistant(); } _assisentent.Start(); }catch (Exception ex) { MessageBox.Show(ex.Message); } ToggleButtons(true); }