public CustomerDialog()
        {
            ordersGrid = new CustomerOrdersGrid(this.ById("OrdersGrid"));
            ordersGrid.Element.FlexHeightOnly();

            this.ById("NoteList").Closest(".field").Hide().End().AppendTo(this.ById("TabNotes"));

            DialogUtils.PendingChangesConfirmation(this.element, () => GetSaveState() != loadedState);

            tabs.OnActivate += (e, i) => this.Arrange();
        }