private void BranchView_CellHovered(object sender, InputRoll.CellEventArgs e) { if (e.NewCell != null && e.NewCell.RowIndex.HasValue && e.NewCell.Column != null && e.NewCell.RowIndex < Movie.BranchCount) { if (BranchView.CurrentCell.Column.Name == BranchNumberColumnName && BranchView.CurrentCell.RowIndex.HasValue && BranchView.CurrentCell.RowIndex < Movie.BranchCount) { TasBranch branch = GetBranch(BranchView.CurrentCell.RowIndex.Value); int width = Tastudio.VideoProvider.BufferWidth; int height = Tastudio.VideoProvider.BufferHeight; Screenshot.UpdateValues(branch, width, height, (int)Graphics.FromHwnd(this.Handle).MeasureString( branch.UserText, Screenshot.Font, width).Height); Point location = Location; location.Offset(-Screenshot.Width, 0); ScreenshotTooltip.Show(" ", this, location); } else { ScreenshotTooltip.Hide(this); } } else { ScreenshotTooltip.Hide(this); } }
private void BranchView_MouseLeave(object sender, EventArgs e) { ScreenshotTooltip.Hide(this); }