// Methods public PrintJobManager(IDesktopWindow window, PrintToolComponent component) { this._window = window; this._jobList = new List <PrintJob>(); this._errorJobList = new List <PrintJob>(); //this._printTable = new TypedDataDesign.PrintQueueDataTable(); this._component = component; }
public void Show() { if (_shelves.ContainsKey(base.Context.DesktopWindow)) { _shelves[base.Context.DesktopWindow].Activate(); } else { this._window = base.Context.DesktopWindow; //IClientSetting clientSetting = new ClientSettingExtensionPoint().CreateExtension() as IClientSetting; PrintToolComponent component = new PrintToolComponent(this._window); IShelf shelf = ApplicationComponent.LaunchAsShelf(this._window, component, SR.Name, SR.Title, ShelfDisplayHint.DockAutoHide | ShelfDisplayHint.DockLeft); _shelves[this._window] = shelf; _shelves[this._window].Closed += new EventHandler <ClosedEventArgs>(this.OnShelfClosed); } }