/// <summary> /// The Cancel method rolls-back the changes to the proxy /// </summary> public virtual void Rollback() { if (proxy != null) { proxy.Rollback(); } }
/// <summary> /// The user doesn't want to apply the changes /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Cancel_Click(object sender, RoutedEventArgs e) { coreProxy.Rollback(); Apply(treeItems, false); this.Close(); }