Exemple #1
0
        public void VoiceUpdateAsync(VoiceCallItem voiceCallItem)
        {
            Task   task = new Task(VoiceUpdateAction, voiceCallItem);
            String key  = "UpdateVoiceCallItemRecor:" + voiceCallItem.ProductId.ToString();

            TaskPool.AddToQueue(key, task);
        }
Exemple #2
0
        internal static bool VoiceReadItems(Object obj, SqlDataReader sqlDataReader)
        {
            List <VoiceCallItem> voiceCallItems = obj as List <VoiceCallItem>;
            VoiceCallItem        voiceCallItem  = new VoiceCallItem();

            voiceCallItem.Path      = sqlDataReader.GetString(0); // Name
            voiceCallItem.ProductId = sqlDataReader.GetInt32(1);
            voiceCallItems.Add(voiceCallItem);
            return(true);
        }
        private void SaveTextBoxPath()
        {
            if (voiceUpdate)
            {
                voiceUpdate = false;
                if (currentProductID == -1)
                {
                    return;
                }

                VoiceCallItem voiceCallItemArg = new VoiceCallItem()
                {
                    ProductId = currentProductID, Path = voicePathText
                };

                currentProductID = -1;
                (new DBReader()).VoiceUpdateAsync(voiceCallItemArg);
            }
        }