Rmove Debug Comments
Changed code to remove temporary panel.
This commit is contained in:
parent
c4a31b95ab
commit
44bc2844eb
@ -670,14 +670,13 @@ namespace Volian.Controls.Library
|
|||||||
//ShowTops("\r\n");
|
//ShowTops("\r\n");
|
||||||
int TopMostYBefore = TopMostEditItem.Top;
|
int TopMostYBefore = TopMostEditItem.Top;
|
||||||
//_MyTimer.ActiveProcess = "DeleteItem";
|
//_MyTimer.ActiveProcess = "DeleteItem";
|
||||||
|
// Add a Panel temporarily so that AutoScroll will not happen during the delete.
|
||||||
Panel pnl = new Panel();
|
Panel pnl = new Panel();
|
||||||
pnl.Size = new Size(10, 10);
|
pnl.Size = new Size(10, 10);
|
||||||
MyStepPanel.Controls.Add(pnl);
|
MyStepPanel.Controls.Add(pnl);
|
||||||
pnl.BackColor = Color.Red;
|
pnl.BackColor = Color.Red;
|
||||||
pnl.Location = new Point(xOffset += 15, MyStepPanel.ClientSize.Height+10);
|
pnl.Location = new Point(xOffset += 15, MyStepPanel.ClientSize.Height+10);
|
||||||
//Console.WriteLine("'Before Debete Item',{0},'{1}','{2}',{3},,,{4},{5}", MyID, MyItemInfo.ShortPath, MyItemInfo.DisplayText, Top, MyStepPanel.VerticalScroll.Value, MyStepPanel.DisplayRectangle.Height);
|
|
||||||
EditItem newFocus = DeleteItem();
|
EditItem newFocus = DeleteItem();
|
||||||
//Console.WriteLine("'After Debete Item',{0},'{1}','{2}',{3},,,{4},{5}", MyID, MyItemInfo.ShortPath, Top, MyItemInfo.DisplayText, MyStepPanel.VerticalScroll.Value, MyStepPanel.DisplayRectangle.Height);
|
|
||||||
if (newFocus == null)
|
if (newFocus == null)
|
||||||
{
|
{
|
||||||
MyStepPanel.Controls.Remove(pnl);
|
MyStepPanel.Controls.Remove(pnl);
|
||||||
@ -698,8 +697,7 @@ namespace Volian.Controls.Library
|
|||||||
//newFocus.ShowTops("");
|
//newFocus.ShowTops("");
|
||||||
//_MyTimer.ShowElapsedTimes("RemoveItem");
|
//_MyTimer.ShowElapsedTimes("RemoveItem");
|
||||||
ForceEditItemRefresh(newFocus);
|
ForceEditItemRefresh(newFocus);
|
||||||
//MyStepPanel.Controls.Remove(pnl);
|
MyStepPanel.Controls.Remove(pnl);
|
||||||
MyStepPanel.AutoScroll = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ForceEditItemRefresh(EditItem newFocus)
|
private static void ForceEditItemRefresh(EditItem newFocus)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user