mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2026-01-06 18:23:14 +00:00
allow column resizes correctly (#83)
This commit is contained in:
2
src/FileViewer.Designer.cs
generated
2
src/FileViewer.Designer.cs
generated
@@ -304,7 +304,6 @@ namespace MeshCentralRouter
|
||||
this.rightListView.SmallImageList = this.fileIconImageList;
|
||||
this.rightListView.UseCompatibleStateImageBehavior = false;
|
||||
this.rightListView.View = System.Windows.Forms.View.Details;
|
||||
this.rightListView.ColumnWidthChanged += new System.Windows.Forms.ColumnWidthChangedEventHandler(this.rightListView_ColumnWidthChanged);
|
||||
this.rightListView.SelectedIndexChanged += new System.EventHandler(this.rightListView_SelectedIndexChanged);
|
||||
this.rightListView.DragDrop += new System.Windows.Forms.DragEventHandler(this.rightListView_DragDrop);
|
||||
this.rightListView.DragEnter += new System.Windows.Forms.DragEventHandler(this.rightListView_DragEnter);
|
||||
@@ -411,7 +410,6 @@ namespace MeshCentralRouter
|
||||
this.leftListView.SmallImageList = this.fileIconImageList;
|
||||
this.leftListView.UseCompatibleStateImageBehavior = false;
|
||||
this.leftListView.View = System.Windows.Forms.View.Details;
|
||||
this.leftListView.ColumnWidthChanged += new System.Windows.Forms.ColumnWidthChangedEventHandler(this.leftListView_ColumnWidthChanged);
|
||||
this.leftListView.SelectedIndexChanged += new System.EventHandler(this.leftListView_SelectedIndexChanged);
|
||||
this.leftListView.DragDrop += new System.Windows.Forms.DragEventHandler(this.leftListView_DragDrop);
|
||||
this.leftListView.DragEnter += new System.Windows.Forms.DragEventHandler(this.leftListView_DragEnter);
|
||||
|
||||
@@ -1062,22 +1062,6 @@ namespace MeshCentralRouter
|
||||
}
|
||||
}
|
||||
|
||||
bool bRightCWChangedBusy = false;
|
||||
private void rightListView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
|
||||
{
|
||||
if(bRightCWChangedBusy) return;
|
||||
bRightCWChangedBusy=true;
|
||||
try
|
||||
{
|
||||
if(rightListView.Columns[0].Width != (rightListView.Width - rightListView.Columns[1].Width - 150))
|
||||
{
|
||||
rightListView.Columns[0].Width = rightListView.Width - rightListView.Columns[1].Width - 150;
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
bRightCWChangedBusy = false;
|
||||
}
|
||||
|
||||
private void leftListView_Resize(object sender, EventArgs e)
|
||||
{
|
||||
if(leftListView.Columns[0].Width != (leftListView.Width - leftListView.Columns[1].Width - 150))
|
||||
@@ -1086,22 +1070,6 @@ namespace MeshCentralRouter
|
||||
}
|
||||
}
|
||||
|
||||
bool bLeftCWChangedBusy = false;
|
||||
private void leftListView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
|
||||
{
|
||||
if(bLeftCWChangedBusy) return;
|
||||
bLeftCWChangedBusy=true;
|
||||
try
|
||||
{
|
||||
if(leftListView.Columns[0].Width != (leftListView.Width - leftListView.Columns[1].Width - 150))
|
||||
{
|
||||
leftListView.Columns[0].Width = leftListView.Width - leftListView.Columns[1].Width - 150;
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
bLeftCWChangedBusy = false;
|
||||
}
|
||||
|
||||
private void updateTimer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
updateTimer.Enabled = false;
|
||||
|
||||
Reference in New Issue
Block a user