src/Core/Controls/XRails_Panel.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/* XRails_Panel.cs
** Copyright (C) 2018, Jad Altahan
**
** This software may be modified and
** distributed under the terms of the
** MIT license. See the LICENSE file
** for details.
**
** http://github.com/xv
** mailto:xviyy@aol.com
*/
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System;
namespace XRails.Controls
{
public class XRails_Panel : Panel
{
private readonly string leftSideColor = "#F25D59";
private readonly string rightSideColor = "#292C3D";
public enum PanelSide
{
Left,
Right
}
#region Properties
[Browsable(false)]
[Description("The background color of the component.")]
public override Color BackColor { get; set; }
private PanelSide _Side = PanelSide.Left;
public PanelSide Side
{
get { return _Side; }
set
{
_Side = value;
if (_Side == PanelSide.Left)
BackColor = ColorTranslator.FromHtml(leftSideColor);
else
BackColor = ColorTranslator.FromHtml(rightSideColor);
Invalidate();
}
}
#endregion
protected override void OnClick(EventArgs e)
{
Focus();
base.OnClick(e);
}
后面还有 20 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。