using Microsoft.IdentityModel.Tokens; using TimeTable.controll; using TimeTable.model; namespace TimeTable.view { partial class RowEdit { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { uidTxt = new Label(); startTxt = new Label(); EndTxt = new Label(); textTxt = new Label(); uidLbl = new Label(); startDatePicker = new DateTimePicker(); endDatePicker = new DateTimePicker(); textBox = new TextBox(); btnSave = new Button(); btnCancel = new Button(); startTimePicker = new DateTimePicker(); endTimePicker = new DateTimePicker(); SuspendLayout(); // // uidTxt // uidTxt.AutoSize = true; uidTxt.Location = new Point(12, 20); uidTxt.Name = "uidTxt"; uidTxt.Size = new Size(34, 20); uidTxt.TabIndex = 0; uidTxt.Text = "UID"; // // startTxt // startTxt.AutoSize = true; startTxt.Location = new Point(12, 54); startTxt.Name = "startTxt"; startTxt.Size = new Size(40, 20); startTxt.TabIndex = 1; startTxt.Text = "Start"; // // EndTxt // EndTxt.AutoSize = true; EndTxt.Location = new Point(12, 88); EndTxt.Name = "EndTxt"; EndTxt.Size = new Size(34, 20); EndTxt.TabIndex = 2; EndTxt.Text = "End"; // // textTxt // textTxt.AutoSize = true; textTxt.Location = new Point(12, 126); textTxt.Name = "textTxt"; textTxt.Size = new Size(36, 20); textTxt.TabIndex = 3; textTxt.Text = "Text"; // // uidLbl // uidLbl.AutoSize = true; uidLbl.Location = new Point(71, 20); uidLbl.Name = "uidLbl"; uidLbl.Size = new Size(34, 20); uidLbl.TabIndex = 4; uidLbl.Text = "UID"; // // startDatePicker // startDatePicker.Location = new Point(71, 49); startDatePicker.Name = "startDatePicker"; startDatePicker.Size = new Size(186, 27); startDatePicker.TabIndex = 5; // // endDatePicker // endDatePicker.Location = new Point(71, 88); endDatePicker.Name = "endDatePicker"; endDatePicker.Size = new Size(186, 27); endDatePicker.TabIndex = 6; // // textBox // textBox.Location = new Point(71, 126); textBox.Name = "textBox"; textBox.Size = new Size(300, 27); textBox.TabIndex = 7; // // btnSave // btnSave.Location = new Point(156, 173); btnSave.Name = "btnSave"; btnSave.Size = new Size(101, 30); btnSave.TabIndex = 8; btnSave.Text = "Save"; btnSave.UseVisualStyleBackColor = true; btnSave.Click += button1_Click; // // btnCancel // btnCancel.Location = new Point(270, 173); btnCancel.Name = "btnCancel"; btnCancel.Size = new Size(101, 30); btnCancel.TabIndex = 9; btnCancel.Text = "Cancel"; btnCancel.UseVisualStyleBackColor = true; btnCancel.Click += btnCancelCmd; // // startTimePicker // startTimePicker.Format = DateTimePickerFormat.Time; startTimePicker.Location = new Point(263, 49); startTimePicker.Name = "startTimePicker"; startTimePicker.Size = new Size(108, 27); startTimePicker.TabIndex = 10; // // endTimePicker // endTimePicker.Format = DateTimePickerFormat.Time; endTimePicker.Location = new Point(263, 88); endTimePicker.Name = "endTimePicker"; endTimePicker.Size = new Size(108, 27); endTimePicker.TabIndex = 11; // // RowEdit // AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(382, 237); Controls.Add(endTimePicker); Controls.Add(startTimePicker); Controls.Add(btnCancel); Controls.Add(btnSave); Controls.Add(textBox); Controls.Add(endDatePicker); Controls.Add(startDatePicker); Controls.Add(uidLbl); Controls.Add(textTxt); Controls.Add(EndTxt); Controls.Add(startTxt); Controls.Add(uidTxt); FormBorderStyle = FormBorderStyle.FixedSingle; Name = "RowEdit"; Text = "RowEdit"; ResumeLayout(false); PerformLayout(); } private void btnCancelCmd(object sender, EventArgs e) { this.Close(); } #endregion public void Data(string uid, string start, string end, string text) { uidLbl.Text = uid; if (!start.IsNullOrEmpty()) { startDatePicker.Text = start; } if (!end.IsNullOrEmpty()) { endDatePicker.Text = end; } if (!text.IsNullOrEmpty()) { textBox.Text = text; } } private Label uidTxt; private Label startTxt; private Label EndTxt; private Label textTxt; private Label uidLbl; private DateTimePicker startDatePicker; private DateTimePicker endDatePicker; private TextBox textBox; private Button btnSave; private Button btnCancel; private DateTimePicker startTimePicker; private DateTimePicker endTimePicker; } }