You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using POSV.Utils;
using POSV.Entity;
namespace POSV
{
[ToolboxItem(false)]
public partial class AbstractSettings : BaseUserControl
{
public AbstractSettings()
{
InitializeComponent();
SetStyles();
}
protected override void OnMouseWheel(System.Windows.Forms.MouseEventArgs e) { }
#region 减少闪烁
private void SetStyles()
{
SetStyle(
ControlStyles.UserPaint |
ControlStyles.AllPaintingInWmPaint |
ControlStyles.OptimizedDoubleBuffer |
ControlStyles.ResizeRedraw |
ControlStyles.DoubleBuffer , true);
//强制分配样式重新应用到控件上
UpdateStyles();
base.AutoScaleMode = AutoScaleMode.None;
}
#endregion
public virtual List<Config> NewChanged()
{
return new List<Config>();
}
public virtual Tuple<bool, string> SaveChanged(List<Config> data)
{
return new Tuple<bool, string>(false, "请重写该方法");
}
public virtual void RefreshUi()
{
}
}
}