private void OK_Click(object sender, RoutedEventArgs e) { EnableControls(false); if (m_wcRoot.ApplyChanges()) { this.Close(); } }