Files
spark/src/DataStreamSuite/DataStreamQueryAnalyzer/PubSubConfigureForm.cs
T

114 lines
3.5 KiB
C#

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using BCG.Utilities.BlueConfiguration;
namespace BCG
{
/// <summary>
/// Summary description for PubSubConfigureForm.
/// </summary>
internal class PubSubConfigureForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private RouteInput myRouteInput;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public PubSubConfigureForm()
{
InitializeComponent();
}
public void setRoutes(PubSubRoute [] routes)
{
myRouteInput.setRoutes(routes);
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PubSubConfigureForm));
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.myRouteInput = new BCG.RouteInput();
this.SuspendLayout();
//
// button1
//
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button1.Location = new System.Drawing.Point(404, 8);
this.button1.Name = "button1";
this.button1.TabIndex = 0;
this.button1.Text = "OK";
//
// button2
//
this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.button2.Location = new System.Drawing.Point(404, 44);
this.button2.Name = "button2";
this.button2.TabIndex = 1;
this.button2.Text = "Cancel";
//
// myRouteInput
//
this.myRouteInput.Location = new System.Drawing.Point(4, 4);
this.myRouteInput.Name = "myRouteInput";
this.myRouteInput.Size = new System.Drawing.Size(392, 344);
this.myRouteInput.TabIndex = 2;
//
// PubSubConfigureForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(7, 13);
this.BackColor = System.Drawing.Color.Gainsboro;
this.ClientSize = new System.Drawing.Size(486, 347);
this.Controls.Add(this.myRouteInput);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "PubSubConfigureForm";
this.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "PuSub Configuration";
this.ResumeLayout(false);
}
#endregion
public PubSubRoute[] getRoutes()
{
return myRouteInput.getRoutes();
}
}
}