public CustomizeViewerActionModelsComponentControl(CustomizeViewerActionModelsComponent component) { InitializeComponent(); AcceptButton = _btnOk; CancelButton = _btnCancel; _component = component; Control control = (Control) _component.TabComponentHost.ComponentView.GuiElement; control.Dock = DockStyle.Fill; _pnlMain.Controls.Add(control); }
public CustomizeViewerActionModelsComponentControl(CustomizeViewerActionModelsComponent component) { InitializeComponent(); AcceptButton = _btnOk; CancelButton = _btnCancel; _component = component; Control control = (Control)_component.TabComponentHost.ComponentView.GuiElement; control.Dock = DockStyle.Fill; _pnlMain.Controls.Add(control); }
public void SetComponent(IApplicationComponent component) { _component = (CustomizeViewerActionModelsComponent)component; }
public void Customize() { try { if (SettingsStore.IsSupported && !SettingsStore.IsStoreOnline) { base.Context.DesktopWindow.ShowMessageBox(Desktop.SR.MessageSettingsStoreOffline, MessageBoxActions.Ok); return; } CustomizeViewerActionModelsComponent component = new CustomizeViewerActionModelsComponent(this.ImageViewer); DialogBoxCreationArgs args = new DialogBoxCreationArgs(component, SR.TitleCustomizeActionModels, "CustomizeActionModels") { AllowUserResize = true }; ApplicationComponent.LaunchAsDialog(this.Context.DesktopWindow, args); } catch (Exception ex) { ExceptionHandler.Report(ex, SR.MessageActionModelUpdateFailure, Context.DesktopWindow); } }
public void SetComponent(IApplicationComponent component) { _component = (CustomizeViewerActionModelsComponent) component; }