private void buttonReview_Click(object sender, EventArgs e)
 {
     if (mDXSound == null)
     {
         mDXSound = new DXSound(this);
     }
     mDXSound.StartPlaying(mDXSound.CapturedStream);
 }
 public void StartRecording()
 {
     if(mDXSound==null) mDXSound = new DXSound(this);
     mDXSound.StartRecording(0);
     buttonStop.Visible = true;
     layoutReviewButtons.Visible = false;
     layoutReviewButtons.Enabled = false;
 }
 private void buttonCancel_Click(object sender, EventArgs e)
 {
     if (mDXSound == null)
     {
         mDXSound = new DXSound(this);
     }
     mDXSound.StopPlaying();
     OnRecordingCanceled(sender, e);
 }
 public void StartRecording()
 {
     if (mDXSound == null)
     {
         mDXSound = new DXSound(this);
     }
     mDXSound.StartRecording(0);
     buttonStop.Visible          = true;
     layoutReviewButtons.Visible = false;
     layoutReviewButtons.Enabled = false;
 }
示例#5
0
        public void StartPlayingMessage(NMessage message)
        {
            if (mDXSound == null)
            {
                mDXSound = new DXSound(this);
            }
            NMessage tmpMessage = mStorage.GetMessage(message);

            if (tmpMessage == null || tmpMessage.Body.AttachementBodys.Count == 0)
            {
                return;
            }
            MemoryStream memoryStream = new MemoryStream(tmpMessage.Body.AttachementBodys[0].Data);

            mDXSound.StartPlaying(mCodec.Decode(memoryStream));
        }
 public NikotalkieControl()
 {
     InitializeComponent();
     InitBackgroundWorker();
     mDXSound = new DXSound(this);
 }
 private void buttonCancel_Click(object sender, EventArgs e)
 {
     if (mDXSound == null) mDXSound = new DXSound(this);
     mDXSound.StopPlaying();
     OnRecordingCanceled(sender, e);
 }
 private void buttonReview_Click(object sender, EventArgs e)
 {
     if (mDXSound == null) mDXSound = new DXSound(this);
     mDXSound.StartPlaying(mDXSound.CapturedStream);
 }
 public NikotalkieControl()
 {
     InitializeComponent();
     InitBackgroundWorker();
     mDXSound = new DXSound(this);
 }
示例#10
0
 public void StartPlayingMessage(NMessage message)
 {
    if(mDXSound==null) mDXSound = new DXSound(this);
     NMessage tmpMessage = mStorage.GetMessage(message);
     if (tmpMessage == null || tmpMessage.Body.AttachementBodys.Count == 0) return;
     MemoryStream memoryStream = new MemoryStream(tmpMessage.Body.AttachementBodys[0].Data);
     mDXSound.StartPlaying(mCodec.Decode(memoryStream));
 }
 public NikotalkieRecordingView()
 {
     this.Dock = DockStyle.Fill;
     InitializeComponent();
     mDXSound = new DXSound(this);
 }
 public NikotalkieRecordingView()
 {
     this.Dock = DockStyle.Fill;
     InitializeComponent();
     mDXSound = new DXSound(this);
 }