Example #1
0
 private void SendGreeting(GreetingType type)
 {
     controler.SendGreeting(type);
     StartGreetingCD();
     ShowGreetingRoot(false);
 }
Example #2
0
        private void Initialize()
        {
            InitializeComponent();

            //if (this.managementClient == null)
                mnuCall.Visible = false;

            GreetingType = GreetingType.SoundGreeting;
            wzdGreeting.PageIndex = 0;

            speechControl.ShowSuggestTextButton = true;
            speechControl.ShowVoiceSelection = true;
            speechControl.TextChanged += new EventHandler(speechControl_TextChanged);
        }
 public IGreetingService Create(GreetingType greetingType)
 {
     return(factory(greetingType));
 }
Example #4
0
        public void LoadGreeting(WOSI.CallButler.Data.CallButlerDataset.LocalizedGreetingsRow greeting, string greetingSoundCache)
        {
            recordingControl.Reset();
            speechControl.SpeechText = "";

            greetingRow = greeting;

            if (greeting != null)
            {
                this.GreetingType = (WOSI.CallButler.Data.GreetingType)greetingRow.Type;

                if (this.GreetingType == GreetingType.TextGreeting)
                {
                    speechControl.SpeechText = greetingRow.Data;
                    speechControl.Voice = greetingRow.Voice;
                }
                else if (this.GreetingType == GreetingType.SoundGreeting)
                {
                    recordingControl.LoadSoundFile(greetingSoundCache + "\\" + greetingRow.LanguageID + "\\" + greetingRow.GreetingID.ToString() + ".snd");
                }
            }
        }
Example #5
0
 public Greetings(string firstName, string lastName, GreetingType greetingType, string emailString)
 {
     FirstName = firstName;
     LastName  = lastName;
     Greeting  = greetingType;
 }