示例#1
0
        private void btnUnLink_Click(object sender, EventArgs e)
        {
            string strPostData = "";
            string strResponse = "";

            // Scroll through datagridview and perform ulink on each selected rows
            foreach (DataGridViewRow item in dgvAppList.SelectedRows)
            {
                EikonApp myApp = (EikonApp)item.DataBoundItem;

                strResponse = eikon.BroadcastApp(linkMethod.STOPBROADCAST, myApp, out strPostData);

                txbPostData.Text = strPostData;
                txbResponse.Text = strResponse;
            }

            bndEikonApps.ResetBindings(false);
        }
示例#2
0
        private void btnLink_Click(object sender, EventArgs e)
        {
            string strPostData = "";
            string strResponse = "";

            // Scroll through datagridview and perform link on each selected rows
            foreach (DataGridViewRow item in dgvAppList.SelectedRows)
            {
                EikonApp myApp = (EikonApp)item.DataBoundItem;

                strResponse = eikon.BroadcastApp(linkMethod.BROADCAST, myApp, out strPostData);

                txbPostData.Text = strPostData;
                txbResponse.Text = strResponse;
            }

            bndEikonApps.ResetBindings(false);

            // Enable  New Ric Broadcast button, as we assume when user click this Link button , he does set Broadcast at least 1 time
            btnModifyContext.Enabled = true;
        }