コード例 #1
0
        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;
        }
コード例 #2
0
 public StandaloneDigitalPackage()
 {
     Items = new List <StandalonePackageRecord>();
     DigitalPackageSettings = new DigitalStandalonePackageSettings();
     DigitalPackageSettings.ResetToDefault();
 }