private void RadSpreadsheet_ActiveSheetEditorChanged(object sender, EventArgs e) { if (this.activeSheetEditor != null) { this.activeSheetEditor.UICommandExecuted -= this.ActiveSheetEditor_UICommandExecuted; } this.activeSheetEditor = this.radSpreadsheet.ActiveSheetEditor; if (this.activeSheetEditor != null) { this.activeSheetEditor.UICommandExecuted += this.ActiveSheetEditor_UICommandExecuted; } }
private void RadSpreadsheet_ActiveSheetEditorChanged(object sender, EventArgs e) { if (this.activeSheetEditor != null) { this.activeSheetEditor.UICommandExecuted -= this.ActiveSheetEditor_UICommandExecuted; } this.activeSheetEditor = this.RadSpreadsheet.ActiveSheetEditor; if (this.activeSheetEditor != null) { this.activeSheetEditor.UICommandExecuted += this.ActiveSheetEditor_UICommandExecuted; this.ChangeScaleFactorIfTouchTheme(); } }