/// <summary> /// Performs initialization related to the tool's mode support. /// </summary> protected virtual void InitializeMode() { _settings = ToolSettings.DefaultInstance; try { _mode = (TextCalloutMode)Enum.Parse(typeof(TextCalloutMode), _settings.TextCalloutMode, true); } catch (Exception) { _mode = TextCalloutMode.TextCallout; } this.OnModeChanged(); this.OnModeOrActiveChanged(); }
/// <summary> /// Performs initialization related to the tool's mode support. /// </summary> protected virtual void InitializeMode() { _settings = ToolSettings.DefaultInstance; try { _mode = (TextCalloutMode) Enum.Parse(typeof (TextCalloutMode), _settings.TextCalloutMode, true); } catch (Exception) { _mode = TextCalloutMode.TextCallout; } this.OnModeChanged(); this.OnModeOrActiveChanged(); }