📄 profilecontrolbase.cs
字号:
namespace Imps.Client.Pc.UIContactList
{
using Imps.Client.Core;
using Imps.Client.Pc;
using System;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
public class ProfileControlBase : UserControl, IProfileControl
{
private bool _modified;
public event EventHandler ModifiedChanged;
public virtual bool CheckUserInput()
{
return true;
}
public virtual bool ControlLoad()
{
return true;
}
public virtual bool ControlUnload()
{
return true;
}
protected virtual void HandleUiChanged()
{
}
private void InitializeComponent()
{
base.SuspendLayout();
base.Name = "ProfileControlBase";
base.Size = new Size(0x10a, 0x13c);
base.ResumeLayout(false);
}
protected virtual void UIData_Changed(object sender, EventArgs e)
{
}
public virtual bool UpdateData(bool update)
{
return true;
}
public System.Windows.Forms.Control Control
{
get
{
return this;
}
}
public bool Modified
{
get
{
return this._modified;
}
protected set
{
if (this._modified != value)
{
this._modified = value;
FuncDispatcher.OnEventHandler(this, this.ModifiedChanged, EventArgs.Empty);
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -