diff --git a/src/FileViewer.Designer.cs b/src/FileViewer.Designer.cs index 2993c37..94f5207 100644 --- a/src/FileViewer.Designer.cs +++ b/src/FileViewer.Designer.cs @@ -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); diff --git a/src/FileViewer.cs b/src/FileViewer.cs index bbb76d7..b967c88 100644 --- a/src/FileViewer.cs +++ b/src/FileViewer.cs @@ -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;