repair automatic refresh
This commit is contained in:
parent
e6e0233e6d
commit
c2037f28e2
@ -178,7 +178,7 @@ public partial class MainWindow : Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (removed) {
|
if (removed) {
|
||||||
GenerateLog();
|
RefreshView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,6 +253,11 @@ public partial class MainWindow : Window {
|
|||||||
};
|
};
|
||||||
|
|
||||||
objective.Transactions.Add(zone);
|
objective.Transactions.Add(zone);
|
||||||
|
RefreshView();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RefreshView() {
|
||||||
|
entries.Items.Refresh();
|
||||||
GenerateLog();
|
GenerateLog();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -272,7 +277,7 @@ public partial class MainWindow : Window {
|
|||||||
|
|
||||||
if (int.TryParse(adjust.Profit.Text, out int newprofit)) {
|
if (int.TryParse(adjust.Profit.Text, out int newprofit)) {
|
||||||
sell.Profit = newprofit;
|
sell.Profit = newprofit;
|
||||||
GenerateLog();
|
RefreshView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user