Exemplo n.º 1
0
        protected void btnDisconnect_Click(object sender, EventArgs e)
        {
            Button btn             = (Button)sender;
            string commandName     = btn.CommandName;
            string commandArgument = btn.CommandArgument;


            pnlDisconnect.Visible        = false;
            pnlDisconnectConfirm.Visible = false;

            if (commandName == "DISCONNECT")
            {
                pnlDisconnectConfirm.Visible = true;
            }
            else if (commandName == "CONFIRM")
            {
                BllProxyIncidentHelper.SetIncidentStatus(this.incidentId, 3);   // 3:Canceled
                BllProxyIncidentState.DeleteIncidentState(this.incidentId);

                UcControlArgs args = new UcControlArgs();
                goNext(args);
            }
            else if (commandName == "CANCEL")
            {
                pnlDisconnect.Visible = true;
            }
            else
            {
                pnlDisconnect.Visible = true;
            }


            //UpdatePanel1.Update();
        }
        protected void btnDisconnect_Click(object sender, EventArgs e)
        {
            Button btn             = (Button)sender;
            string commandName     = btn.CommandName;
            string commandArgument = btn.CommandArgument;

            if (commandName == "DISCONNECT")
            {
                BllProxyIncidentHelper.SetIncidentStatus(this.incidentId, 3);   // 3:Canceled
                BllProxyIncidentState.DeleteIncidentState(this.incidentId);

                FinishConference();
            }
        }