public void Startup() { Log.Logger.InfoFormat("CommandLine = {0}", Environment.CommandLine); Log.Logger.InfoFormat("Excel Version = {0}", App.Excel.Version); Log.Logger.InfoFormat("OperatingSystem Version = {0}", Environment.OSVersion); Log.Logger.InfoFormat("Is64BitProcess = {0}", Environment.Is64BitProcess); Log.Logger.InfoFormat("Is64BitOperatingSystem = {0}", Environment.Is64BitOperatingSystem); Log.Logger.InfoFormat("CurrentCulture = {0}", CultureInfo.CurrentCulture); if (this.IsEmedding) { return; } ToolStripManager.Renderer = new CustomToolStripRenderer(App.OfficeVersion == OfficeVersion.v2010 ? SystemColors.Control : SystemColors.Window); this.Settings = AppSettings.Load(); this.AddEventListner(); this.windowContextManager = WindowContextManager.Create(App.OfficeVersion); ActionManager.Enabled = true; this.Update(); this.recorder = new Recorder.CommandRecorder(); this.recorder.Started += new EventHandler(recorder_Started); this.recorder.Stopped += new EventHandler(recorder_Stopped); this.recorder.CommandRecording += new EventHandler <Recorder.CommandRecorderEventArgs>(recorder_CommandRecording); CheckForNewVersion.Check(); }
public void Shutdown() { if (this.IsEmedding) { return; } ActionManager.Enabled = false; this.RemoveEventListner(); this.Settings.Save(); CheckForNewVersion.Dispose(); }