Exemple #1
0
        public void LoadData(WOSI.CallButler.Data.CallButlerDataset.ExtensionsDataTable extensions, CallButlerDataset.ExtensionsRow extension, CallButlerDataset.ExtensionContactNumbersDataTable extensionContactTable)
        {
            this.extensions       = extensions;
            this.extension        = extension;
            ExtensionContactTable = extensionContactTable;

            pnlFlow.Controls.Clear();

            // Create our voicemail shape
            VoicemailDiagramShape vds = new VoicemailDiagramShape();

            vds.Dock = DockStyle.Top;
            pnlFlow.Controls.Add(vds);

            WOSI.CallButler.Data.CallButlerDataset.ExtensionContactNumbersRow[] contactRows = (WOSI.CallButler.Data.CallButlerDataset.ExtensionContactNumbersRow[])ExtensionContactTable.Select("ExtensionID = '" + extension.ExtensionID + "'", "Priority ASC");

            foreach (WOSI.CallButler.Data.CallButlerDataset.ExtensionContactNumbersRow contactRow in contactRows)
            {
                AddContactControl(extensions, contactRow, false);
            }

            cbCallBlast.Checked = extension.UseCallBlast;

            UpdateCallBlast();
        }
        public void LoadData(WOSI.CallButler.Data.CallButlerDataset.ExtensionsDataTable extensions, CallButlerDataset.ExtensionsRow extension, CallButlerDataset.ExtensionContactNumbersDataTable extensionContactTable)
        {
            this.extensions = extensions;
            this.extension = extension;
            ExtensionContactTable = extensionContactTable;

            pnlFlow.Controls.Clear();

            // Create our voicemail shape
            VoicemailDiagramShape vds = new VoicemailDiagramShape();
            vds.Dock = DockStyle.Top;
            pnlFlow.Controls.Add(vds);

            WOSI.CallButler.Data.CallButlerDataset.ExtensionContactNumbersRow[] contactRows = (WOSI.CallButler.Data.CallButlerDataset.ExtensionContactNumbersRow[])ExtensionContactTable.Select("ExtensionID = '" + extension.ExtensionID + "'", "Priority ASC");

            foreach (WOSI.CallButler.Data.CallButlerDataset.ExtensionContactNumbersRow contactRow in contactRows)
            {
                AddContactControl(extensions, contactRow, false);
            }

            cbCallBlast.Checked = extension.UseCallBlast;

            UpdateCallBlast();
        }