private void RefreshAppListBox() { ws.Emulator emulator = new ws.Emulator(); string[] Apps = emulator.GetApplicationList(); lbApplications.Items.AddRange(Apps); lbApplications.SelectedIndex = 0; }
private void Run() { txtDebug.Text = "Executing code server-side.. please wait"; try { this.Cursor = Cursors.WaitCursor; btnRun.Enabled = false; ws.Emulator emulator = new ws.Emulator(); string ApplicationName = lbApplications.SelectedItem.ToString(); ws.ExecutionResponse Response = emulator.RunApplication(ApplicationName); DoAction(Response.YogoAction); txtDebug.Text = Response.DebugText; } catch (Exception ex) { txtDebug.Text = "web service error:" + Environment.NewLine + ex.ToString(); } btnRun.Enabled = true; this.Cursor = Cursors.Default; }