void UpdateUI(Order order) {
if(order != null) {
if(!object.Equals(bindingSource.DataSource, order))
bindingSource.DataSource = order;
else
bindingSource.ResetBindings(false);
snapControl.Document.Fields.Update();
}
modueLayout.Visible = (order != null);
}
public int ZoomLevel {