public CallFlowView()
        {
            InitializeComponent();

            this.HelpRTFText = Properties.Resources.CallFlowHelp;

            // Add our root shape
            CallFlowItem answerCallItem = new CallFlowItem();

            answerCallItem.Title   = CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.CallFlowView_PickUpCall);
            answerCallItem.Caption = CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.CallFlowView_AnswerCall);
            answerCallItem.Width   = 220;
            answerCallItem.Icon    = Properties.Resources.phone_pick_up_24;
            LinkButton btnAnswerSettings = CreateLinkButton(CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.CallFlowView_CallSettings));

            btnAnswerSettings.Click += new EventHandler(btnAnswerSettings_Click);
            answerCallItem.AddActionControl(btnAnswerSettings);

            diagramControl.RootShape = answerCallItem;

            vbData = new WOSI.CallButler.Data.CallButlerDataset();

            UpdateOrientation(Properties.Settings.Default.CallFlowOrientation, false);

            diagramControl.BringToFront();
        }
        public AnsweringMachineForm(WOSI.CallButler.Data.CallButlerDataset dataset, Guid extensionID)
        {
            InitializeComponent();

            voicemailControl.VoicemailDataset = dataset;
            voicemailControl.ExtensionID      = extensionID;

            Utils.PrivateLabelUtils.ReplaceProductNameControl(this);
        }
        public PrebuiltConfigForm()
        {
            greetingValues = new Dictionary<string, WOSI.CallButler.Data.CallButlerDataset.LocalizedGreetingsRow>();

            InitializeComponent();

            cbDataset = new WOSI.CallButler.Data.CallButlerDataset();

            wizMain.PageIndex = 0;

            prebuiltConfigControl.LoadData();

            Utils.PrivateLabelUtils.ReplaceProductNameControl(this);
        }
Example #4
0
        public PrebuiltConfigForm()
        {
            greetingValues = new Dictionary <string, WOSI.CallButler.Data.CallButlerDataset.LocalizedGreetingsRow>();

            InitializeComponent();

            cbDataset = new WOSI.CallButler.Data.CallButlerDataset();

            wizMain.PageIndex = 0;

            prebuiltConfigControl.LoadData();

            Utils.PrivateLabelUtils.ReplaceProductNameControl(this);
        }
Example #5
0
        private DataRow[] GetSelectedGridRows()
        {
            DataGridViewSelectedRowCollection selectedRows = this.dgCalls.SelectedRows;

            WOSI.CallButler.Data.CallButlerDataset ds = new WOSI.CallButler.Data.CallButlerDataset();
            ds.CallHistory.Columns.Add("OriginalIndex", typeof(int));

            foreach (DataGridViewRow row in selectedRows)
            {
                DataRowView rv     = row.DataBoundItem as DataRowView;
                DataRow     newRow = ds.CallHistory.LoadDataRow(rv.Row.ItemArray, true);
                newRow["OriginalIndex"] = row.Index;
            }

            DataRow[] rows = SelectProperGridRows(ds.CallHistory);

            return(rows);
        }
        public static void EditLocalizedGreeting(WOSI.CallButler.Data.CallButlerDataset greetingsData, Guid greetingID, string languageID, string suggestedText)
        {
            global::Controls.LoadingDialog.ShowDialog(null, CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.GreetingUtils_SavingSounds), Properties.Resources.loading, false, 1000);

            WOSI.CallButler.Data.CallButlerDataset.LocalizedGreetingsDataTable localizedGreetings = ManagementInterfaceClient.ManagementInterface.GetLocalizedGreeting(ManagementInterfaceClient.AuthInfo, greetingID, languageID);
            WOSI.CallButler.Data.CallButlerDataset.LocalizedGreetingsRow       localizedGreeting;

            // If the localized greeting doesn't exist, create one
            if (localizedGreetings.Count > 0)
            {
                localizedGreeting = localizedGreetings[0];
            }
            else
            {
                localizedGreeting                     = localizedGreetings.NewLocalizedGreetingsRow();
                localizedGreeting.GreetingID          = greetingID;
                localizedGreeting.LocalizedGreetingID = Guid.NewGuid();
                localizedGreeting.LanguageID          = languageID;
                localizedGreeting.Type                = (short)WOSI.CallButler.Data.GreetingType.TextGreeting;

                localizedGreetings.AddLocalizedGreetingsRow(localizedGreeting);
            }

            // Download our localized greeting sound
            GetLocalizedGreetingSound(localizedGreeting);

            Forms.GreetingForm greetingForm = new CallButler.Manager.Forms.GreetingForm();
            greetingForm.SuggestedText = suggestedText;
            greetingForm.GreetingControl.LoadGreeting(localizedGreeting, WOSI.Utilities.FileUtils.GetApplicationRelativePath(Properties.Settings.Default.GreetingsSoundCache));

            if (greetingForm.ShowDialog() == DialogResult.OK)
            {
                greetingForm.GreetingControl.SaveGreeting(WOSI.Utilities.FileUtils.GetApplicationRelativePath(Properties.Settings.Default.GreetingsSoundCache));

                // Save our greeting remotely
                ManagementInterfaceClient.ManagementInterface.PersistLocalizedGreeting(ManagementInterfaceClient.AuthInfo, localizedGreetings);

                // Upload our greeting file
                PersistLocalizedGreetingSound(localizedGreeting);
            }

            global::Controls.LoadingDialog.HideDialog();
        }
        private void LoadProviderConfiguration(string filename)
        {
            WOSI.CallButler.Data.CallButlerDataset cbds = new WOSI.CallButler.Data.CallButlerDataset();

            try
            {
                cbds.ReadXml(filename);
            }
            catch
            {
                MessageBox.Show(this, CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.Configruation_UnableToLoad), "", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            ManagementInterfaceClient.ManagementInterface.PersistProviders(ManagementInterfaceClient.AuthInfo, cbds.Providers);

            LoadViewControl(new ProvidersView());

            MessageBox.Show(this, CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.Configruation_ProviderSettingsLoaded), "", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
        private void LoadProviderConfiguration(string filename)
        {
            WOSI.CallButler.Data.CallButlerDataset cbds = new WOSI.CallButler.Data.CallButlerDataset();

            try
            {
                cbds.ReadXml(filename);
            }
            catch
            {
                MessageBox.Show(this, CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.Configruation_UnableToLoad), "", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            ManagementInterfaceClient.ManagementInterface.PersistProviders(ManagementInterfaceClient.AuthInfo, cbds.Providers);

            LoadViewControl(new ProvidersView());

            MessageBox.Show(this, CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.Configruation_ProviderSettingsLoaded), "", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Example #9
0
        private DataRow[] GetSelectedGridRows()
        {
            DataGridViewSelectedRowCollection selectedRows = this.dgCalls.SelectedRows;

            WOSI.CallButler.Data.CallButlerDataset ds = new WOSI.CallButler.Data.CallButlerDataset();
            ds.CallHistory.Columns.Add("OriginalIndex", typeof(int));

            foreach (DataGridViewRow row in selectedRows)
            {
                DataRowView rv = row.DataBoundItem as DataRowView;
                DataRow newRow = ds.CallHistory.LoadDataRow(rv.Row.ItemArray, true);
                newRow["OriginalIndex"] = row.Index;
            }

            DataRow[] rows = SelectProperGridRows(ds.CallHistory);

            return rows;
        }
        public DepartmentForm(WOSI.CallButler.Data.CallButlerDataset.DepartmentsRow departmentRow, WOSI.CallButler.Data.CallButlerDataset data)
        {
            this.departmentRow = departmentRow;

            InitializeComponent();

            PopulateAddonModuleList();

            this.callButlerDataset = data;
            bsMailboxes.DataSource = this.callButlerDataset;

            wizard.PageIndex = 0;
            wzdDepartmentDetails.PageIndex = 0;
            numOptionNumber.Value          = departmentRow.OptionNumber;
            txtDepartmentName.Select();
            txtDepartmentName.Text = departmentRow.Name;

            switch ((WOSI.CallButler.Data.DepartmentTypes)departmentRow.Type)
            {
            case WOSI.CallButler.Data.DepartmentTypes.Greeting:
                rbPlayMessage.Checked = true;

                break;

            case WOSI.CallButler.Data.DepartmentTypes.Extension:
                rbTransferExtension.Checked = true;
                break;

            case WOSI.CallButler.Data.DepartmentTypes.Number:
                rbTransferNumber.Checked = true;

                txtTelephoneNumber.Text = departmentRow.Data1;

                break;

            case WOSI.CallButler.Data.DepartmentTypes.Script:
                rbScript.Checked = true;

                txtScriptFile.Text = departmentRow.Data1;

                break;

            case WOSI.CallButler.Data.DepartmentTypes.Module:
                rbAddon.Checked = true;

                SelectAddonModule(departmentRow.Data1);

                break;
            }

            UpdateDepartmentTypeView();

            rbTransferNumber.Visible = true;
            rbScript.Visible         = true;
            lblScript.Visible        = true;
            btnImportOutlook.Enabled = Utilities.ContactManagement.ContactManagerFactory.CreateContactManager(Utilities.ContactManagement.ContactType.Outlook).IsInstalled;

            lblNumberDescription.Text = ManagementInterfaceClient.ManagementInterface.TelephoneNumberDescription;
            lblNumber.Text           += lblNumberDescription.Text;

            Utils.PrivateLabelUtils.ReplaceProductNameControl(this);
        }
Example #11
0
        public CallFlowView()
        {
            InitializeComponent();

            this.HelpRTFText = Properties.Resources.CallFlowHelp;

            // Add our root shape
            CallFlowItem answerCallItem = new CallFlowItem();
            answerCallItem.Title = CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.CallFlowView_PickUpCall);
            answerCallItem.Caption = CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.CallFlowView_AnswerCall);
            answerCallItem.Width = 220;
            answerCallItem.Icon = Properties.Resources.phone_pick_up_24;
            LinkButton btnAnswerSettings = CreateLinkButton(CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.CallFlowView_CallSettings));
            btnAnswerSettings.Click += new EventHandler(btnAnswerSettings_Click);
            answerCallItem.AddActionControl(btnAnswerSettings);

            diagramControl.RootShape = answerCallItem;

            vbData = new WOSI.CallButler.Data.CallButlerDataset();

            UpdateOrientation(Properties.Settings.Default.CallFlowOrientation, false);

            diagramControl.BringToFront();
        }