Inheritance: BaseContent
Beispiel #1
0
        public bool StartRecording(Media ppt, Event e, PoiService ps)
        {
            //media = ppt;
            //service = ps;
            //pptEvent = e;
            if (Active) return false;
            //_stream = new MemoryStream();
            //_stream.Seek(0, SeekOrigin.Begin);
            //_microphone = Microphone.Default;
            //_microphone.BufferReady -= microphone_BufferReady;
            //_microphone.BufferReady += microphone_BufferReady;

            //_microphone.BufferDuration = TimeSpan.FromMilliseconds(300);
            //_buffer = new byte[_microphone.GetSampleSizeInBytes(_microphone.BufferDuration)];


            //_microphone.Start();
            return true;
        }
Beispiel #2
0
        public Event Clone()
        {
            Event e = new Event();
            e.ContentId = e.ContentId;
            e.PoiTypeId = e.PoiTypeId;
            e.PoiType = e;
            e.Style = Style.Clone() as PoIStyle;
            
            e.Labels = new Dictionary<string, string>();
            foreach (var lk in Labels)
            {
                e.Labels[lk.Key] = lk.Value;
            }
            

            return e;
        }
Beispiel #3
0
 public void AddEvent(Event eventType)
 {
     if (eventType == null) return;
     var e = new Event
     {
         Name = eventType.Name,
         PoiTypeId = eventType.ContentId,
         Date = DateTime.Now,
         Position = PoI.Position,
         PoiType = eventType,
         PoiId = PoI.Id,
         Icon = eventType.Icon
     };
     Layer.Service.Events.Add(e);
     NotifyOfPropertyChange(() => PoiEvents);
 }