Esempio n. 1
0
 private void trackBarTimeline_ValueChanged(object sender, EventArgs e)
 {
     if (this._fileList.Count != 0)
     {
         CapturePacket cp = new CapturePacket();
         //cp.Load(this._fileList.Dequeue().FullName);
         //cp.ReadDecoded(this._fileList.Dequeue().FullName);
         cp.ReadDecoded(this._fileList[this.trackBarTimeline.Value].FullName);
         //this._fileList.RemoveAt(0);
         string s = HookEventHelper.StreamToString(cp.Log);
         if (s != "")
         {
             if (this.eraseEventLogToolStripMenuItem.Checked)
             {
                 this.textLog.Text = (s + Environment.NewLine);
             }
             else
             {
                 this.textLog.AppendText(s + Environment.NewLine);
             }
         }
         //this.textLog.AppendText(cp.KeyLog.Trim() + Environment.NewLine);
         //this.textLog.AppendText(cp.MouseLog.Trim() + Environment.NewLine);
         if (cp.ScreenShot.Length != 0)
         {
             this.pictureScreen.Image = Image.FromStream(cp.ScreenShot);
         }
     }
 }