private void OnResetClick(object sender, OpenLinkEventArgs e) { advBandedGridView.PostEditor(); if (PopupMessageHelper.Instance.ShowWarningQuestion("Do you want to reset your Categories and Products to the original selections on the HOME Tab") == DialogResult.Yes) { _allowApplyValues = false; PackageSettings.ResetToDefault(); UpdateGridColumns(); foreach (var packageRecord in PackageRecords) { packageRecord.ResetToDefault(); } advBandedGridView.RefreshData(); RaiseDataChanged(); _allowApplyValues = true; } e.Handled = true; }
public StandaloneDigitalPackage() { Items = new List <StandalonePackageRecord>(); DigitalPackageSettings = new DigitalStandalonePackageSettings(); DigitalPackageSettings.ResetToDefault(); }