public ByteArrayPanel( ResourceContentControl parentControl ) { textHexCheckBox = new CheckBox( ); textBox = new TextBox( ); SuspendLayout( ); Dock = DockStyle.Fill; DockPadding.All = 5; textHexCheckBox.FlatStyle = FlatStyle.System; textHexCheckBox.Location = new Point( 3, 3 ); textHexCheckBox.TabIndex = 1; textHexCheckBox.Text = "Show as Hex"; textHexCheckBox.Checked = false; textHexCheckBox.CheckedChanged += new EventHandler( OnCheckedChangedTextCheckBox ); textBox.Location = new Point( 3, 30 ); textBox.Multiline = true; textBox.ReadOnly = true; textBox.ScrollBars = ScrollBars.Vertical; textBox.Font = new Font( FontFamily.GenericMonospace, 8 ); textBox.WordWrap = true; Controls.Add( textBox ); Controls.Add( textHexCheckBox ); ResumeLayout( false ); }
public ColorPanel(ResourceContentControl parentControl) { this.parentControl = parentControl; button = new Button( ); panel = new Panel( ); label = new Label( ); SuspendLayout( ); BackColor = Color.LightSlateGray; button.Location = new Point(10, 10); button.Size = new Size(120, 21); button.Text = "Change Color"; button.Click += new EventHandler(OnClickButton); panel.Size = new Size(60, 60); label.AutoSize = true; label.BackColor = BackColor; Dock = DockStyle.Fill; DockPadding.All = 5; Controls.Add(button); Controls.Add(panel); Controls.Add(label); ResumeLayout(false); }
public ColorPanel( ResourceContentControl parentControl ) { this.parentControl = parentControl; button = new Button( ); panel = new Panel( ); label = new Label( ); SuspendLayout( ); BackColor = Color.LightSlateGray; button.Location = new Point( 10, 10 ); button.Size = new Size( 120, 21 ); button.Text = "Change Color"; button.Click += new EventHandler( OnClickButton ); panel.Size = new Size( 60, 60 ); label.AutoSize = true; label.BackColor = BackColor; Dock = DockStyle.Fill; DockPadding.All = 5; Controls.Add( button ); Controls.Add( panel ); Controls.Add( label ); ResumeLayout( false ); }
public ByteArrayPanel(ResourceContentControl parentControl) { textHexCheckBox = new CheckBox( ); textBox = new TextBox( ); SuspendLayout( ); Dock = DockStyle.Fill; DockPadding.All = 5; textHexCheckBox.FlatStyle = FlatStyle.System; textHexCheckBox.Location = new Point(3, 3); textHexCheckBox.TabIndex = 1; textHexCheckBox.Text = "Show as Hex"; textHexCheckBox.Checked = false; textHexCheckBox.CheckedChanged += new EventHandler(OnCheckedChangedTextCheckBox); textBox.Location = new Point(3, 30); textBox.Multiline = true; textBox.ReadOnly = true; textBox.ScrollBars = ScrollBars.Vertical; textBox.Font = new Font(FontFamily.GenericMonospace, 8); textBox.WordWrap = true; Controls.Add(textBox); Controls.Add(textHexCheckBox); ResumeLayout(false); }
public TextPanel( ResourceContentControl parentControl ) { this.parentControl = parentControl; contentTextBox = new TextBox( ); acceptButton = new Button( ); SuspendLayout( ); Dock = DockStyle.Fill; DockPadding.All = 5; contentTextBox.Location = new Point( 3, 30 ); contentTextBox.Multiline = true; contentTextBox.AcceptsReturn = true; contentTextBox.AcceptsTab = true; contentTextBox.TextChanged += new EventHandler( OnContentTextBoxTextChanged ); contentTextBox.ScrollBars = ScrollBars.Both; acceptButton.Text = "Accept Changes"; acceptButton.Location = new Point( 3, 3 ); acceptButton.Size = new Size( 150, 23 ); acceptButton.Enabled = false; acceptButton.Click += new EventHandler( OnAcceptButtonClick ); Controls.Add( contentTextBox ); Controls.Add( acceptButton ); ResumeLayout( false ); }
public TextPanel(ResourceContentControl parentControl) { this.parentControl = parentControl; contentTextBox = new TextBox( ); acceptButton = new Button( ); SuspendLayout( ); Dock = DockStyle.Fill; DockPadding.All = 5; contentTextBox.Location = new Point(3, 30); contentTextBox.Multiline = true; contentTextBox.AcceptsReturn = true; contentTextBox.AcceptsTab = true; contentTextBox.TextChanged += new EventHandler(OnContentTextBoxTextChanged); contentTextBox.ScrollBars = ScrollBars.Both; acceptButton.Text = "Accept Changes"; acceptButton.Location = new Point(3, 3); acceptButton.Size = new Size(150, 23); acceptButton.Enabled = false; acceptButton.Click += new EventHandler(OnAcceptButtonClick); Controls.Add(contentTextBox); Controls.Add(acceptButton); ResumeLayout(false); }
public ImagePanel(ResourceContentControl parentControl) { this.parentControl = parentControl; button = new Button( ); pictureBox = new PictureBox( ); SuspendLayout( ); button.Location = new Point(10, 10); button.Size = new Size(120, 21); button.Text = "Change Image"; button.Click += new EventHandler(OnClickButton); Dock = DockStyle.Fill; DockPadding.All = 5; Controls.Add(pictureBox); Controls.Add(button); ResumeLayout(false); }
public ImagePanel( ResourceContentControl parentControl ) { this.parentControl = parentControl; button = new Button( ); pictureBox = new PictureBox( ); SuspendLayout( ); button.Location = new Point( 10, 10 ); button.Size = new Size( 120, 21 ); button.Text = "Change Image"; button.Click += new EventHandler( OnClickButton ); Dock = DockStyle.Fill; DockPadding.All = 5; Controls.Add( pictureBox ); Controls.Add( button ); ResumeLayout( false ); }
public ResourceControl( ) { mainSplitter = new Splitter( ); contextMenu = new ContextMenu( ); resourceSelectionControl = new ResourceSelectionControl( this ); resourceContentControl = new ResourceContentControl( this ); SuspendLayout( ); // resourceSelectionControl resourceSelectionControl.Dock = DockStyle.Top; resourceSelectionControl.Location = new Point( 0, 0 ); resourceSelectionControl.Size = new Size( 592, 328 ); resourceSelectionControl.TabIndex = 0; // resourceSelectionPanel.DockPadding.All = 5; // mainSplitter mainSplitter.Dock = DockStyle.Top; mainSplitter.MinExtra = 213; mainSplitter.MinSize = 328; // contentControl resourceContentControl.Location = new Point( 0, 328 ); resourceContentControl.Size = new Size( 592, 213 ); resourceContentControl.Dock = DockStyle.Fill; resourceContentControl.TabIndex = 3; Controls.Add( resourceContentControl ); Controls.Add( mainSplitter ); Controls.Add( resourceSelectionControl ); ResumeLayout( false ); resourceSelectionControl.ResourceListBox.SelectedIndexChanged += new EventHandler( OnResourceListBoxSelectedIndexChanged ); }
public ResourceControl( ) { mainSplitter = new Splitter( ); contextMenu = new ContextMenu( ); resourceSelectionControl = new ResourceSelectionControl(this); resourceContentControl = new ResourceContentControl(this); SuspendLayout( ); // resourceSelectionControl resourceSelectionControl.Dock = DockStyle.Top; resourceSelectionControl.Location = new Point(0, 0); resourceSelectionControl.Size = new Size(592, 328); resourceSelectionControl.TabIndex = 0; // resourceSelectionPanel.DockPadding.All = 5; // mainSplitter mainSplitter.Dock = DockStyle.Top; mainSplitter.MinExtra = 213; mainSplitter.MinSize = 328; // contentControl resourceContentControl.Location = new Point(0, 328); resourceContentControl.Size = new Size(592, 213); resourceContentControl.Dock = DockStyle.Fill; resourceContentControl.TabIndex = 3; Controls.Add(resourceContentControl); Controls.Add(mainSplitter); Controls.Add(resourceSelectionControl); ResumeLayout(false); resourceSelectionControl.ResourceListBox.SelectedIndexChanged += new EventHandler(OnResourceListBoxSelectedIndexChanged); }