public virtual void PrepareToShow() { StackRawSwitcher <BulkUpdateState> .Enter(BulkUpdateState.Enabled); this.TimesEnterBulkUpdate++; this._helpActions.Clear(); foreach (ActionCommandVM helpAction in this.GetHelpActions()) { this._helpActions.Add(helpAction); } }
public virtual void Dispose() { if (this.TimesEnterBulkUpdate == 1) { StackRawSwitcher <BulkUpdateState> .Exit(); HatcherGuide <IRuntimeSettingsManager> .Instance.SaveNow(true); this.TimesEnterBulkUpdate--; } else { Log.Warn("Invalid value of TimesEnterBulkUpdate setting: {0}. Should be 1".FormatWith(this.TimesEnterBulkUpdate + 1), this); } GoAheadTargets -= this.GoAheadWithBack; this.ClearStepsStackWithDisposing(); }