public PropertyGridSpreadExport( RadPropertyGrid radPropertyGrid, SpreadExportFormat exportFormat) : this(radPropertyGrid) { this.ExportFormat = exportFormat; }
void IPropertyValueChangedCommand.Execute(RadPropertyGrid grid) { object o = grid.SelectedObject; if (o is Screen) { ScreenPageTemplate t = ((Screen)o).PageTemplate; PropertyGridItem item = grid.Items["PageTemplate"]; if (t.Mode == ScreenPageTemplateMode.Static) { item.GridItems["Name"].Visible = true; item.GridItems["DataCommand"].Visible = false; item.GridItems["DataField"].Visible = false; } else { item.GridItems["Name"].Visible = false; item.GridItems["DataCommand"].Visible = true; item.GridItems["DataField"].Visible = true; } } }
private ProjectItemWindow(RadPropertyGrid propertyGrid) { this.PropertyGrid = propertyGrid; PropertyGrid.CreateItemElement += PropertyGrid_CreateItemElement; PropertyGrid.Editing += PropertyGrid_Editing; PropertyGrid.PropertyValueChanged += PropertyGrid_PropertyValueChanged; }
private static void OnPropertyDefinitionsPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { RadPropertyGrid propertyGrid = dependencyObject as RadPropertyGrid; INotifyCollectionChanged PropertyDefinitions = e.NewValue as INotifyCollectionChanged; if (propertyGrid != null && PropertyDefinitions != null) { PropertyDefinitionsBehavior behavior = new PropertyDefinitionsBehavior(propertyGrid, PropertyDefinitions); behavior.Attach(); } }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmEmuSettings)); this.settingsGrid = new RadPropertyGrid(); this.lstEmus = new RadListView(); this.cmdLaunchEmu = new RadButton(); this.settingsGrid.BeginInit(); this.lstEmus.BeginInit(); this.cmdLaunchEmu.BeginInit(); this.BeginInit(); this.SuspendLayout(); this.settingsGrid.Dock = DockStyle.Fill; this.settingsGrid.Location = new Point(243, 0); this.settingsGrid.Name = "settingsGrid"; this.settingsGrid.Size = new Size(704, 382); this.settingsGrid.TabIndex = 0; this.settingsGrid.Text = "radPropertyGrid1"; this.settingsGrid.EditorRequired += new PropertyGridEditorRequiredEventHandler(this.settingsGrid_EditorRequired); this.lstEmus.AllowEdit = false; this.lstEmus.AllowRemove = false; this.lstEmus.Dock = DockStyle.Left; this.lstEmus.Location = new Point(0, 0); this.lstEmus.Name = "lstEmus"; this.lstEmus.Size = new Size(243, 406); this.lstEmus.TabIndex = 1; this.lstEmus.Text = "radListView1"; this.lstEmus.SelectedItemChanged += new EventHandler(this.lstEmus_SelectedItemChanged); this.cmdLaunchEmu.Dock = DockStyle.Bottom; this.cmdLaunchEmu.Location = new Point(243, 382); this.cmdLaunchEmu.Name = "cmdLaunchEmu"; this.cmdLaunchEmu.Size = new Size(704, 24); this.cmdLaunchEmu.TabIndex = 1; this.cmdLaunchEmu.Text = "Launch the emulator without game to configure it"; this.cmdLaunchEmu.Click += new EventHandler(this.cmdLaunchEmu_Click); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.ClientSize = new Size(947, 406); this.Controls.Add((Control)this.settingsGrid); this.Controls.Add((Control)this.cmdLaunchEmu); this.Controls.Add((Control)this.lstEmus); this.Icon = (Icon)componentResourceManager.GetObject("$this.Icon"); this.Name = nameof(frmEmuSettings); this.RootElement.ApplyShapeToControl = true; this.StartPosition = FormStartPosition.CenterScreen; this.Text = "Emulator settings"; this.Load += new EventHandler(this.frmEmuSettings_Load); this.settingsGrid.EndInit(); this.lstEmus.EndInit(); this.cmdLaunchEmu.EndInit(); this.EndInit(); this.ResumeLayout(false); }
private void ShowOptions(ColumnModel model) { RadWindow rw = new RadWindow(); RadPropertyGrid rpg = new RadPropertyGrid(); rpg.HorizontalAlignment = HorizontalAlignment.Stretch; rpg.FieldIndicatorVisibility = Visibility.Collapsed; rpg.LabelColumnWidth = new GridLength(110); rpg.DescriptionPanelVisibility = Visibility.Collapsed; rpg.SortAndGroupButtonsVisibility = Visibility.Collapsed; rpg.SearchBoxVisibility = Visibility.Collapsed; rpg.Item = model; rw.Content = rpg; rw.WindowStartupLocation = WindowStartupLocation.CenterScreen; rw.Header = "Export options"; rw.Width = 500; rw.Height = 450; rw.Padding = new Thickness(3); rw.ShowDialog(); }
public static ProjectItemWindow GetInstance(string title, string objectKey, object configObject, object Tag) { ProjectItemWindow retVal = null; if (instance.ContainsKey(objectKey)) { retVal = instance[objectKey]; } else { RadPropertyGrid propertyGrid = new RadPropertyGrid(); propertyGrid = new RadPropertyGrid(); propertyGrid.Dock = DockStyle.Fill; propertyGrid.SelectedObject = configObject; propertyGrid.ToolbarVisible = true; propertyGrid.PropertySort = PropertySort.CategorizedAlphabetical; ProjectItemWindow window = new ProjectItemWindow(propertyGrid); window.Key = objectKey; window.Tag = Tag; window.Text = title; window.editors = GetCustomEditors(configObject); window.onValueChangedCommands = GetValueChangedCommands(configObject); window.Controls.Add(window.PropertyGrid); instance.Add(objectKey, window); retVal = window; } return(retVal); }
public PropertyDefinitionsBehavior(RadPropertyGrid propertyGrid, INotifyCollectionChanged PropertyDefinitions) { this.propertyGrid = propertyGrid; this.PropertyDefinitions = PropertyDefinitions; }
public CustomKeyboardCommandProvider(RadPropertyGrid propertyGrid) : base(propertyGrid) { this.PropertyGrid = propertyGrid; }
public PropertyGridSpreadExport(RadPropertyGrid radPropertyGrid) { this.propertyGrid = radPropertyGrid; }
private static EditScreenWindow RenderScreen(SolutionTreeNode node, EditScreenWindow retVal) { EditScreen Me = (EditScreen)node.Object; RadPropertyGrid propertyGrid = new RadPropertyGrid(); propertyGrid = new RadPropertyGrid(); propertyGrid.Dock = DockStyle.Fill; propertyGrid.SelectedObject = node.Object; propertyGrid.ToolbarVisible = true; propertyGrid.PropertySort = PropertySort.Categorized; EditScreenWindow window = new EditScreenWindow(propertyGrid); window.Key = node.Key; window.Tag = node; window.Text = node.Text; window.editors = GetCustomEditors(node.Object); window.onValueChangedCommands = GetValueChangedCommands(node.Object); //window.Controls.Add(window.PropertyGrid); TableLayoutPanel screen = new TableLayoutPanel(); screen.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; screen.ColumnCount = 1; screen.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); screen.RowCount = 3; screen.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F)); screen.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); screen.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); screen.Dock = DockStyle.Fill; //add textbox for title TextBox title = new TextBox(); title.Font = new System.Drawing.Font("Verdana", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); screen.Controls.Add(title, 0, 0); title.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); title.Location = new System.Drawing.Point(0, 0); title.DataBindings.Add("Text", Me, "Title.Name"); //add textbox for subtitle TextBox subtitle = new TextBox(); screen.Controls.Add(subtitle, 0, 1); subtitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); subtitle.Location = new System.Drawing.Point(0, 0); subtitle.DataBindings.Add("Text", Me, "SubTitle.Name"); TableLayoutPanel zoneContainer = SetupSectionZoneLayout(Me); screen.Controls.Add(zoneContainer, 0, 2); window.Controls.Add(screen); instance.Add(node.Key, window); retVal = window; return(retVal); }
void IComponentConnector.Connect(int connectionId, object target) { label_1 : int num1 = 1402657126; while (true) { int num2 = 1851158300; uint num3; int num4; switch ((num3 = (uint)(num1 ^ num2)) % 14U) { case 0: num1 = (int)num3 * 479486523 ^ -873196720; continue; case 1: num1 = (int)num3 * 237433668 ^ 399688574; continue; case 2: label_8: this.btnDeletePattern = (Button)target; num1 = 470470550; continue; case 3: label_7: this.btnSavePattern = (Button)target; num1 = 470470550; continue; case 4: this._contentLoaded = true; num1 = 470470550; continue; case 5: switch (num4) { case 1: goto label_9; case 2: goto label_13; case 3: goto label_8; case 4: goto label_14; case 5: goto label_7; default: num1 = (int)num3 * 963732435 ^ -526187628; continue; } case 6: LayoutEditorView.\u206F((Window)target, new CancelEventHandler(this.Window_Closing)); num1 = (int)num3 * -1780773712 ^ -1064233586; continue; case 7: label_9: LayoutEditorView.\u206C((FrameworkElement)target, new RoutedEventHandler(this.Window_Loaded)); num1 = 2026052126; continue; case 8: goto label_1; case 9: label_14: this.btnApplyLayout = (Button)target; num1 = 912043287; continue; case 10: num4 = connectionId; num1 = (int)num3 * -1556186719 ^ 1679043455; continue; case 11: label_13: this.pgPattern = (RadPropertyGrid)target; num1 = 470470550; continue; case 12: goto label_3; case 13: num1 = (int)num3 * 744155634 ^ 1018150640; continue; default: goto label_17; } } label_17: return; label_3 :; }