Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace SelectionPanel
- {
- public class SelectionPanel
- {
- private Panel selectionPanel;
- private Button ParseMessageButton;
- private Button AddTestCaseButton;
- private TextBox MessageTextBox;
- private Label MessageLabel;
- private Button BuildMessageButton;
- public SelectionPanel()
- {
- this.selectionPanel = new Panel();
- this.MessageLabel = new Label();
- this.BuildMessageButton = new Button();
- this.ParseMessageButton = new Button();
- this.AddTestCaseButton = new Button();
- this.MessageTextBox = new TextBox();
- initializeComponents();
- }
- private void initializeComponents()
- {
- createBuildButton();
- createeMessageLabel();
- createMessageTextBox();
- createParseMessageButton();
- createTestCaseButton();
- }
- private void createeMessageLabel()
- {
- this.MessageLabel.AutoSize = true;
- this.MessageLabel.Location = new System.Drawing.Point(98, 3);
- this.MessageLabel.Name = "MessageLabel";
- this.MessageLabel.Size = new System.Drawing.Size(93, 13);
- this.MessageLabel.TabIndex = 4;
- this.MessageLabel.Text = "ISO Message field";
- }
- private void createBuildButton()
- {
- this.BuildMessageButton.Location = new System.Drawing.Point(295, 15);
- this.BuildMessageButton.Name = "BuildMessageButton";
- this.BuildMessageButton.Size = new System.Drawing.Size(110, 24);
- this.BuildMessageButton.TabIndex = 3;
- this.BuildMessageButton.Text = "Build ISO Message";
- this.BuildMessageButton.UseVisualStyleBackColor = true;
- this.BuildMessageButton.Click += new System.EventHandler(this.BuildMessageButton_Click);
- }
- private void BuildMessageButton_Click(object sender, EventArgs e)
- {
- MessageBox.Show("TEST");
- }
- public void defineBuildMessageButton()
- {
- }
- private void createParseMessageButton()
- {
- this.ParseMessageButton.Location = new System.Drawing.Point(425, 15);
- this.ParseMessageButton.Name = "ParseMessageButton";
- this.ParseMessageButton.Size = new System.Drawing.Size(110, 24);
- this.ParseMessageButton.TabIndex = 2;
- this.ParseMessageButton.Text = "Parse ISO Message";
- this.ParseMessageButton.UseVisualStyleBackColor = true;
- this.ParseMessageButton.Click += new System.EventHandler(this.ParseMessageButton_Click);
- }
- private void ParseMessageButton_Click(object sender, EventArgs e)
- {
- }
- private void createTestCaseButton()
- {
- this.AddTestCaseButton.Location = new System.Drawing.Point(554, 15);
- this.AddTestCaseButton.Name = "AddTestCaseButton";
- this.AddTestCaseButton.Size = new System.Drawing.Size(110, 24);
- this.AddTestCaseButton.TabIndex = 1;
- this.AddTestCaseButton.Text = "Add Test Case";
- this.AddTestCaseButton.UseVisualStyleBackColor = true;
- this.AddTestCaseButton.Click += new System.EventHandler(this.AddTestCaseButton_Click);
- }
- private void AddTestCaseButton_Click(object sender, EventArgs e)
- {
- }
- private void createMessageTextBox()
- {
- this.MessageTextBox.Location = new System.Drawing.Point(14, 19);
- this.MessageTextBox.Name = "MessageTextBox";
- this.MessageTextBox.Size = new System.Drawing.Size(266, 20);
- this.MessageTextBox.TabIndex = 0;
- this.MessageTextBox.TextChanged += new System.EventHandler(this.MessageTextBox_TextChanged);
- }
- private void MessageTextBox_TextChanged(object sender, EventArgs e)
- {
- }
- public Panel createPanel()
- {
- this.selectionPanel.Controls.Add(this.MessageLabel);
- this.selectionPanel.Controls.Add(this.BuildMessageButton);
- this.selectionPanel.Controls.Add(this.ParseMessageButton);
- this.selectionPanel.Controls.Add(this.AddTestCaseButton);
- this.selectionPanel.Controls.Add(this.MessageTextBox);
- this.selectionPanel.Location = new System.Drawing.Point(13, 13);
- this.selectionPanel.Name = "SelectionPanel";
- this.selectionPanel.Size = new System.Drawing.Size(SystemInformation.VirtualScreen.Width, 45);
- this.selectionPanel.TabIndex = 0;
- return this.selectionPanel;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement