private void buttonOK_Click(object sender, EventArgs e) { memoryControls.UnfocusSpinners(); if (memoryControls.ChangeMemorySettings()) { Close(); } }
protected override void PageLeaveCore(PageLoadedDirection direction, ref bool cancel) { memoryControls.UnfocusSpinners(); cancel = !memoryControls.ChangeMemorySettings(); }