22. oktober 2003 - 14:48
#1
using System;
using System.Drawing;
using System.Threading;
using System.Net.Sockets;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace TidsurClient
{
public class TidsurDialog : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label lblKortnr;
private System.Windows.Forms.Label lblNummer;
private System.Windows.Forms.Label lblNavn;
private System.Windows.Forms.Label lblIdag;
private System.Windows.Forms.Label lblPeriode;
private System.Windows.Forms.Label lblStarttidspunkt;
private System.Windows.Forms.Label lblStoptidspunkt;
private System.Windows.Forms.Label lblOperation;
private System.Windows.Forms.Label lblBeskrivelse;
private System.Windows.Forms.Label lblOrdreType;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.TextBox textBox18;
private System.Windows.Forms.TextBox txtOperation_1;
private System.Windows.Forms.TextBox txtBeskrivelse_2;
private System.Windows.Forms.TextBox txtBeskrivelse_1;
private System.Windows.Forms.TextBox txtOrdreNummer;
private System.Windows.Forms.TextBox txtOrdretype;
private System.Windows.Forms.TextBox txtStoptidspunkt_2;
private System.Windows.Forms.TextBox txtStoptidspunkt_1;
private System.Windows.Forms.TextBox txtStarttidspunkt_2;
private System.Windows.Forms.TextBox txtStarttidspunkt_1;
private System.Windows.Forms.TextBox txtPeriode_2;
private System.Windows.Forms.TextBox txtPeriode_1;
private System.Windows.Forms.TextBox txtIdag_2;
private System.Windows.Forms.TextBox txtIdag_1;
private System.Windows.Forms.TextBox txtNavn;
private System.Windows.Forms.TextBox txtNummer;
private System.Windows.Forms.TextBox txtKortnr;
private System.Windows.Forms.TextBox txtOperation_2;
private System.Windows.Forms.Label lblOrdreNummer;
private System.ComponentModel.Container components = null;
public TidsurDialog()
{
InitializeComponent();
this.Show();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
public void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.textBox18 = new System.Windows.Forms.TextBox();
this.txtOperation_1 = new System.Windows.Forms.TextBox();
this.txtBeskrivelse_2 = new System.Windows.Forms.TextBox();
this.txtBeskrivelse_1 = new System.Windows.Forms.TextBox();
this.txtOrdreNummer = new System.Windows.Forms.TextBox();
this.txtOrdretype = new System.Windows.Forms.TextBox();
this.txtStoptidspunkt_2 = new System.Windows.Forms.TextBox();
this.txtStoptidspunkt_1 = new System.Windows.Forms.TextBox();
this.txtStarttidspunkt_2 = new System.Windows.Forms.TextBox();
this.txtStarttidspunkt_1 = new System.Windows.Forms.TextBox();
this.txtPeriode_2 = new System.Windows.Forms.TextBox();
this.txtPeriode_1 = new System.Windows.Forms.TextBox();
this.txtIdag_2 = new System.Windows.Forms.TextBox();
this.txtIdag_1 = new System.Windows.Forms.TextBox();
this.txtNavn = new System.Windows.Forms.TextBox();
this.txtNummer = new System.Windows.Forms.TextBox();
this.txtKortnr = new System.Windows.Forms.TextBox();
this.lblOperation = new System.Windows.Forms.Label();
this.lblBeskrivelse = new System.Windows.Forms.Label();
this.lblOrdreNummer = new System.Windows.Forms.Label();
this.lblOrdreType = new System.Windows.Forms.Label();
this.lblStoptidspunkt = new System.Windows.Forms.Label();
this.lblStarttidspunkt = new System.Windows.Forms.Label();
this.lblPeriode = new System.Windows.Forms.Label();
this.lblIdag = new System.Windows.Forms.Label();
this.lblNavn = new System.Windows.Forms.Label();
this.lblNummer = new System.Windows.Forms.Label();
this.lblKortnr = new System.Windows.Forms.Label();
this.txtOperation_2 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.textBox18);
this.groupBox1.Controls.Add(this.txtOperation_1);
this.groupBox1.Controls.Add(this.txtBeskrivelse_2);
this.groupBox1.Controls.Add(this.txtBeskrivelse_1);
this.groupBox1.Controls.Add(this.txtOrdreNummer);
this.groupBox1.Controls.Add(this.txtOrdretype);
this.groupBox1.Controls.Add(this.txtStoptidspunkt_2);
this.groupBox1.Controls.Add(this.txtStoptidspunkt_1);
this.groupBox1.Controls.Add(this.txtStarttidspunkt_2);
this.groupBox1.Controls.Add(this.txtStarttidspunkt_1);
this.groupBox1.Controls.Add(this.txtPeriode_2);
this.groupBox1.Controls.Add(this.txtPeriode_1);
this.groupBox1.Controls.Add(this.txtIdag_2);
this.groupBox1.Controls.Add(this.txtIdag_1);
this.groupBox1.Controls.Add(this.txtNavn);
this.groupBox1.Controls.Add(this.txtNummer);
this.groupBox1.Controls.Add(this.txtKortnr);
this.groupBox1.Controls.Add(this.lblOperation);
this.groupBox1.Controls.Add(this.lblBeskrivelse);
this.groupBox1.Controls.Add(this.lblOrdreNummer);
this.groupBox1.Controls.Add(this.lblOrdreType);
this.groupBox1.Controls.Add(this.lblStoptidspunkt);
this.groupBox1.Controls.Add(this.lblStarttidspunkt);
this.groupBox1.Controls.Add(this.lblPeriode);
this.groupBox1.Controls.Add(this.lblIdag);
this.groupBox1.Controls.Add(this.lblNavn);
this.groupBox1.Controls.Add(this.lblNummer);
this.groupBox1.Controls.Add(this.lblKortnr);
this.groupBox1.Controls.Add(this.txtOperation_2);
this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.groupBox1.ForeColor = System.Drawing.SystemColors.ControlText;
this.groupBox1.Location = new System.Drawing.Point(16, 8);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(552, 552);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
//
// textBox18
//
this.textBox18.Location = new System.Drawing.Point(408, 32);
this.textBox18.Multiline = true;
this.textBox18.Name = "textBox18";
this.textBox18.ReadOnly = true;
this.textBox18.Size = new System.Drawing.Size(128, 48);
this.textBox18.TabIndex = 28;
this.textBox18.Text = "";
//
// txtOperation_1
//
this.txtOperation_1.Location = new System.Drawing.Point(168, 472);
this.txtOperation_1.Name = "txtOperation_1";
this.txtOperation_1.ReadOnly = true;
this.txtOperation_1.Size = new System.Drawing.Size(128, 24);
this.txtOperation_1.TabIndex = 26;
this.txtOperation_1.Text = "";
//
// txtBeskrivelse_2
//
this.txtBeskrivelse_2.Location = new System.Drawing.Point(168, 432);
this.txtBeskrivelse_2.Name = "txtBeskrivelse_2";
this.txtBeskrivelse_2.ReadOnly = true;
this.txtBeskrivelse_2.Size = new System.Drawing.Size(304, 24);
this.txtBeskrivelse_2.TabIndex = 25;
this.txtBeskrivelse_2.Text = "";
//
// txtBeskrivelse_1
//
this.txtBeskrivelse_1.Location = new System.Drawing.Point(168, 392);
this.txtBeskrivelse_1.Name = "txtBeskrivelse_1";
this.txtBeskrivelse_1.ReadOnly = true;
this.txtBeskrivelse_1.Size = new System.Drawing.Size(304, 24);
this.txtBeskrivelse_1.TabIndex = 24;
this.txtBeskrivelse_1.Text = "";
//
// txtOrdreNummer
//
this.txtOrdreNummer.Location = new System.Drawing.Point(168, 352);
this.txtOrdreNummer.Name = "txtOrdreNummer";
this.txtOrdreNummer.ReadOnly = true;
this.txtOrdreNummer.Size = new System.Drawing.Size(160, 24);
this.txtOrdreNummer.TabIndex = 23;
this.txtOrdreNummer.Text = "";
//
// txtOrdretype
//
this.txtOrdretype.Location = new System.Drawing.Point(168, 312);
this.txtOrdretype.Name = "txtOrdretype";
this.txtOrdretype.ReadOnly = true;
this.txtOrdretype.Size = new System.Drawing.Size(160, 24);
this.txtOrdretype.TabIndex = 22;
this.txtOrdretype.Text = "";
//
// txtStoptidspunkt_2
//
this.txtStoptidspunkt_2.Location = new System.Drawing.Point(280, 272);
this.txtStoptidspunkt_2.Name = "txtStoptidspunkt_2";
this.txtStoptidspunkt_2.ReadOnly = true;
this.txtStoptidspunkt_2.TabIndex = 21;
this.txtStoptidspunkt_2.Text = "";
//
// txtStoptidspunkt_1
//
this.txtStoptidspunkt_1.Location = new System.Drawing.Point(168, 272);
this.txtStoptidspunkt_1.Name = "txtStoptidspunkt_1";
this.txtStoptidspunkt_1.ReadOnly = true;
this.txtStoptidspunkt_1.TabIndex = 20;
this.txtStoptidspunkt_1.Text = "";
//
// txtStarttidspunkt_2
//
this.txtStarttidspunkt_2.Location = new System.Drawing.Point(280, 232);
this.txtStarttidspunkt_2.Name = "txtStarttidspunkt_2";
this.txtStarttidspunkt_2.ReadOnly = true;
this.txtStarttidspunkt_2.TabIndex = 19;
this.txtStarttidspunkt_2.Text = "";
//
// txtStarttidspunkt_1
//
this.txtStarttidspunkt_1.Location = new System.Drawing.Point(168, 232);
this.txtStarttidspunkt_1.Name = "txtStarttidspunkt_1";
this.txtStarttidspunkt_1.ReadOnly = true;
this.txtStarttidspunkt_1.TabIndex = 18;
this.txtStarttidspunkt_1.Text = "";
//
// txtPeriode_2
//
this.txtPeriode_2.Location = new System.Drawing.Point(280, 192);
this.txtPeriode_2.Name = "txtPeriode_2";
this.txtPeriode_2.ReadOnly = true;
this.txtPeriode_2.TabIndex = 17;
this.txtPeriode_2.Text = "";
//
// txtPeriode_1
//
this.txtPeriode_1.Location = new System.Drawing.Point(168, 192);
this.txtPeriode_1.Name = "txtPeriode_1";
this.txtPeriode_1.ReadOnly = true;
this.txtPeriode_1.TabIndex = 16;
this.txtPeriode_1.Text = "";
//
// txtIdag_2
//
this.txtIdag_2.Location = new System.Drawing.Point(280, 152);
this.txtIdag_2.Name = "txtIdag_2";
this.txtIdag_2.ReadOnly = true;
this.txtIdag_2.TabIndex = 15;
this.txtIdag_2.Text = "";
//
// txtIdag_1
//
this.txtIdag_1.Location = new System.Drawing.Point(168, 152);
this.txtIdag_1.Name = "txtIdag_1";
this.txtIdag_1.ReadOnly = true;
this.txtIdag_1.TabIndex = 14;
this.txtIdag_1.Text = "";
//
// txtNavn
//
this.txtNavn.Location = new System.Drawing.Point(168, 112);
this.txtNavn.Name = "txtNavn";
this.txtNavn.ReadOnly = true;
this.txtNavn.Size = new System.Drawing.Size(192, 24);
this.txtNavn.TabIndex = 13;
this.txtNavn.Text = "";
//
// txtNummer
//
this.txtNummer.Location = new System.Drawing.Point(168, 72);
this.txtNummer.Name = "txtNummer";
this.txtNummer.ReadOnly = true;
this.txtNummer.Size = new System.Drawing.Size(192, 24);
this.txtNummer.TabIndex = 12;
this.txtNummer.Text = "";
//
// txtKortnr
//
this.txtKortnr.Location = new System.Drawing.Point(168, 32);
this.txtKortnr.Name = "txtKortnr";
this.txtKortnr.Size = new System.Drawing.Size(152, 24);
this.txtKortnr.TabIndex = 11;
this.txtKortnr.Text = "";
//
// lblOperation
//
this.lblOperation.Location = new System.Drawing.Point(16, 472);
this.lblOperation.Name = "lblOperation";
this.lblOperation.TabIndex = 10;
this.lblOperation.Text = "Operation";
this.lblOperation.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblBeskrivelse
//
this.lblBeskrivelse.Location = new System.Drawing.Point(16, 392);
this.lblBeskrivelse.Name = "lblBeskrivelse";
this.lblBeskrivelse.TabIndex = 9;
this.lblBeskrivelse.Text = "Beskrivelse";
this.lblBeskrivelse.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblOrdreNummer
//
this.lblOrdreNummer.Location = new System.Drawing.Point(16, 352);
this.lblOrdreNummer.Name = "lblOrdreNummer";
this.lblOrdreNummer.Size = new System.Drawing.Size(104, 23);
this.lblOrdreNummer.TabIndex = 8;
this.lblOrdreNummer.Text = "Ordrenummer";
this.lblOrdreNummer.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblOrdreType
//
this.lblOrdreType.Location = new System.Drawing.Point(16, 312);
this.lblOrdreType.Name = "lblOrdreType";
this.lblOrdreType.TabIndex = 7;
this.lblOrdreType.Text = "Ordretype";
this.lblOrdreType.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblStoptidspunkt
//
this.lblStoptidspunkt.Location = new System.Drawing.Point(16, 272);
this.lblStoptidspunkt.Name = "lblStoptidspunkt";
this.lblStoptidspunkt.TabIndex = 6;
this.lblStoptidspunkt.Text = "Stoptidspunkt";
this.lblStoptidspunkt.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblStarttidspunkt
//
this.lblStarttidspunkt.Location = new System.Drawing.Point(16, 232);
this.lblStarttidspunkt.Name = "lblStarttidspunkt";
this.lblStarttidspunkt.TabIndex = 5;
this.lblStarttidspunkt.Text = "Starttidspunkt";
this.lblStarttidspunkt.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblPeriode
//
this.lblPeriode.Location = new System.Drawing.Point(16, 192);
this.lblPeriode.Name = "lblPeriode";
this.lblPeriode.TabIndex = 4;
this.lblPeriode.Text = "Periode";
this.lblPeriode.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblIdag
//
this.lblIdag.Location = new System.Drawing.Point(16, 152);
this.lblIdag.Name = "lblIdag";
this.lblIdag.TabIndex = 3;
this.lblIdag.Text = "Idag";
this.lblIdag.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblNavn
//
this.lblNavn.Location = new System.Drawing.Point(16, 112);
this.lblNavn.Name = "lblNavn";
this.lblNavn.TabIndex = 2;
this.lblNavn.Text = "Navn";
this.lblNavn.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblNummer
//
this.lblNummer.Location = new System.Drawing.Point(16, 72);
this.lblNummer.Name = "lblNummer";
this.lblNummer.TabIndex = 1;
this.lblNummer.Text = "Nummer";
this.lblNummer.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lblKortnr
//
this.lblKortnr.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblKortnr.Location = new System.Drawing.Point(16, 32);
this.lblKortnr.Name = "lblKortnr";
this.lblKortnr.Size = new System.Drawing.Size(100, 24);
this.lblKortnr.TabIndex = 0;
this.lblKortnr.Text = "Kortnr";
this.lblKortnr.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// txtOperation_2
//
this.txtOperation_2.Location = new System.Drawing.Point(168, 512);
this.txtOperation_2.Name = "txtOperation_2";
this.txtOperation_2.ReadOnly = true;
this.txtOperation_2.Size = new System.Drawing.Size(304, 24);
this.txtOperation_2.TabIndex = 27;
this.txtOperation_2.Text = "";
//
// button1
//
this.button1.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.button1.ForeColor = System.Drawing.Color.Black;
this.button1.Location = new System.Drawing.Point(320, 584);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(88, 32);
this.button1.TabIndex = 1;
this.button1.Text = "Godkend";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(424, 584);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(32, 32);
this.button2.TabIndex = 2;
//
// button3
//
this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.button3.ForeColor = System.Drawing.Color.Black;
this.button3.Location = new System.Drawing.Point(472, 584);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(88, 32);
this.button3.TabIndex = 3;
this.button3.Text = "Job";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// TidsurDialog
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(584, 645);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.groupBox1);
this.ForeColor = System.Drawing.SystemColors.ActiveBorder;
this.Name = "TidsurDialog";
this.Text = "Tidsur";
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void button1_Click(object sender, System.EventArgs e)
{
}
private void button3_Click(object sender, System.EventArgs e)
{
for(int i = 0; i<10; i++)
{
this.TxtKortnr = "Trykket "+i+" gange";
Thread.Sleep(500);
}
this.TxtKortnr = "";
}
public string LblKortnr
{
get {return this.lblKortnr.Text;}
set{this.lblKortnr.Text = value;}
}
public string TxtKortnr
{
get {return this.txtKortnr.Text;}
set{this.txtKortnr.Text = value;}
}
public string LblNummer
{
get{return this.lblNummer.Text;}
set{this.lblNummer.Text = value;}
}
public string TxtNummer
{
get{return this.txtNummer.Text;}
set{this.txtNummer.Text = value;}
}
public string LblNavn
{
get{return this.lblNavn.Text;}
set{this.lblNavn.Text = value;}
}
public string TxtNavn
{
get{return this.txtNavn.Text;}
set{this.txtNavn.Text = value;}
}
public string LblIdag
{
get{return this.lblIdag.Text;}
set{this.lblIdag.Text = value;}
}
public string TxtIdag_1
{
get{return this.txtIdag_1.Text;}
set{this.txtIdag_1.Text = value;}
}
public string TxtIdag_2
{
get{return this.txtIdag_2.Text;}
set{this.txtIdag_2.Text = value;}
}
public string LblPeriode
{
get{return this.lblPeriode.Text;}
set{this.lblPeriode.Text = value;}
}
public string TxtPeriode_1
{
get{return this.txtPeriode_1.Text;}
set{this.txtPeriode_1.Text = value;}
}
public string TxtPeriode_2
{
get{return this.txtPeriode_2.Text;}
set{this.txtPeriode_2.Text = value;}
}
public string LblStarttidspunkt
{
get{return this.lblStarttidspunkt.Text;}
set{this.lblStarttidspunkt.Text = value;}
}
public string TxtStarttidspunkt_1
{
get{return this.txtStarttidspunkt_1.Text;}
set{this.txtStarttidspunkt_1.Text = value;}
}
public string TxtStarttidspunkt_2
{
get{return this.txtStarttidspunkt_2.Text;}
set{this.txtStarttidspunkt_2.Text = value;}
}
public string LblStoptidspunkt
{
get{return this.lblStoptidspunkt.Text;}
set{this.lblStoptidspunkt.Text= value;}
}
public string TxtStoptidspunkt_1
{
get{return this.txtStoptidspunkt_1.Text;}
set{this.txtStoptidspunkt_1.Text = value;}
}
public string TxtStoptidspunkt_2
{
get{return this.txtStoptidspunkt_2.Text;}
set{this.txtStoptidspunkt_2.Text = value;}
}
public string LblOrdreType
{
get{return this.lblOrdreType.Text;}
set{this.lblOrdreType.Text = value;}
}
public string TxtOrdretype
{
get{return this.txtOrdretype.Text;}
set{this.txtOrdretype.Text = value;}
}
public string LblOrdreNummer
{
get{return this.lblOrdreNummer.Text;}
set{this.lblOrdreNummer.Text = value;}
}
public string TxtOrdrenummer
{
get{return this.txtOrdreNummer.Text;}
set{this.txtOrdreNummer.Text = value;}
}
public string LblBeskrivelse
{
get{return this.lblBeskrivelse.Text;}
set{this.lblBeskrivelse.Text = value;}
}
public string TxtBeskrivelse_1
{
get{return this.txtBeskrivelse_1.Text;}
set{this.txtBeskrivelse_1.Text = value;}
}
public string TxtBeskrivelse_2
{
get{return this.txtBeskrivelse_2.Text;}
set{this.txtBeskrivelse_2.Text = value;}
}
public string LblOperation
{
get{return this.lblOperation.Text;}
set{this.lblOperation.Text = value;}
}
public string TxtOperation_1
{
get{return this.txtOperation_1.Text;}
set{this.txtOperation_1.Text = value;}
}
public string TxtOperation_2
{
get{return this.txtOperation_2.Text;}
set{this.txtOperation_2.Text = value;}
}
public string TextBox18
{
get{return this.textBox18.Text;}
set{this.textBox18.Text = value;}
}
[STAThread]
static void Main()
{
Application.Run(new TidsurDialog());
}
}
}