Пример #1
0
        private void btnUpdateChannelList_Click(object sender, EventArgs e)
        {
            //
            // Update the list of channels.
            //
            string strError;

            btnUpdateChannelList.Enabled = false;
            try
            {
                Cursor   = Cursors.WaitCursor;
                strError = Channels.GetChannelRecords(false, Globals.strServiceCodes);
            }
            finally
            {
                Cursor = Cursors.Default;
            }
            btnUpdateChannelList.Enabled = true;
            if (string.IsNullOrEmpty(strError))
            {
                SetRMSList();
                MessageBox.Show("The channel update completed successfully");
            }
            else
            {
                MessageBox.Show(strError);
            }
        }