private OKCancelControlContainer GetOkCancelWindow(Control control, string caption, bool showOkCancelPanel) { //TODO showOkCancelPanel to constructor? OKCancelControlContainer window = new OKCancelControlContainer(control, caption); window.WindowStartupLocation = WindowStartupLocation.Manual; window.ShowInTaskbar = false; window.OKCancelPanelVisible = showOkCancelPanel; if (mainWindow != null) { window.Owner = mainWindow; window.Icon = mainWindow.Icon; } return window; }
private DialogLayoutStoreWorkerContainer GetContainer(Control control, OKCancelControlContainer window) { IList<ILayoutDataStore> stores = null; if (control is IContainsLayoutStores) stores = ((IContainsLayoutStores)control).GetLayoutStores(); container = new DialogLayoutStoreWorkerContainer(window, stores, layoutDataStorePathFactory); return container; }