/// <summary>
		/// Creates a new trackview clicked event
		/// </summary>
		/// <param name="time">Time of the cusor</param>
		/// <param name="track">Track clicked on</param>
		/// <param name="clip">Any clip under the cursor</param>
		/// <param name="location">Mouse location</param>
		public TrackViewClickEventArgs(TimeSpan time, Track track, Clip clip, Point location)
		{
			this.time = time;
			this.track = track;
			this.clip = clip;
			this.location = location;
		}
Exemple #2
0
		private void PaintClip(Clip clip, int trackHeight, Graphics g)
		{
			Brush clipForegroundBrush = new SolidBrush(clip.ForeColor);
			var clipForegroundPen = new Pen(clip.ForeColor);
			var clipRectangle = new Rectangle(0, 0, TimeToX(clip.Duration), trackHeight);
			g.FillRectangle(new SolidBrush(clip.BackColor), clipRectangle);
			g.DrawRectangle(clipForegroundPen, clipRectangle);
			g.DrawString(clip.Name, Font, clipForegroundBrush, new PointF(1, 1));
		}