GifRecorder/Controls/NoDoubleClickTreeView.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Drawing;
using System.Windows.Documents;
using System.Windows.Forms;
using ScreenToGif.Properties;
namespace ScreenToGif.Controls
{
/// <summary>
/// We use this TreeView instead of delivered one,
/// because the last has a bug with double click event.
/// </summary>
/// <example>
/// http://social.msdn.microsoft.com/Forums/windows/en-US/9d717ce0-ec6b-4758-a357-6bb55591f956/possible-bug-in-net-treeview-treenode-checked-state-inconsistent?forum=winforms
/// </example>
public class NoDoubleClickTreeView : TreeView
{
#region Properties
private bool _shift = false;
private int _first = -1;
private int _last = -1;
/// <summary>
/// True if the Shift key is pressed.
/// </summary>
public bool Shift
{
get { return _shift; }
set { _shift = value; }
}
/// <summary>
/// The first frame checked.
/// </summary>
public int First
{
get { return _first; }
set { _first = value; }
}
/// <summary>
/// The last frame checked.
/// </summary>
public int Last
{
get { return _last; }
set { _last = value; }
}
#endregion
/// <summary>
/// Update the list of frames on the TreeView control
/// </summary>
/// <param name="frameCount">Total number of frames, should not be 0</param>
/// <param name="parentNodeLabel">Label that will be displayed on the parent node</param>
public void UpdateListFrames(int frameCount, string parentNodeLabel)
{
后面还有 220 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
