subSetting speed up
This commit is contained in:
@@ -8,8 +8,6 @@ namespace v2rayN.Forms
|
|||||||
{
|
{
|
||||||
public partial class SubSettingForm : BaseForm
|
public partial class SubSettingForm : BaseForm
|
||||||
{
|
{
|
||||||
List<SubSettingControl> lstControls = new List<SubSettingControl>();
|
|
||||||
|
|
||||||
public SubSettingForm()
|
public SubSettingForm()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@@ -30,8 +28,8 @@ namespace v2rayN.Forms
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void RefreshSubsView()
|
private void RefreshSubsView()
|
||||||
{
|
{
|
||||||
|
panCon.SuspendLayout();
|
||||||
panCon.Controls.Clear();
|
panCon.Controls.Clear();
|
||||||
lstControls.Clear();
|
|
||||||
|
|
||||||
for (int k = config.subItem.Count - 1; k >= 0; k--)
|
for (int k = config.subItem.Count - 1; k >= 0; k--)
|
||||||
{
|
{
|
||||||
@@ -56,9 +54,8 @@ namespace v2rayN.Forms
|
|||||||
|
|
||||||
panCon.Controls.Add(control);
|
panCon.Controls.Add(control);
|
||||||
panCon.Controls.SetChildIndex(control, 0);
|
panCon.Controls.SetChildIndex(control, 0);
|
||||||
|
|
||||||
lstControls.Add(control);
|
|
||||||
}
|
}
|
||||||
|
panCon.ResumeLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Control_OnButtonClicked(object sender, EventArgs e)
|
private void Control_OnButtonClicked(object sender, EventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user