예제 #1
0
        private void RefreshAppListBox()
        {
            ws.Emulator emulator = new ws.Emulator();
            string[] Apps = emulator.GetApplicationList();

            lbApplications.Items.AddRange(Apps);

            lbApplications.SelectedIndex = 0;
        }
예제 #2
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;
        }