/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.primaryWorkspaceFirstCommandBarLightweightControl = new OpenLiveWriter.ApplicationFramework.PrimaryWorkspaceWorkspaceCommandBarLightweightControl(this.components); this.primaryWorkspaceSecondCommandBarLightweightControl = new OpenLiveWriter.ApplicationFramework.PrimaryWorkspaceWorkspaceCommandBarLightweightControl(this.components); ((System.ComponentModel.ISupportInitialize)(this.primaryWorkspaceFirstCommandBarLightweightControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.primaryWorkspaceSecondCommandBarLightweightControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // primaryWorkspaceFirstCommandBarLightweightControl // this.primaryWorkspaceFirstCommandBarLightweightControl.LightweightControlContainerControl = this; // // primaryWorkspaceSecondCommandBarLightweightControl // this.primaryWorkspaceSecondCommandBarLightweightControl.LightweightControlContainerControl = this; // // PrimaryWorkspaceControl // this.AllowDrop = false; this.Name = "PrimaryWorkspaceControl"; ((System.ComponentModel.ISupportInitialize)(this.primaryWorkspaceFirstCommandBarLightweightControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.primaryWorkspaceSecondCommandBarLightweightControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
private void InitializeToolbar() { CommandBarButtonEntry commandBarButtonEntryImageBrightness = new CommandBarButtonEntry(components) ; commandBarButtonEntryImageBrightness.CommandIdentifier = commandImageBrightness.Identifier ; CommandBarButtonEntry commandBarButtonEntryImageRotate = new CommandBarButtonEntry(components) ; commandBarButtonEntryImageRotate.CommandIdentifier = commandImageRotate.Identifier ; CommandBarButtonEntry commandBarButtonEntryImageReset = new CommandBarButtonEntry(components) ; commandBarButtonEntryImageReset.CommandIdentifier = commandImageReset.Identifier ; CommandBarButtonEntry commandBarButtonEntryImageSaveDefaults = new CommandBarButtonEntry(components) ; commandBarButtonEntryImageSaveDefaults.CommandIdentifier = commandImageSaveDefaults.Identifier ; CommandBarDefinition commandBarDefinition = new CommandBarDefinition(components) ; commandBarDefinition.LeftCommandBarEntries.Add( commandBarButtonEntryImageRotate ) ; commandBarDefinition.LeftCommandBarEntries.Add( commandBarButtonEntryImageBrightness ) ; commandBarDefinition.RightCommandBarEntries.Add( commandBarButtonEntryImageReset ) ; commandBarDefinition.RightCommandBarEntries.Add( commandBarButtonEntryImageSaveDefaults ) ; commandBarLightweightControl = new PrimaryWorkspaceWorkspaceCommandBarLightweightControl(components) ; commandBarLightweightControl.LightweightControlContainerControl = this ; commandBarLightweightControl.CommandManager = ApplicationManager.CommandManager ; commandBarLightweightControl.CommandBarDefinition = commandBarDefinition ; }