public GraphControl(IGraphEditorHostApplication hostApp) { bool recordingMode = false; if (null != hostApp && null != hostApp.Configurations) { object value = hostApp.Configurations[ConfigurationKeys.RecordingUserActions]; if (null != value) recordingMode = (bool)value; } InitControl(recordingMode, hostApp); }
public GraphControl(IGraphEditorHostApplication hostApp) { bool recordingMode = false; if (null != hostApp && null != hostApp.Configurations) { object value = hostApp.Configurations[ConfigurationKeys.RecordingUserActions]; if (null != value) { recordingMode = (bool)value; } } InitControl(recordingMode, hostApp); }
private void InitControl(bool isInRecordingMode, IGraphEditorHostApplication hostApp = null) { if (null != hostApp) { object value = null; string configName = ConfigurationKeys.GeometricPreviewEnabled; if (hostApp.Configurations.TryGetValue(configName, out value)) { geometricPreviewEnabled = ((bool)value); } } //consent UI feedback collectInfoManager = new CollectInfoManager(new LoggerWrapper()); this.isInRecordingMode = isInRecordingMode; InitializeComponent(); this.Loaded += new RoutedEventHandler(OnGraphControlLoaded); this.hostApplication = hostApp; Logger.LogInfo("VersionNumber", UpdateManager.CreateInstance(new LoggerWrapper()).ProductVersion.ToString()); }
public GraphControl(bool isInRecordingMode, IGraphEditorHostApplication hostApp = null) { InitControl(isInRecordingMode, hostApp); }
private void InitControl(bool isInRecordingMode, IGraphEditorHostApplication hostApp = null) { if (null != hostApp) { object value = null; string configName = ConfigurationKeys.GeometricPreviewEnabled; if (hostApp.Configurations.TryGetValue(configName, out value)) geometricPreviewEnabled = ((bool)value); } //consent UI feedback collectInfoManager = new CollectInfoManager(new LoggerWrapper()); this.isInRecordingMode = isInRecordingMode; InitializeComponent(); this.Loaded += new RoutedEventHandler(OnGraphControlLoaded); this.hostApplication = hostApp; Logger.LogInfo("VersionNumber", UpdateManager.CreateInstance(new LoggerWrapper()).ProductVersion.ToString()); }