static GlobalPropertyPicker() { color = new PropertyWindow(309); gsWin = new GUIStyle("box"); gsWin.fontSize = Util.GetPix(12); gsWin.alignment = TextAnchor.UpperRight; }
public void AddProperty() { if (CurrentItem.Product.Properties == null) { return; } if (CurrentItem.ItemPropertyMaps == null) { CurrentItem.ItemPropertyMaps = new List <PurchaseItemPropertyMap>(); } var PItemPropertyMap = new PurchaseItemPropertyMap(); PItemPropertyMap.PurchaseItemId = CurrentItem.Id; PItemPropertyMap.PropertyValues = new List <PurchaseItemPropertyValue>(); foreach (CatalogItemPropertiesMap ProMap in CurrentItem.Product.Properties) { PurchaseItemPropertyValue PropertyValue = new PurchaseItemPropertyValue(); PropertyValue.CatalogPropertyMasterId = ProMap.CatalogPropertyMasterId; PropertyValue.CatalogItemPropertyMaster = ProMap.PropertyMaster; PropertyValue.PurchaseItemPropertyMapId = PItemPropertyMap.Id; PItemPropertyMap.PropertyValues.Add(PropertyValue); } if (PItemPropertyMap.PropertyValues.Count > 0) { PropertyValueViewModel pv = new PropertyValueViewModel(PItemPropertyMap.PropertyValues); PropertyWindow.ShowUI(pv); CurrentItem.ItemPropertyMaps.Add(PItemPropertyMap); OnPropertyChanged("PropertyValuesList"); } }
private void btnProperties_Click_1(object sender, EventArgs e) { if (!prevLoaded) { PropertyForm = new PropertyWindow(); prevLoaded = true; } PropertyForm.Show(); }
private void CreateStandardControls() { m_solutionExplorer = new SolutionExplorer(); m_propertyWindow = new PropertyWindow(); m_toolbox = new Toolbox(); m_outputWindow = new OutputWindow(); m_taskList = new TaskList(); m_drawWindow = new DrawWindow(); }
private MainFormSerializer(NAntGuiForm form, PropertyWindow propertyWindow, ToolStrip standardToolStrip, ToolStrip buildToolStrip) { _mainForm = form; _mainForm.Load += OnLoad; _mainForm.Closing += OnClosing; _propertyWindow = propertyWindow; _standardToolStrip = standardToolStrip; _buildToolStrip = buildToolStrip; }
private void CreateStandardControls() { m_solutionExplorer = new SolutionExplorer(); m_propertyWindow = new PropertyWindow(); m_toolbox = new Toolbox(); m_sortie = new OutputW.Form1(); // m_outputWindow = new OutputWindow(); }
private void MenuPropertiesClick(object sender, EventArgs e) { if (PropertyWindow != null) { PropertyWindow.Close(); } else { ShowSubWindow(PropertyWindow = new PhotoPropertyWindow()); } }
private void m_btn_newProperty_Click(object sender, EventArgs e) { PropertyWindow pw = new PropertyWindow(m_entity, null); var r = pw.ShowDialog(); if (r == DialogResult.OK) { m_entity.Properties.Add(pw.Property); ResetPropertiesView(); } }
public Workbench(DockPanel dockPanel) { this.dockPanel = dockPanel; this.deserializeDockContent = new DeserializeDockContent(getContentFromPersistString); this.toolWorkplaceWindow = new WorkplaceExplorer(this); this.toolPropertyWindow = new PropertyWindow(this); this.toolHistoryWindow = new HistoryWindow(this); this.toolTaskWindow = new TaskWindow(this); workplaceOpenDialog = new OpenFileDialog(); documentOpenDialog = new OpenFileDialog(); }
//- ctor public pDesigner(PropertyWindow parent) { InitializeComponent(); this._parent = parent; this.BackColor = Color.Transparent; DesignSurfaceManager = new DesignSurfaceManagerExt(); SetPropertyGridToParent(); Toolbox = null; this.Dock = DockStyle.Fill; }
private void PART_Mnu_Properties_Click(object sender, RoutedEventArgs e) { PropertyWindow winProperty = new PropertyWindow(); winProperty.Owner = App.MainAppWindow; winProperty.Topmost = App.MainAppWindow.Topmost; winProperty.ShowDialog(); if (winProperty.DialogResult == true) { this.LoadAuthenticator(Settings.SettingsDatabase.SelectedAuthenticatorIndex); } }
private void m_btn_alterProperty_Click(object sender, EventArgs e) { if (!MakeSureSelectOne(m_lv_properties)) { return; } var p = m_lv_properties.SelectedItems[0]; PropertyWindow pw = new PropertyWindow(m_entity, m_entity.Properties.First(n => n.Name == p.SubItems[0].Text)); var r = pw.ShowDialog(); if (r == DialogResult.OK) { ResetPropertiesView(); } }
public MainWindow(GraphicsMode gMode) : base(1600, 900, gMode, "Cafe Shader Studio", GameWindowFlags.Default, DisplayDevice.Default, 3, 2, GraphicsContextFlags.Default) { Title += ": OpenGL Version: " + GL.GetString(StringName.Version); _config = Config.Load(); TimelineWindow = new TimelineWindow(); Outliner = new Outliner(); Pipeline = new Pipeline(); PropertyWindow = new PropertyWindow(); status = $"Loading global shaders..."; }
private void m_btn_newProperty_Click(object sender, EventArgs e) { if (m_entity == null) { MessageBox.Show("没有加载", "提示"); return; } PropertyWindow pw = new PropertyWindow(m_entity, null); var r = pw.ShowDialog(); if (r == DialogResult.OK) { m_entity.Properties.Add(pw.Property); ResetPropertiesView(); } }
private void EncryptPDF() { try { if (base.SelectedItemPaths.Count() == 0 || base.SelectedItemPaths.Count() > 1) { MessageBox.Show("Invalid selection has occured.", "PDF Magik - Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } string selectedPDFPath = base.SelectedItemPaths.First(); var window = new PropertyWindow(selectedPDFPath, selectedPDFPath, false); window.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message, "PDF Magik - Critical Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }
public void displayProperties(PropertyWindow form, object controlObject) { try { List <IEIBControl> currentcontrol = (List <IEIBControl>)controlObject; if (currentcontrol.Count == 1) { form.propertyGrid.SelectedObject = currentcontrol[0]; } else { form.propertyGrid.SelectedObjects = (object[])currentcontrol.ToArray(); } form.propertyGrid.Refresh(); } catch (Exception exp) { Console.Write(exp.StackTrace); } }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { // Show warning of unsaved progress if (CurrentSaveStatus == SaveStatus.Unsaved) { var result = MessageBox.Show("There are unsaved annotations. Would you like to make a save first?\n" + "Click Yes to save before exit, \n" + "Click No to discard unsaved annotations, \n" + "Click Cancel to cancel exiting.", "Confirmation", MessageBoxButton.YesNoCancel, MessageBoxImage.Information); if (result == MessageBoxResult.Cancel) { e.Cancel = true; return; } else if (result == MessageBoxResult.Yes) { SaveCommand_Executed(null, null); } } // Close all windows PropertyWindow.ShouldReallyClose = true; PropertyWindow.Close(); }
private void LoadUI(ContainerBuilder builder) { //IUserMessageService builder.Register(c => new UserMessageService()).As <IUserMessageService>().SingleInstance(); //register console builder.Register(c => new ConsoleControl()).SingleInstance(); //PropertyEditor builder.Register(c => { var control = new PropertyWindow(); control.Init(c.Resolve <IValidationProvider>(), c.Resolve <IUserMessageService>()); return(control); }).AsSelf().As <IPropertyEditableObjectEditor>().SingleInstance(); //Tree view launcher control builder.Register <MenuTreeViewControl>(c => { var control = new MenuTreeViewControl(); control.Init(GetTree(), GetContextMenus(c), c.Resolve <ResourceManager>()); return(control); }); }
private void Button_Click(object sender, RoutedEventArgs e) { PropertyWindow pw = new PropertyWindow(); pw.Show(); }
internal static void Attach(NAntGuiForm form, PropertyWindow propertyWindow, ToolStrip standardToolStrip, ToolStrip buildToolStrip) { new MainFormSerializer(form, propertyWindow, standardToolStrip, buildToolStrip); }
private void PART_Mnu_Properties_Click(object sender, RoutedEventArgs e) { PropertyWindow winProperty = new PropertyWindow(); winProperty.Owner = App.MainAppWindow; winProperty.Topmost = App.MainAppWindow.Topmost; winProperty.ShowDialog(); if (winProperty.DialogResult == true) { this.LoadAuthenticator(Settings.SettingsDatabase.SelectedAuthenticatorIndex); } }
private void menuItemPropertyWindow_Click_1(object sender, EventArgs e) { PropertyWindow propertyWindow = new PropertyWindow(); propertyWindow.Show(dockPanel, DockState.DockRight); }