Exemplo n.º 1
0
        //This calls the functionality to load all available profiles
        private async void LoadProfiles()
        {
            this.Cursor = Cursors.WaitCursor;

            setValidStream(false);

            projectOxfordSpeaker s  = new projectOxfordSpeaker();
            DataTable            dt = await s.UpdateAllSpeakers();

            dgvProfiles.DataSource = dt;
            if (dt.Rows.Count > 0)
            {
                setValidStream(false);
                btnAddProfile.Enabled    = true;
                btnRemoveProfile.Enabled = true;
                btnRecord1.Enabled       = true;
            }
            else
            {
                btnAddProfile.Enabled    = false;
                btnRemoveProfile.Enabled = false;
                btnRecord1.Enabled       = true;
            }
            this.Cursor = Cursors.Default;
        }
Exemplo n.º 2
0
        private async void frmViewAllProfiles_Load(object sender, EventArgs e)
        {
            //this loads all profiles on the MS server for viewing. Only realy needed for testing
            projectOxfordSpeaker s  = new projectOxfordSpeaker();
            DataTable            dt = await s.UpdateAllSpeakers();

            dataGridView1.DataSource = dt;
        }