public List <GlobalAppModelParameter> ShowAsWindow(eWindowShowStyle windowStyle = eWindowShowStyle.Dialog) { Button selectBtn = new Button(); selectBtn.Content = "Select"; selectBtn.Click += new RoutedEventHandler(selectBtn_Click); ObservableList <Button> winButtons = new ObservableList <Button>(); winButtons.Add(selectBtn); xModelsGlobalParamsGrid.ShowToolsBar = Visibility.Collapsed; xModelsGlobalParamsGrid.Grid.IsReadOnly = true; xModelsGlobalParamsGrid.Grid.MouseDoubleClick += selectBtn_Click; GenericWindow.LoadGenericWindow(ref mGenericWindow, null, windowStyle, "Add Global Parameter", this, winButtons, true, "Cancel", CloseWinClicked); return(SelectedGlobalParamsFromDialogPage); }
public bool ShowAsWindow(eWindowShowStyle windowStyle = eWindowShowStyle.Dialog) { Button OKButton = new Button(); OKButton.Content = "OK"; OKButton.Click += new RoutedEventHandler(OKButton_Click); if (mSelectionModePage) { OptionalValuesGrid.ShowToolsBar = Visibility.Collapsed; } GenericWindow.LoadGenericWindow(ref mWin, null, windowStyle, this.Title, this, new ObservableList <Button> { OKButton }, showClosebtn: false); return(editWasDone); }
public List <object> ShowAsWindow(string windowTitle = "", eWindowShowStyle windowStyle = eWindowShowStyle.Dialog, bool startupLocationWithOffset = false) { bOpenasWindow = true; ObservableList <Button> winButtons = new ObservableList <Button>(); Button selectBtn = new Button(); selectBtn.Content = "Select"; selectBtn.Click += new RoutedEventHandler(selectBtn_Click); winButtons.Add(selectBtn); if (windowTitle == string.Empty) { windowTitle = mitemTypeName + " Selection"; } GenericWindow.LoadGenericWindow(ref mPageGenericWin, App.MainWindow, windowStyle, windowTitle, this, winButtons, true, "Close", CloseWinClicked, startupLocationWithOffset: startupLocationWithOffset); return(mSelectedItems); }
public void ShowAsWindow(eWindowShowStyle windowStyle = eWindowShowStyle.Dialog, bool ShowCancelButton = true) { Button OKButton = new Button(); OKButton.Content = "Ok"; OKButton.Click += OKButtonClick; RunButton = new Button(); RunButton.Content = "Run"; RunButton.Click += RunButtonClick; ObservableList <Button> winButtons = new ObservableList <Button>(); winButtons.Add(OKButton); winButtons.Add(RunButton); this.Height = 800; this.Width = 1000; GenericWindow.LoadGenericWindow(ref mWindow, null, windowStyle, this.Title, this, winButtons, ShowCancelButton, "Cancel"); }
internal void ShowAsWindow(string windowTitle) { this.Height = 600; this.Width = 950; GenericWindow.LoadGenericWindow(ref genericWindow, null, eWindowShowStyle.Dialog, windowTitle, this, null, true, "Close", CloseBtn_Click); }