예제 #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 void InitializeComponent()
 {
     this.lblView = new Label();
     this.listView = new ListView();
     this.ScheduleName = ((ColumnHeader) (new ColumnHeader()));
     this.ScheduleFile = ((ColumnHeader) (new ColumnHeader()));
     this.ScheduleTime = ((ColumnHeader) (new ColumnHeader()));
     this.lblName = new Label();
     this.txtName = new TextBox();
     this.lblFile = new Label();
     this.txtFile = new TextBox();
     this.lblTime = new Label();
     this.timeSetControl = new TimeSet.TimeSetControl();
     this.btnBrowse = new Button();
     this.btnAdd = new Button();
     this.openFileDialog = new OpenFileDialog();
     this.btnRemove = new Button();
     this.btnEdit = new Button();
     this.SuspendLayout();
     //
     // lblView
     //
     this.lblView.Location = new System.Drawing.Point(8, 160);
     this.lblView.Name = "lblView";
     this.lblView.Size = new System.Drawing.Size(192, 23);
     this.lblView.TabIndex = 1;
     this.lblView.Text = "Currently Scheduled Items";
     //
     // listView
     //
     this.listView.Anchor = ((AnchorStyles) ((((AnchorStyles.Top | AnchorStyles.Bottom)
     | AnchorStyles.Left)
     | AnchorStyles.Right)));
     this.listView.Columns.AddRange(new ColumnHeader[] {
     this.ScheduleName,
     this.ScheduleFile,
     this.ScheduleTime});
     this.listView.FullRowSelect = true;
     this.listView.Location = new System.Drawing.Point(8, 184);
     this.listView.MultiSelect = false;
     this.listView.Name = "listView";
     this.listView.Size = new System.Drawing.Size(440, 104);
     this.listView.TabIndex = 2;
     this.listView.UseCompatibleStateImageBehavior = false;
     this.listView.View = View.Details;
     //
     // ScheduleName
     //
     this.ScheduleName.Text = "Schedule Name";
     this.ScheduleName.Width = 100;
     //
     // ScheduleFile
     //
     this.ScheduleFile.Text = "File";
     this.ScheduleFile.Width = 200;
     //
     // ScheduleTime
     //
     this.ScheduleTime.Text = "Time";
     this.ScheduleTime.Width = 100;
     //
     // lblName
     //
     this.lblName.Location = new System.Drawing.Point(8, 8);
     this.lblName.Name = "lblName";
     this.lblName.Size = new System.Drawing.Size(100, 16);
     this.lblName.TabIndex = 3;
     this.lblName.Text = "Schedule Name";
     //
     // txtName
     //
     this.txtName.Anchor = ((AnchorStyles) ((((AnchorStyles.Top | AnchorStyles.Bottom)
     | AnchorStyles.Left)
     | AnchorStyles.Right)));
     this.txtName.Location = new System.Drawing.Point(8, 24);
     this.txtName.Name = "txtName";
     this.txtName.Size = new System.Drawing.Size(120, 20);
     this.txtName.TabIndex = 4;
     //
     // lblFile
     //
     this.lblFile.Location = new System.Drawing.Point(8, 56);
     this.lblFile.Name = "lblFile";
     this.lblFile.Size = new System.Drawing.Size(128, 16);
     this.lblFile.TabIndex = 5;
     this.lblFile.Text = "File To Schedule";
     //
     // txtFile
     //
     this.txtFile.Anchor = ((AnchorStyles) ((((AnchorStyles.Top | AnchorStyles.Bottom)
     | AnchorStyles.Left)
     | AnchorStyles.Right)));
     this.txtFile.Location = new System.Drawing.Point(8, 72);
     this.txtFile.Name = "txtFile";
     this.txtFile.Size = new System.Drawing.Size(160, 20);
     this.txtFile.TabIndex = 6;
     //
     // lblTime
     //
     this.lblTime.Location = new System.Drawing.Point(8, 112);
     this.lblTime.Name = "lblTime";
     this.lblTime.Size = new System.Drawing.Size(80, 16);
     this.lblTime.TabIndex = 7;
     this.lblTime.Text = "Time To Run";
     //
     // timeSetControl
     //
     this.timeSetControl.Hours = new decimal(new int[] {
     0,
     0,
     0,
     0});
     this.timeSetControl.Location = new System.Drawing.Point(8, 128);
     this.timeSetControl.Minutes = new decimal(new int[] {
     0,
     0,
     0,
     0});
     this.timeSetControl.Name = "timeSetControl";
     this.timeSetControl.Seconds = new decimal(new int[] {
     0,
     0,
     0,
     0});
     this.timeSetControl.ShowHours = true;
     this.timeSetControl.ShowHoursLetter = true;
     this.timeSetControl.ShowMinutes = true;
     this.timeSetControl.ShowMinutesLetter = true;
     this.timeSetControl.ShowSeconds = false;
     this.timeSetControl.ShowSecondsLetter = false;
     this.timeSetControl.Size = new System.Drawing.Size(160, 32);
     this.timeSetControl.TabIndex = 8;
     //
     // btnBrowse
     //
     this.btnBrowse.Anchor = ((AnchorStyles) ((AnchorStyles.Top | AnchorStyles.Right)));
     this.btnBrowse.Location = new System.Drawing.Point(200, 72);
     this.btnBrowse.Name = "btnBrowse";
     this.btnBrowse.Size = new System.Drawing.Size(75, 23);
     this.btnBrowse.TabIndex = 11;
     this.btnBrowse.Text = "Browse";
     this.btnBrowse.Click += new System.EventHandler(this.OnBrowse);
     //
     // btnAdd
     //
     this.btnAdd.Anchor = ((AnchorStyles) ((AnchorStyles.Top | AnchorStyles.Right)));
     this.btnAdd.Location = new System.Drawing.Point(368, 8);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.Size = new System.Drawing.Size(75, 23);
     this.btnAdd.TabIndex = 10;
     this.btnAdd.Text = "Add";
     this.btnAdd.Click += new System.EventHandler(this.OnAdd);
     //
     // btnRemove
     //
     this.btnRemove.Anchor = ((AnchorStyles) ((AnchorStyles.Top | AnchorStyles.Right)));
     this.btnRemove.Location = new System.Drawing.Point(368, 40);
     this.btnRemove.Name = "btnRemove";
     this.btnRemove.Size = new System.Drawing.Size(75, 23);
     this.btnRemove.TabIndex = 12;
     this.btnRemove.Text = "Remove";
     this.btnRemove.Click += new System.EventHandler(this.OnRemoveButton);
     //
     // btnEdit
     //
     this.btnEdit.Anchor = ((AnchorStyles) ((AnchorStyles.Top | AnchorStyles.Right)));
     this.btnEdit.Location = new System.Drawing.Point(368, 72);
     this.btnEdit.Name = "btnEdit";
     this.btnEdit.Size = new System.Drawing.Size(75, 23);
     this.btnEdit.TabIndex = 13;
     this.btnEdit.Text = "Edit";
     this.btnEdit.Click += new System.EventHandler(this.OnEdit);
     //
     // ScheduleForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(456, 302);
     this.Controls.Add(this.btnEdit);
     this.Controls.Add(this.btnRemove);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnBrowse);
     this.Controls.Add(this.timeSetControl);
     this.Controls.Add(this.lblTime);
     this.Controls.Add(this.txtFile);
     this.Controls.Add(this.lblFile);
     this.Controls.Add(this.txtName);
     this.Controls.Add(this.lblName);
     this.Controls.Add(this.listView);
     this.Controls.Add(this.lblView);
     this.Name = "ScheduleForm";
     this.Text = "Schedule Example";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 void InitializeComponent()
 {
     this.lblView        = new Label();
     this.listView       = new ListView();
     this.ScheduleName   = ((ColumnHeader)(new ColumnHeader()));
     this.ScheduleFile   = ((ColumnHeader)(new ColumnHeader()));
     this.ScheduleTime   = ((ColumnHeader)(new ColumnHeader()));
     this.lblName        = new Label();
     this.txtName        = new TextBox();
     this.lblFile        = new Label();
     this.txtFile        = new TextBox();
     this.lblTime        = new Label();
     this.timeSetControl = new TimeSet.TimeSetControl();
     this.btnBrowse      = new Button();
     this.btnAdd         = new Button();
     this.openFileDialog = new OpenFileDialog();
     this.btnRemove      = new Button();
     this.btnEdit        = new Button();
     this.SuspendLayout();
     //
     // lblView
     //
     this.lblView.Location = new System.Drawing.Point(8, 160);
     this.lblView.Name     = "lblView";
     this.lblView.Size     = new System.Drawing.Size(192, 23);
     this.lblView.TabIndex = 1;
     this.lblView.Text     = "Currently Scheduled Items";
     //
     // listView
     //
     this.listView.Anchor = ((AnchorStyles)((((AnchorStyles.Top | AnchorStyles.Bottom)
                                              | AnchorStyles.Left)
                                             | AnchorStyles.Right)));
     this.listView.Columns.AddRange(new ColumnHeader[] {
         this.ScheduleName,
         this.ScheduleFile,
         this.ScheduleTime
     });
     this.listView.FullRowSelect = true;
     this.listView.Location      = new System.Drawing.Point(8, 184);
     this.listView.MultiSelect   = false;
     this.listView.Name          = "listView";
     this.listView.Size          = new System.Drawing.Size(440, 104);
     this.listView.TabIndex      = 2;
     this.listView.UseCompatibleStateImageBehavior = false;
     this.listView.View = View.Details;
     //
     // ScheduleName
     //
     this.ScheduleName.Text  = "Schedule Name";
     this.ScheduleName.Width = 100;
     //
     // ScheduleFile
     //
     this.ScheduleFile.Text  = "File";
     this.ScheduleFile.Width = 200;
     //
     // ScheduleTime
     //
     this.ScheduleTime.Text  = "Time";
     this.ScheduleTime.Width = 100;
     //
     // lblName
     //
     this.lblName.Location = new System.Drawing.Point(8, 8);
     this.lblName.Name     = "lblName";
     this.lblName.Size     = new System.Drawing.Size(100, 16);
     this.lblName.TabIndex = 3;
     this.lblName.Text     = "Schedule Name";
     //
     // txtName
     //
     this.txtName.Anchor = ((AnchorStyles)((((AnchorStyles.Top | AnchorStyles.Bottom)
                                             | AnchorStyles.Left)
                                            | AnchorStyles.Right)));
     this.txtName.Location = new System.Drawing.Point(8, 24);
     this.txtName.Name     = "txtName";
     this.txtName.Size     = new System.Drawing.Size(120, 20);
     this.txtName.TabIndex = 4;
     //
     // lblFile
     //
     this.lblFile.Location = new System.Drawing.Point(8, 56);
     this.lblFile.Name     = "lblFile";
     this.lblFile.Size     = new System.Drawing.Size(128, 16);
     this.lblFile.TabIndex = 5;
     this.lblFile.Text     = "File To Schedule";
     //
     // txtFile
     //
     this.txtFile.Anchor = ((AnchorStyles)((((AnchorStyles.Top | AnchorStyles.Bottom)
                                             | AnchorStyles.Left)
                                            | AnchorStyles.Right)));
     this.txtFile.Location = new System.Drawing.Point(8, 72);
     this.txtFile.Name     = "txtFile";
     this.txtFile.Size     = new System.Drawing.Size(160, 20);
     this.txtFile.TabIndex = 6;
     //
     // lblTime
     //
     this.lblTime.Location = new System.Drawing.Point(8, 112);
     this.lblTime.Name     = "lblTime";
     this.lblTime.Size     = new System.Drawing.Size(80, 16);
     this.lblTime.TabIndex = 7;
     this.lblTime.Text     = "Time To Run";
     //
     // timeSetControl
     //
     this.timeSetControl.Hours = new decimal(new int[] {
         0,
         0,
         0,
         0
     });
     this.timeSetControl.Location = new System.Drawing.Point(8, 128);
     this.timeSetControl.Minutes  = new decimal(new int[] {
         0,
         0,
         0,
         0
     });
     this.timeSetControl.Name    = "timeSetControl";
     this.timeSetControl.Seconds = new decimal(new int[] {
         0,
         0,
         0,
         0
     });
     this.timeSetControl.ShowHours         = true;
     this.timeSetControl.ShowHoursLetter   = true;
     this.timeSetControl.ShowMinutes       = true;
     this.timeSetControl.ShowMinutesLetter = true;
     this.timeSetControl.ShowSeconds       = false;
     this.timeSetControl.ShowSecondsLetter = false;
     this.timeSetControl.Size     = new System.Drawing.Size(160, 32);
     this.timeSetControl.TabIndex = 8;
     //
     // btnBrowse
     //
     this.btnBrowse.Anchor   = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
     this.btnBrowse.Location = new System.Drawing.Point(200, 72);
     this.btnBrowse.Name     = "btnBrowse";
     this.btnBrowse.Size     = new System.Drawing.Size(75, 23);
     this.btnBrowse.TabIndex = 11;
     this.btnBrowse.Text     = "Browse";
     this.btnBrowse.Click   += new System.EventHandler(this.OnBrowse);
     //
     // btnAdd
     //
     this.btnAdd.Anchor   = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
     this.btnAdd.Location = new System.Drawing.Point(368, 8);
     this.btnAdd.Name     = "btnAdd";
     this.btnAdd.Size     = new System.Drawing.Size(75, 23);
     this.btnAdd.TabIndex = 10;
     this.btnAdd.Text     = "Add";
     this.btnAdd.Click   += new System.EventHandler(this.OnAdd);
     //
     // btnRemove
     //
     this.btnRemove.Anchor   = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
     this.btnRemove.Location = new System.Drawing.Point(368, 40);
     this.btnRemove.Name     = "btnRemove";
     this.btnRemove.Size     = new System.Drawing.Size(75, 23);
     this.btnRemove.TabIndex = 12;
     this.btnRemove.Text     = "Remove";
     this.btnRemove.Click   += new System.EventHandler(this.OnRemoveButton);
     //
     // btnEdit
     //
     this.btnEdit.Anchor   = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
     this.btnEdit.Location = new System.Drawing.Point(368, 72);
     this.btnEdit.Name     = "btnEdit";
     this.btnEdit.Size     = new System.Drawing.Size(75, 23);
     this.btnEdit.TabIndex = 13;
     this.btnEdit.Text     = "Edit";
     this.btnEdit.Click   += new System.EventHandler(this.OnEdit);
     //
     // ScheduleForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(456, 302);
     this.Controls.Add(this.btnEdit);
     this.Controls.Add(this.btnRemove);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.btnBrowse);
     this.Controls.Add(this.timeSetControl);
     this.Controls.Add(this.lblTime);
     this.Controls.Add(this.txtFile);
     this.Controls.Add(this.lblFile);
     this.Controls.Add(this.txtName);
     this.Controls.Add(this.lblName);
     this.Controls.Add(this.listView);
     this.Controls.Add(this.lblView);
     this.Name = "ScheduleForm";
     this.Text = "Schedule Example";
     this.ResumeLayout(false);
     this.PerformLayout();
 }