public DictationEmail() { InitializeComponent(); _tbCtrl = TbDictation; _voiceToText = new VoiceToText(); _emailOperations = new EmailOperations(); _chemOperations = new ChemOperations(); _fullResponces = string.Empty; _partialResponces = string.Empty; _commandMode = false; }
} //list of skill operations internal void ClearOperations() { //Operations EmailOperations = new EmailOperations(); var chemOperations = new ChemOperations(); var unitConverterOperations = new UnitConverterOperations(); Operations = new List <IOperation> { EmailOperations, chemOperations, unitConverterOperations }; }
public DictationEmail(bool record) { _commandMode = false; InitializeComponent(); _voiceToText = new VoiceToText(); _emailOperations = new EmailOperations(); _chemOperations = new ChemOperations(); _fullResponces = string.Empty; _partialResponces = string.Empty; _tbCtrl = TbEmailAddress; //begin recording immediately if (record) { StartRecording(); } }
internal SkillBuilder() { //Operations var chemOperations = new ChemOperations(); EmailOperations = new EmailOperations(chemOperations); var unitConverterOperations = new UnitConverterOperations(); //Lab Skills var getCompound = new SkillTemplate { Id = "compoundSkill", OperationIds = new List <string> { "Get_Compound" }, SkillIds = new List <string>() }; var getMolarity = new SkillTemplate { Id = "molaritySkill", OperationIds = new List <string> { "Get_Molarity" }, SkillIds = new List <string>() }; var getVolume = new SkillTemplate { Id = "volumeSkill", OperationIds = new List <string> { "Get_Volume" }, SkillIds = new List <string>() }; var getWeight = new SkillTemplate { Id = "weightSkill", OperationIds = new List <string> { "Get_Weight" }, SkillIds = new List <string>() }; var getMobilePhase = new SkillTemplate { Id = "mobilePhaseSkill", OperationIds = new List <string> { "Get_MobilePhase" }, SkillIds = new List <string>() }; var convertUnits = new SkillTemplate { Id = "conversionSkill", OperationIds = new List <string> { "Convert_Units" }, SkillIds = new List <string>() }; var sendEmail = new SkillTemplate { Id = "emailSkill", OperationIds = new List <string> { "Send_Email" }, SkillIds = new List <string>() }; //add to interfaces Operations = new List <IOperation> { EmailOperations, chemOperations, unitConverterOperations }; Skills = new List <SkillTemplate> { getCompound, getMolarity, getVolume, getWeight, getMobilePhase, convertUnits, sendEmail }; FillSkillLists(); }