コード例 #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
     this.applicationsList    = new PTM.View.Controls.TreeListViewComponents.TreeListView();
     this.colName             = new System.Windows.Forms.ColumnHeader();
     this.colActiveTime       = new System.Windows.Forms.ColumnHeader();
     this.colAppPercent       = new System.Windows.Forms.ColumnHeader();
     this.groupBox3           = new System.Windows.Forms.GroupBox();
     this.groupBox4           = new System.Windows.Forms.GroupBox();
     this.AppsActiveTimeValue = new System.Windows.Forms.Label();
     this.label8             = new System.Windows.Forms.Label();
     this.browseButton       = new System.Windows.Forms.Button();
     this.parentTaskComboBox = new System.Windows.Forms.ComboBox();
     this.label2             = new System.Windows.Forms.Label();
     this.toDateTimePicker   = new System.Windows.Forms.DateTimePicker();
     this.toRadioButton      = new System.Windows.Forms.RadioButton();
     this.fromRadioButton    = new System.Windows.Forms.RadioButton();
     this.fromDateTimePicker = new System.Windows.Forms.DateTimePicker();
     this.searchButton       = new System.Windows.Forms.Button();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // applicationsList
     //
     this.applicationsList.AllowColumnReorder = true;
     this.applicationsList.Anchor             = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                       | System.Windows.Forms.AnchorStyles.Left)
                                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.applicationsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.colName,
         this.colActiveTime,
         this.colAppPercent
     });
     treeListViewItemCollectionComparer1.Column    = 0;
     treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.Ascending;
     this.applicationsList.Comparer    = treeListViewItemCollectionComparer1;
     this.applicationsList.Location    = new System.Drawing.Point(8, 16);
     this.applicationsList.MultiSelect = false;
     this.applicationsList.Name        = "applicationsList";
     this.applicationsList.Size        = new System.Drawing.Size(376, 136);
     this.applicationsList.TabIndex    = 0;
     this.applicationsList.UseCompatibleStateImageBehavior = false;
     //
     // colName
     //
     this.colName.Text  = "Name";
     this.colName.Width = 233;
     //
     // colActiveTime
     //
     this.colActiveTime.Text      = "Active Time";
     this.colActiveTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.colActiveTime.Width     = 78;
     //
     // colAppPercent
     //
     this.colAppPercent.Text      = "Percent";
     this.colAppPercent.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // groupBox3
     //
     this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox3.Controls.Add(this.applicationsList);
     this.groupBox3.ForeColor = System.Drawing.Color.Blue;
     this.groupBox3.Location  = new System.Drawing.Point(8, 64);
     this.groupBox3.Name      = "groupBox3";
     this.groupBox3.Size      = new System.Drawing.Size(392, 160);
     this.groupBox3.TabIndex  = 3;
     this.groupBox3.TabStop   = false;
     this.groupBox3.Text      = "Applications";
     //
     // groupBox4
     //
     this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox4.Controls.Add(this.AppsActiveTimeValue);
     this.groupBox4.Controls.Add(this.label8);
     this.groupBox4.ForeColor = System.Drawing.Color.Blue;
     this.groupBox4.Location  = new System.Drawing.Point(8, 232);
     this.groupBox4.Name      = "groupBox4";
     this.groupBox4.Size      = new System.Drawing.Size(392, 48);
     this.groupBox4.TabIndex  = 4;
     this.groupBox4.TabStop   = false;
     this.groupBox4.Text      = "Totals";
     //
     // AppsActiveTimeValue
     //
     this.AppsActiveTimeValue.ForeColor = System.Drawing.Color.Black;
     this.AppsActiveTimeValue.Location  = new System.Drawing.Point(112, 16);
     this.AppsActiveTimeValue.Name      = "AppsActiveTimeValue";
     this.AppsActiveTimeValue.Size      = new System.Drawing.Size(80, 23);
     this.AppsActiveTimeValue.TabIndex  = 1;
     //
     // label8
     //
     this.label8.ForeColor = System.Drawing.Color.Black;
     this.label8.Location  = new System.Drawing.Point(8, 16);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(104, 23);
     this.label8.TabIndex  = 0;
     this.label8.Text      = "Apps. Active Time:";
     //
     // browseButton
     //
     this.browseButton.Location = new System.Drawing.Point(320, 4);
     this.browseButton.Name     = "browseButton";
     this.browseButton.Size     = new System.Drawing.Size(75, 23);
     this.browseButton.TabIndex = 2;
     this.browseButton.Text     = "Browse...";
     this.browseButton.Click   += new System.EventHandler(this.browseButton_Click);
     //
     // parentTaskComboBox
     //
     this.parentTaskComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.parentTaskComboBox.Location      = new System.Drawing.Point(80, 5);
     this.parentTaskComboBox.MaxLength     = 50;
     this.parentTaskComboBox.Name          = "parentTaskComboBox";
     this.parentTaskComboBox.Size          = new System.Drawing.Size(232, 21);
     this.parentTaskComboBox.TabIndex      = 1;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(8, 4);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(72, 23);
     this.label2.TabIndex  = 6;
     this.label2.Text      = "Detail Level:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // toDateTimePicker
     //
     this.toDateTimePicker.CustomFormat = "";
     this.toDateTimePicker.Enabled      = false;
     this.toDateTimePicker.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     this.toDateTimePicker.Location     = new System.Drawing.Point(224, 32);
     this.toDateTimePicker.Name         = "toDateTimePicker";
     this.toDateTimePicker.Size         = new System.Drawing.Size(88, 20);
     this.toDateTimePicker.TabIndex     = 21;
     this.toDateTimePicker.Value        = new System.DateTime(2006, 10, 2, 0, 0, 0, 0);
     //
     // toRadioButton
     //
     this.toRadioButton.Location        = new System.Drawing.Point(186, 32);
     this.toRadioButton.Name            = "toRadioButton";
     this.toRadioButton.Size            = new System.Drawing.Size(44, 24);
     this.toRadioButton.TabIndex        = 20;
     this.toRadioButton.Text            = "To:";
     this.toRadioButton.CheckedChanged += new System.EventHandler(this.toRadioButton_CheckedChanged);
     //
     // fromRadioButton
     //
     this.fromRadioButton.Checked         = true;
     this.fromRadioButton.Location        = new System.Drawing.Point(28, 32);
     this.fromRadioButton.Name            = "fromRadioButton";
     this.fromRadioButton.Size            = new System.Drawing.Size(54, 24);
     this.fromRadioButton.TabIndex        = 19;
     this.fromRadioButton.TabStop         = true;
     this.fromRadioButton.Text            = "Date:";
     this.fromRadioButton.CheckedChanged += new System.EventHandler(this.fromRadioButton_CheckedChanged);
     //
     // fromDateTimePicker
     //
     this.fromDateTimePicker.CustomFormat = "";
     this.fromDateTimePicker.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     this.fromDateTimePicker.Location     = new System.Drawing.Point(80, 32);
     this.fromDateTimePicker.Name         = "fromDateTimePicker";
     this.fromDateTimePicker.Size         = new System.Drawing.Size(88, 20);
     this.fromDateTimePicker.TabIndex     = 18;
     this.fromDateTimePicker.Value        = new System.DateTime(2006, 10, 2, 0, 0, 0, 0);
     //
     // searchButton
     //
     this.searchButton.Location = new System.Drawing.Point(320, 32);
     this.searchButton.Name     = "searchButton";
     this.searchButton.Size     = new System.Drawing.Size(75, 23);
     this.searchButton.TabIndex = 22;
     this.searchButton.Text     = "Search";
     this.searchButton.Click   += new System.EventHandler(this.searchButton_Click);
     //
     // StatisticsControl
     //
     this.Controls.Add(this.toDateTimePicker);
     this.Controls.Add(this.fromDateTimePicker);
     this.Controls.Add(this.searchButton);
     this.Controls.Add(this.browseButton);
     this.Controls.Add(this.parentTaskComboBox);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.toRadioButton);
     this.Controls.Add(this.fromRadioButton);
     this.Name  = "StatisticsControl";
     this.Size  = new System.Drawing.Size(408, 288);
     this.Load += new System.EventHandler(this.Statistics_Load);
     this.groupBox3.ResumeLayout(false);
     this.groupBox4.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #2
0
ファイル: TasksTreeViewControl.cs プロジェクト: ckolumbus/ptm
 /// <summary>
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
     this.treeMenu = new System.Windows.Forms.ContextMenu();
     this.mnuProperties = new System.Windows.Forms.MenuItem();
     this.menuItem5 = new System.Windows.Forms.MenuItem();
     this.mnuAdd = new System.Windows.Forms.MenuItem();
     this.mnuRename = new System.Windows.Forms.MenuItem();
     this.mnuDelete = new System.Windows.Forms.MenuItem();
     this.treeView = new PTM.View.Controls.TreeListViewComponents.TreeListView();
     this.tasksColumnHeader = new System.Windows.Forms.ColumnHeader();
     this.priorityColumnHeader = new System.Windows.Forms.ColumnHeader();
     this.SuspendLayout();
     //
     // treeMenu
     //
     this.treeMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     this.mnuProperties,
     this.menuItem5,
     this.mnuAdd,
     this.mnuRename,
     this.mnuDelete});
     //
     // mnuProperties
     //
     this.mnuProperties.DefaultItem = true;
     this.mnuProperties.Index = 0;
     this.mnuProperties.Shortcut = System.Windows.Forms.Shortcut.CtrlP;
     this.mnuProperties.Text = "Properties...";
     this.mnuProperties.Click += new System.EventHandler(this.mnuProperties_Click);
     //
     // menuItem5
     //
     this.menuItem5.Index = 1;
     this.menuItem5.Text = "-";
     //
     // mnuAdd
     //
     this.mnuAdd.Index = 2;
     this.mnuAdd.Shortcut = System.Windows.Forms.Shortcut.Ins;
     this.mnuAdd.Text = "Add New";
     this.mnuAdd.Click += new System.EventHandler(this.mnuAdd_Click);
     //
     // mnuRename
     //
     this.mnuRename.Index = 3;
     this.mnuRename.Shortcut = System.Windows.Forms.Shortcut.F2;
     this.mnuRename.Text = "Rename";
     this.mnuRename.Click += new System.EventHandler(this.mnuRename_Click);
     //
     // mnuDelete
     //
     this.mnuDelete.Index = 4;
     this.mnuDelete.Shortcut = System.Windows.Forms.Shortcut.Del;
     this.mnuDelete.Text = "Delete";
     this.mnuDelete.Click += new System.EventHandler(this.mnuDelete_Click);
     //
     // treeView
     //
     this.treeView.AllowColumnReorder = true;
     this.treeView.AllowDrop = true;
     this.treeView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.tasksColumnHeader,
     this.priorityColumnHeader});
     treeListViewItemCollectionComparer1.Column = 0;
     treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.Ascending;
     this.treeView.Comparer = treeListViewItemCollectionComparer1;
     this.treeView.ContextMenu = this.treeMenu;
     this.treeView.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView.HideSelection = false;
     this.treeView.LabelEdit = true;
     this.treeView.Location = new System.Drawing.Point(0, 0);
     this.treeView.MultiSelect = false;
     this.treeView.Name = "treeView";
     this.treeView.ShowGroups = false;
     this.treeView.Size = new System.Drawing.Size(359, 215);
     this.treeView.TabIndex = 0;
     this.treeView.UseCompatibleStateImageBehavior = false;
     //
     // tasksColumnHeader
     //
     this.tasksColumnHeader.Text = "Tasks";
     this.tasksColumnHeader.Width = 294;
     //
     // priorityColumnHeader
     //
     this.priorityColumnHeader.Text = "Priority";
     this.priorityColumnHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // TasksTreeViewControl
     //
     this.Controls.Add(this.treeView);
     this.Name = "TasksTreeViewControl";
     this.Size = new System.Drawing.Size(359, 215);
     this.ResumeLayout(false);
 }
コード例 #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
     this.label1   = new System.Windows.Forms.Label();
     this.logDate  = new System.Windows.Forms.DateTimePicker();
     this.taskList = new PTM.View.Controls.TreeListViewComponents.TreeListView();
     this.TaskDescriptionHeader = new System.Windows.Forms.ColumnHeader();
     this.DurationTaskHeader    = new System.Windows.Forms.ColumnHeader();
     this.StartTimeHeader       = new System.Windows.Forms.ColumnHeader();
     this.groupBox1             = new System.Windows.Forms.GroupBox();
     this.trackBar1             = new System.Windows.Forms.TrackBar();
     this.label2       = new System.Windows.Forms.Label();
     this.label3       = new System.Windows.Forms.Label();
     this.progressBar1 = new System.Windows.Forms.ProgressBar();
     this.trackBar2    = new System.Windows.Forms.TrackBar();
     this.trackBar3    = new System.Windows.Forms.TrackBar();
     this.label4       = new System.Windows.Forms.Label();
     this.label5       = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(8, 9);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(40, 16);
     this.label1.TabIndex  = 8;
     this.label1.Text      = "Date:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // logDate
     //
     this.logDate.Location = new System.Drawing.Point(48, 7);
     this.logDate.Name     = "logDate";
     this.logDate.Size     = new System.Drawing.Size(248, 20);
     this.logDate.TabIndex = 7;
     //
     // taskList
     //
     this.taskList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.taskList.AutoArrange = false;
     this.taskList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.TaskDescriptionHeader,
         this.DurationTaskHeader,
         this.StartTimeHeader
     });
     treeListViewItemCollectionComparer1.Column    = 0;
     treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.None;
     this.taskList.Comparer      = treeListViewItemCollectionComparer1;
     this.taskList.HideSelection = false;
     this.taskList.Location      = new System.Drawing.Point(8, 169);
     this.taskList.Name          = "taskList";
     this.taskList.Size          = new System.Drawing.Size(376, 102);
     this.taskList.Sorting       = System.Windows.Forms.SortOrder.None;
     this.taskList.TabIndex      = 9;
     this.taskList.UseCompatibleStateImageBehavior = false;
     //
     // TaskDescriptionHeader
     //
     this.TaskDescriptionHeader.Text  = "Task Description";
     this.TaskDescriptionHeader.Width = 226;
     //
     // DurationTaskHeader
     //
     this.DurationTaskHeader.Text  = "Duration";
     this.DurationTaskHeader.Width = 65;
     //
     // StartTimeHeader
     //
     this.StartTimeHeader.Text  = "Start Time";
     this.StartTimeHeader.Width = 80;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Controls.Add(this.trackBar3);
     this.groupBox1.Controls.Add(this.trackBar2);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.trackBar1);
     this.groupBox1.Location = new System.Drawing.Point(8, 33);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(376, 94);
     this.groupBox1.TabIndex = 10;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "groupBox1";
     //
     // trackBar1
     //
     this.trackBar1.LargeChange = 1;
     this.trackBar1.Location    = new System.Drawing.Point(63, 10);
     this.trackBar1.Maximum     = 4;
     this.trackBar1.Name        = "trackBar1";
     this.trackBar1.Size        = new System.Drawing.Size(115, 42);
     this.trackBar1.TabIndex    = 1;
     this.trackBar1.Value       = 2;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(6, 55);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 13);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Energy";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(6, 19);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(56, 13);
     this.label3.TabIndex = 3;
     this.label3.Text     = "Motivation";
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(82, 278);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(302, 23);
     this.progressBar1.TabIndex = 11;
     //
     // trackBar2
     //
     this.trackBar2.LargeChange = 1;
     this.trackBar2.Location    = new System.Drawing.Point(63, 46);
     this.trackBar2.Maximum     = 4;
     this.trackBar2.Name        = "trackBar2";
     this.trackBar2.Size        = new System.Drawing.Size(115, 42);
     this.trackBar2.TabIndex    = 4;
     this.trackBar2.Value       = 2;
     //
     // trackBar3
     //
     this.trackBar3.LargeChange = 1;
     this.trackBar3.Location    = new System.Drawing.Point(255, 10);
     this.trackBar3.Maximum     = 4;
     this.trackBar3.Name        = "trackBar3";
     this.trackBar3.Size        = new System.Drawing.Size(115, 42);
     this.trackBar3.TabIndex    = 5;
     this.trackBar3.Value       = 2;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(173, 16);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(89, 13);
     this.label4.TabIndex = 6;
     this.label4.Text     = "Social adaptation";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(14, 278);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(62, 13);
     this.label5.TabIndex = 12;
     this.label5.Text     = "Day Overall";
     //
     // SubjectiveMetricsControl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.label5);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.taskList);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.logDate);
     this.Name = "SubjectiveMetricsControl";
     this.Size = new System.Drawing.Size(392, 312);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #4
0
ファイル: StatisticsControl.cs プロジェクト: ckolumbus/ptm
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
     this.applicationsList = new PTM.View.Controls.TreeListViewComponents.TreeListView();
     this.colName = new System.Windows.Forms.ColumnHeader();
     this.colActiveTime = new System.Windows.Forms.ColumnHeader();
     this.colAppPercent = new System.Windows.Forms.ColumnHeader();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.groupBox4 = new System.Windows.Forms.GroupBox();
     this.AppsActiveTimeValue = new System.Windows.Forms.Label();
     this.label8 = new System.Windows.Forms.Label();
     this.browseButton = new System.Windows.Forms.Button();
     this.parentTaskComboBox = new System.Windows.Forms.ComboBox();
     this.label2 = new System.Windows.Forms.Label();
     this.toDateTimePicker = new System.Windows.Forms.DateTimePicker();
     this.toRadioButton = new System.Windows.Forms.RadioButton();
     this.fromRadioButton = new System.Windows.Forms.RadioButton();
     this.fromDateTimePicker = new System.Windows.Forms.DateTimePicker();
     this.searchButton = new System.Windows.Forms.Button();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // applicationsList
     //
     this.applicationsList.AllowColumnReorder = true;
     this.applicationsList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.applicationsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.colName,
     this.colActiveTime,
     this.colAppPercent});
     treeListViewItemCollectionComparer1.Column = 0;
     treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.Ascending;
     this.applicationsList.Comparer = treeListViewItemCollectionComparer1;
     this.applicationsList.Location = new System.Drawing.Point(8, 16);
     this.applicationsList.MultiSelect = false;
     this.applicationsList.Name = "applicationsList";
     this.applicationsList.Size = new System.Drawing.Size(376, 136);
     this.applicationsList.TabIndex = 0;
     this.applicationsList.UseCompatibleStateImageBehavior = false;
     //
     // colName
     //
     this.colName.Text = "Name";
     this.colName.Width = 233;
     //
     // colActiveTime
     //
     this.colActiveTime.Text = "Active Time";
     this.colActiveTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.colActiveTime.Width = 78;
     //
     // colAppPercent
     //
     this.colAppPercent.Text = "Percent";
     this.colAppPercent.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // groupBox3
     //
     this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox3.Controls.Add(this.applicationsList);
     this.groupBox3.ForeColor = System.Drawing.Color.Blue;
     this.groupBox3.Location = new System.Drawing.Point(8, 64);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(392, 160);
     this.groupBox3.TabIndex = 3;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Applications";
     //
     // groupBox4
     //
     this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox4.Controls.Add(this.AppsActiveTimeValue);
     this.groupBox4.Controls.Add(this.label8);
     this.groupBox4.ForeColor = System.Drawing.Color.Blue;
     this.groupBox4.Location = new System.Drawing.Point(8, 232);
     this.groupBox4.Name = "groupBox4";
     this.groupBox4.Size = new System.Drawing.Size(392, 48);
     this.groupBox4.TabIndex = 4;
     this.groupBox4.TabStop = false;
     this.groupBox4.Text = "Totals";
     //
     // AppsActiveTimeValue
     //
     this.AppsActiveTimeValue.ForeColor = System.Drawing.Color.Black;
     this.AppsActiveTimeValue.Location = new System.Drawing.Point(112, 16);
     this.AppsActiveTimeValue.Name = "AppsActiveTimeValue";
     this.AppsActiveTimeValue.Size = new System.Drawing.Size(80, 23);
     this.AppsActiveTimeValue.TabIndex = 1;
     //
     // label8
     //
     this.label8.ForeColor = System.Drawing.Color.Black;
     this.label8.Location = new System.Drawing.Point(8, 16);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(104, 23);
     this.label8.TabIndex = 0;
     this.label8.Text = "Apps. Active Time:";
     //
     // browseButton
     //
     this.browseButton.Location = new System.Drawing.Point(320, 4);
     this.browseButton.Name = "browseButton";
     this.browseButton.Size = new System.Drawing.Size(75, 23);
     this.browseButton.TabIndex = 2;
     this.browseButton.Text = "Browse...";
     this.browseButton.Click += new System.EventHandler(this.browseButton_Click);
     //
     // parentTaskComboBox
     //
     this.parentTaskComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.parentTaskComboBox.Location = new System.Drawing.Point(80, 5);
     this.parentTaskComboBox.MaxLength = 50;
     this.parentTaskComboBox.Name = "parentTaskComboBox";
     this.parentTaskComboBox.Size = new System.Drawing.Size(232, 21);
     this.parentTaskComboBox.TabIndex = 1;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 4);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(72, 23);
     this.label2.TabIndex = 6;
     this.label2.Text = "Detail Level:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // toDateTimePicker
     //
     this.toDateTimePicker.CustomFormat = "";
     this.toDateTimePicker.Enabled = false;
     this.toDateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.toDateTimePicker.Location = new System.Drawing.Point(224, 32);
     this.toDateTimePicker.Name = "toDateTimePicker";
     this.toDateTimePicker.Size = new System.Drawing.Size(88, 20);
     this.toDateTimePicker.TabIndex = 21;
     this.toDateTimePicker.Value = new System.DateTime(2006, 10, 2, 0, 0, 0, 0);
     //
     // toRadioButton
     //
     this.toRadioButton.Location = new System.Drawing.Point(186, 32);
     this.toRadioButton.Name = "toRadioButton";
     this.toRadioButton.Size = new System.Drawing.Size(44, 24);
     this.toRadioButton.TabIndex = 20;
     this.toRadioButton.Text = "To:";
     this.toRadioButton.CheckedChanged += new System.EventHandler(this.toRadioButton_CheckedChanged);
     //
     // fromRadioButton
     //
     this.fromRadioButton.Checked = true;
     this.fromRadioButton.Location = new System.Drawing.Point(28, 32);
     this.fromRadioButton.Name = "fromRadioButton";
     this.fromRadioButton.Size = new System.Drawing.Size(54, 24);
     this.fromRadioButton.TabIndex = 19;
     this.fromRadioButton.TabStop = true;
     this.fromRadioButton.Text = "Date:";
     this.fromRadioButton.CheckedChanged += new System.EventHandler(this.fromRadioButton_CheckedChanged);
     //
     // fromDateTimePicker
     //
     this.fromDateTimePicker.CustomFormat = "";
     this.fromDateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.fromDateTimePicker.Location = new System.Drawing.Point(80, 32);
     this.fromDateTimePicker.Name = "fromDateTimePicker";
     this.fromDateTimePicker.Size = new System.Drawing.Size(88, 20);
     this.fromDateTimePicker.TabIndex = 18;
     this.fromDateTimePicker.Value = new System.DateTime(2006, 10, 2, 0, 0, 0, 0);
     //
     // searchButton
     //
     this.searchButton.Location = new System.Drawing.Point(320, 32);
     this.searchButton.Name = "searchButton";
     this.searchButton.Size = new System.Drawing.Size(75, 23);
     this.searchButton.TabIndex = 22;
     this.searchButton.Text = "Search";
     this.searchButton.Click += new System.EventHandler(this.searchButton_Click);
     //
     // StatisticsControl
     //
     this.Controls.Add(this.toDateTimePicker);
     this.Controls.Add(this.fromDateTimePicker);
     this.Controls.Add(this.searchButton);
     this.Controls.Add(this.browseButton);
     this.Controls.Add(this.parentTaskComboBox);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.toRadioButton);
     this.Controls.Add(this.fromRadioButton);
     this.Name = "StatisticsControl";
     this.Size = new System.Drawing.Size(408, 288);
     this.Load += new System.EventHandler(this.Statistics_Load);
     this.groupBox3.ResumeLayout(false);
     this.groupBox4.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
     this.treeMenu             = new System.Windows.Forms.ContextMenu();
     this.mnuProperties        = new System.Windows.Forms.MenuItem();
     this.menuItem5            = new System.Windows.Forms.MenuItem();
     this.mnuAdd               = new System.Windows.Forms.MenuItem();
     this.mnuRename            = new System.Windows.Forms.MenuItem();
     this.mnuDelete            = new System.Windows.Forms.MenuItem();
     this.treeView             = new PTM.View.Controls.TreeListViewComponents.TreeListView();
     this.tasksColumnHeader    = new System.Windows.Forms.ColumnHeader();
     this.priorityColumnHeader = new System.Windows.Forms.ColumnHeader();
     this.SuspendLayout();
     //
     // treeMenu
     //
     this.treeMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuProperties,
         this.menuItem5,
         this.mnuAdd,
         this.mnuRename,
         this.mnuDelete
     });
     //
     // mnuProperties
     //
     this.mnuProperties.DefaultItem = true;
     this.mnuProperties.Index       = 0;
     this.mnuProperties.Shortcut    = System.Windows.Forms.Shortcut.CtrlP;
     this.mnuProperties.Text        = "Properties...";
     this.mnuProperties.Click      += new System.EventHandler(this.mnuProperties_Click);
     //
     // menuItem5
     //
     this.menuItem5.Index = 1;
     this.menuItem5.Text  = "-";
     //
     // mnuAdd
     //
     this.mnuAdd.Index    = 2;
     this.mnuAdd.Shortcut = System.Windows.Forms.Shortcut.Ins;
     this.mnuAdd.Text     = "Add New";
     this.mnuAdd.Click   += new System.EventHandler(this.mnuAdd_Click);
     //
     // mnuRename
     //
     this.mnuRename.Index    = 3;
     this.mnuRename.Shortcut = System.Windows.Forms.Shortcut.F2;
     this.mnuRename.Text     = "Rename";
     this.mnuRename.Click   += new System.EventHandler(this.mnuRename_Click);
     //
     // mnuDelete
     //
     this.mnuDelete.Index    = 4;
     this.mnuDelete.Shortcut = System.Windows.Forms.Shortcut.Del;
     this.mnuDelete.Text     = "Delete";
     this.mnuDelete.Click   += new System.EventHandler(this.mnuDelete_Click);
     //
     // treeView
     //
     this.treeView.AllowColumnReorder = true;
     this.treeView.AllowDrop          = true;
     this.treeView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.tasksColumnHeader,
         this.priorityColumnHeader
     });
     treeListViewItemCollectionComparer1.Column    = 0;
     treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.Ascending;
     this.treeView.Comparer      = treeListViewItemCollectionComparer1;
     this.treeView.ContextMenu   = this.treeMenu;
     this.treeView.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.treeView.HideSelection = false;
     this.treeView.LabelEdit     = true;
     this.treeView.Location      = new System.Drawing.Point(0, 0);
     this.treeView.MultiSelect   = false;
     this.treeView.Name          = "treeView";
     this.treeView.ShowGroups    = false;
     this.treeView.Size          = new System.Drawing.Size(359, 215);
     this.treeView.TabIndex      = 0;
     this.treeView.UseCompatibleStateImageBehavior = false;
     //
     // tasksColumnHeader
     //
     this.tasksColumnHeader.Text  = "Tasks";
     this.tasksColumnHeader.Width = 294;
     //
     // priorityColumnHeader
     //
     this.priorityColumnHeader.Text      = "Priority";
     this.priorityColumnHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // TasksTreeViewControl
     //
     this.Controls.Add(this.treeView);
     this.Name = "TasksTreeViewControl";
     this.Size = new System.Drawing.Size(359, 215);
     this.ResumeLayout(false);
 }
コード例 #6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TasksLogControl));
     PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
     this.editButton            = new System.Windows.Forms.Button();
     this.addTaskButton         = new System.Windows.Forms.Button();
     this.notifyContextMenu     = new System.Windows.Forms.ContextMenu();
     this.TaskDescriptionHeader = new System.Windows.Forms.ColumnHeader();
     this.StartTimeHeader       = new System.Windows.Forms.ColumnHeader();
     this.DurationTaskHeader    = new System.Windows.Forms.ColumnHeader();
     this.notifyTimer           = new System.Timers.Timer();
     this.notifyIcon            = new System.Windows.Forms.NotifyIcon(this.components);
     this.taskList         = new PTM.View.Controls.TreeListViewComponents.TreeListView();
     this.rigthClickMenu   = new System.Windows.Forms.ContextMenu();
     this.propertiesButton = new System.Windows.Forms.Button();
     this.deleteButton     = new System.Windows.Forms.Button();
     this.logDate          = new System.Windows.Forms.DateTimePicker();
     this.label1           = new System.Windows.Forms.Label();
     this.shortcutToolTip  = new System.Windows.Forms.ToolTip(this.components);
     this.pathCheckBox     = new System.Windows.Forms.CheckBox();
     ((System.ComponentModel.ISupportInitialize)(this.notifyTimer)).BeginInit();
     this.SuspendLayout();
     //
     // editButton
     //
     this.editButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.editButton.Location = new System.Drawing.Point(152, 280);
     this.editButton.Name     = "editButton";
     this.editButton.Size     = new System.Drawing.Size(72, 23);
     this.editButton.TabIndex = 3;
     this.editButton.Text     = "Edit...";
     this.shortcutToolTip.SetToolTip(this.editButton, "Enter");
     this.editButton.Click += new System.EventHandler(this.editButton_Click);
     //
     // addTaskButton
     //
     this.addTaskButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.addTaskButton.Location = new System.Drawing.Point(312, 280);
     this.addTaskButton.Name     = "addTaskButton";
     this.addTaskButton.Size     = new System.Drawing.Size(72, 23);
     this.addTaskButton.TabIndex = 5;
     this.addTaskButton.Text     = "New...";
     this.shortcutToolTip.SetToolTip(this.addTaskButton, "Ins");
     //
     // TaskDescriptionHeader
     //
     this.TaskDescriptionHeader.Text  = "Task Description";
     this.TaskDescriptionHeader.Width = 226;
     //
     // StartTimeHeader
     //
     this.StartTimeHeader.Text  = "Start Time";
     this.StartTimeHeader.Width = 80;
     //
     // DurationTaskHeader
     //
     this.DurationTaskHeader.Text  = "Duration";
     this.DurationTaskHeader.Width = 65;
     //
     // notifyTimer
     //
     this.notifyTimer.Interval            = 1000;
     this.notifyTimer.SynchronizingObject = this;
     //
     // notifyIcon
     //
     this.notifyIcon.ContextMenu = this.notifyContextMenu;
     this.notifyIcon.Icon        = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon")));
     this.notifyIcon.Tag         = null;
     this.notifyIcon.Text        = "PTM";
     this.notifyIcon.Visible     = true;
     //
     // taskList
     //
     this.taskList.AllowColumnReorder = true;
     this.taskList.Anchor             = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                               | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.taskList.AutoArrange = false;
     this.taskList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.TaskDescriptionHeader,
         this.DurationTaskHeader,
         this.StartTimeHeader
     });
     treeListViewItemCollectionComparer1.Column    = 0;
     treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.None;
     this.taskList.Comparer      = treeListViewItemCollectionComparer1;
     this.taskList.ContextMenu   = this.rigthClickMenu;
     this.taskList.HideSelection = false;
     this.taskList.Location      = new System.Drawing.Point(8, 32);
     this.taskList.Name          = "taskList";
     this.taskList.Size          = new System.Drawing.Size(376, 240);
     this.taskList.Sorting       = System.Windows.Forms.SortOrder.None;
     this.taskList.TabIndex      = 1;
     this.taskList.UseCompatibleStateImageBehavior = false;
     this.taskList.SelectedIndexChanged           += new System.EventHandler(this.taskList_SelectedIndexChanged);
     this.taskList.KeyDown += new System.Windows.Forms.KeyEventHandler(this.taskList_KeyDown);
     //
     // propertiesButton
     //
     this.propertiesButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.propertiesButton.Location = new System.Drawing.Point(232, 280);
     this.propertiesButton.Name     = "propertiesButton";
     this.propertiesButton.Size     = new System.Drawing.Size(72, 23);
     this.propertiesButton.TabIndex = 4;
     this.propertiesButton.Text     = "Properties...";
     this.shortcutToolTip.SetToolTip(this.propertiesButton, "Ctrl + P");
     this.propertiesButton.Click += new System.EventHandler(this.switchToButton_Click);
     //
     // deleteButton
     //
     this.deleteButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.deleteButton.Location = new System.Drawing.Point(72, 280);
     this.deleteButton.Name     = "deleteButton";
     this.deleteButton.Size     = new System.Drawing.Size(72, 23);
     this.deleteButton.TabIndex = 2;
     this.deleteButton.Text     = "Delete";
     this.shortcutToolTip.SetToolTip(this.deleteButton, "Del");
     this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
     //
     // logDate
     //
     this.logDate.Location      = new System.Drawing.Point(48, 8);
     this.logDate.Name          = "logDate";
     this.logDate.Size          = new System.Drawing.Size(248, 20);
     this.logDate.TabIndex      = 0;
     this.logDate.ValueChanged += new System.EventHandler(this.logDate_ValueChanged);
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(8, 12);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(40, 16);
     this.label1.TabIndex  = 6;
     this.label1.Text      = "Date:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // pathCheckBox
     //
     this.pathCheckBox.Location        = new System.Drawing.Point(304, 8);
     this.pathCheckBox.Name            = "pathCheckBox";
     this.pathCheckBox.Size            = new System.Drawing.Size(80, 24);
     this.pathCheckBox.TabIndex        = 8;
     this.pathCheckBox.Text            = "Show path";
     this.pathCheckBox.CheckedChanged += new System.EventHandler(this.pathCheckBox_CheckedChanged);
     //
     // TasksLogControl
     //
     this.Controls.Add(this.pathCheckBox);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.logDate);
     this.Controls.Add(this.deleteButton);
     this.Controls.Add(this.propertiesButton);
     this.Controls.Add(this.taskList);
     this.Controls.Add(this.editButton);
     this.Controls.Add(this.addTaskButton);
     this.Name = "TasksLogControl";
     this.Size = new System.Drawing.Size(392, 312);
     this.shortcutToolTip.SetToolTip(this, "Shift + P");
     ((System.ComponentModel.ISupportInitialize)(this.notifyTimer)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SummaryControl));
     this.taskList           = new PTM.View.Controls.TreeListViewComponents.TreeListView();
     this.TaskHeader         = new System.Windows.Forms.ColumnHeader();
     this.TimeHeader         = new System.Windows.Forms.ColumnHeader();
     this.PercentHeader      = new System.Windows.Forms.ColumnHeader();
     this.GoalHeader         = new System.Windows.Forms.ColumnHeader();
     this.PercentGoalHeader  = new System.Windows.Forms.ColumnHeader();
     this.ActiveTimeHeader   = new System.Windows.Forms.ColumnHeader();
     this.InactiveTimeHeader = new System.Windows.Forms.ColumnHeader();
     this.fromDateTimePicker = new System.Windows.Forms.DateTimePicker();
     this.groupBox1          = new System.Windows.Forms.GroupBox();
     this.groupBox3          = new System.Windows.Forms.GroupBox();
     this.label2             = new System.Windows.Forms.Label();
     this.parentTaskComboBox = new System.Windows.Forms.ComboBox();
     this.browseButton       = new System.Windows.Forms.Button();
     this.groupBox2          = new System.Windows.Forms.GroupBox();
     this.panel1             = new System.Windows.Forms.Panel();
     this.toolBar            = new System.Windows.Forms.ToolBar();
     this.toolBarButton1     = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2     = new System.Windows.Forms.ToolBarButton();
     this.toolBarImages      = new System.Windows.Forms.ImageList(this.components);
     this.fromRadioButton    = new System.Windows.Forms.RadioButton();
     this.toRadioButton      = new System.Windows.Forms.RadioButton();
     this.toDateTimePicker   = new System.Windows.Forms.DateTimePicker();
     this.toolTip            = new System.Windows.Forms.ToolTip(this.components);
     this.groupBox4          = new System.Windows.Forms.GroupBox();
     this.groupBox5          = new System.Windows.Forms.GroupBox();
     this.allRadioButton     = new System.Windows.Forms.RadioButton();
     this.groupBox3.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // taskList
     //
     this.taskList.Alignment          = System.Windows.Forms.ListViewAlignment.Default;
     this.taskList.AllowColumnReorder = true;
     this.taskList.Anchor             = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                               | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.taskList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.TaskHeader,
         this.TimeHeader,
         this.PercentHeader,
         this.GoalHeader,
         this.PercentGoalHeader,
         this.ActiveTimeHeader,
         this.InactiveTimeHeader
     });
     treeListViewItemCollectionComparer1.Column    = 0;
     treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.None;
     this.taskList.Comparer      = treeListViewItemCollectionComparer1;
     this.taskList.HideSelection = false;
     this.taskList.Location      = new System.Drawing.Point(8, 16);
     this.taskList.MultiSelect   = false;
     this.taskList.Name          = "taskList";
     this.taskList.Size          = new System.Drawing.Size(376, 184);
     this.taskList.Sorting       = System.Windows.Forms.SortOrder.None;
     this.taskList.TabIndex      = 0;
     this.taskList.UseCompatibleStateImageBehavior = false;
     //
     // TaskHeader
     //
     this.TaskHeader.Text  = "Description";
     this.TaskHeader.Width = 150;
     //
     // TimeHeader
     //
     this.TimeHeader.Text      = "Time Elapsed";
     this.TimeHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // PercentHeader
     //
     this.PercentHeader.Text      = "%";
     this.PercentHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.PercentHeader.Width     = 50;
     //
     // GoalHeader
     //
     this.GoalHeader.Text      = "Estimated";
     this.GoalHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // PercentGoalHeader
     //
     this.PercentGoalHeader.Text      = "% Elapsed";
     this.PercentGoalHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.PercentGoalHeader.Width     = 50;
     //
     // ActiveTimeHeader
     //
     this.ActiveTimeHeader.Text      = "Active Time";
     this.ActiveTimeHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // InactiveTimeHeader
     //
     this.InactiveTimeHeader.Text      = "Inactive Time";
     this.InactiveTimeHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // fromDateTimePicker
     //
     this.fromDateTimePicker.CustomFormat = "";
     this.fromDateTimePicker.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     this.fromDateTimePicker.Location     = new System.Drawing.Point(80, 32);
     this.fromDateTimePicker.Name         = "fromDateTimePicker";
     this.fromDateTimePicker.Size         = new System.Drawing.Size(88, 20);
     this.fromDateTimePicker.TabIndex     = 0;
     this.fromDateTimePicker.Value        = new System.DateTime(2006, 10, 2, 0, 0, 0, 0);
     //
     // groupBox1
     //
     this.groupBox1.ForeColor = System.Drawing.Color.Blue;
     this.groupBox1.Location  = new System.Drawing.Point(8, 64);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(72, 80);
     this.groupBox1.TabIndex  = 4;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Total Time";
     //
     // groupBox3
     //
     this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox3.Controls.Add(this.taskList);
     this.groupBox3.ForeColor = System.Drawing.Color.Blue;
     this.groupBox3.Location  = new System.Drawing.Point(8, 144);
     this.groupBox3.Name      = "groupBox3";
     this.groupBox3.Size      = new System.Drawing.Size(392, 208);
     this.groupBox3.TabIndex  = 3;
     this.groupBox3.TabStop   = false;
     this.groupBox3.Text      = "Tasks";
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(8, 4);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(72, 23);
     this.label2.TabIndex  = 6;
     this.label2.Text      = "Detail Level:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // parentTaskComboBox
     //
     this.parentTaskComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.parentTaskComboBox.Location      = new System.Drawing.Point(80, 5);
     this.parentTaskComboBox.MaxLength     = 50;
     this.parentTaskComboBox.Name          = "parentTaskComboBox";
     this.parentTaskComboBox.Size          = new System.Drawing.Size(232, 21);
     this.parentTaskComboBox.TabIndex      = 1;
     //
     // browseButton
     //
     this.browseButton.Location = new System.Drawing.Point(320, 4);
     this.browseButton.Name     = "browseButton";
     this.browseButton.Size     = new System.Drawing.Size(75, 23);
     this.browseButton.TabIndex = 2;
     this.browseButton.Text     = "Browse...";
     this.browseButton.Click   += new System.EventHandler(this.browseButton_Click);
     //
     // groupBox2
     //
     this.groupBox2.ForeColor = System.Drawing.Color.Blue;
     this.groupBox2.Location  = new System.Drawing.Point(88, 64);
     this.groupBox2.Name      = "groupBox2";
     this.groupBox2.Size      = new System.Drawing.Size(72, 80);
     this.groupBox2.TabIndex  = 5;
     this.groupBox2.TabStop   = false;
     this.groupBox2.Text      = "% Active";
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.Controls.Add(this.toolBar);
     this.panel1.Location = new System.Drawing.Point(352, 120);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(48, 24);
     this.panel1.TabIndex = 14;
     //
     // toolBar
     //
     this.toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton1,
         this.toolBarButton2
     });
     this.toolBar.Divider        = false;
     this.toolBar.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.toolBar.DropDownArrows = true;
     this.toolBar.ImageList      = this.toolBarImages;
     this.toolBar.Location       = new System.Drawing.Point(0, 0);
     this.toolBar.Name           = "toolBar";
     this.toolBar.ShowToolTips   = true;
     this.toolBar.Size           = new System.Drawing.Size(48, 26);
     this.toolBar.TabIndex       = 0;
     this.toolBar.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_ButtonClick);
     //
     // toolBarButton1
     //
     this.toolBarButton1.ImageIndex  = 0;
     this.toolBarButton1.Name        = "toolBarButton1";
     this.toolBarButton1.ToolTipText = "Down level";
     //
     // toolBarButton2
     //
     this.toolBarButton2.ImageIndex  = 1;
     this.toolBarButton2.Name        = "toolBarButton2";
     this.toolBarButton2.ToolTipText = "Up level";
     //
     // toolBarImages
     //
     this.toolBarImages.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolBarImages.ImageStream")));
     this.toolBarImages.TransparentColor = System.Drawing.Color.Transparent;
     this.toolBarImages.Images.SetKeyName(0, "");
     this.toolBarImages.Images.SetKeyName(1, "");
     //
     // fromRadioButton
     //
     this.fromRadioButton.Checked         = true;
     this.fromRadioButton.Location        = new System.Drawing.Point(28, 32);
     this.fromRadioButton.Name            = "fromRadioButton";
     this.fromRadioButton.Size            = new System.Drawing.Size(54, 24);
     this.fromRadioButton.TabIndex        = 15;
     this.fromRadioButton.TabStop         = true;
     this.fromRadioButton.Text            = "Date:";
     this.fromRadioButton.CheckedChanged += new System.EventHandler(this.fromRadioButton_CheckedChanged);
     //
     // toRadioButton
     //
     this.toRadioButton.Location        = new System.Drawing.Point(186, 32);
     this.toRadioButton.Name            = "toRadioButton";
     this.toRadioButton.Size            = new System.Drawing.Size(43, 24);
     this.toRadioButton.TabIndex        = 16;
     this.toRadioButton.Text            = "To:";
     this.toRadioButton.CheckedChanged += new System.EventHandler(this.toRadioButton_CheckedChanged);
     //
     // toDateTimePicker
     //
     this.toDateTimePicker.CustomFormat = "";
     this.toDateTimePicker.Enabled      = false;
     this.toDateTimePicker.Format       = System.Windows.Forms.DateTimePickerFormat.Short;
     this.toDateTimePicker.Location     = new System.Drawing.Point(224, 32);
     this.toDateTimePicker.Name         = "toDateTimePicker";
     this.toDateTimePicker.Size         = new System.Drawing.Size(88, 20);
     this.toDateTimePicker.TabIndex     = 17;
     this.toDateTimePicker.Value        = new System.DateTime(2006, 10, 2, 0, 0, 0, 0);
     //
     // toolTip
     //
     this.toolTip.AutomaticDelay = 0;
     this.toolTip.ShowAlways     = true;
     //
     // groupBox4
     //
     this.groupBox4.ForeColor = System.Drawing.Color.Blue;
     this.groupBox4.Location  = new System.Drawing.Point(248, 64);
     this.groupBox4.Name      = "groupBox4";
     this.groupBox4.Size      = new System.Drawing.Size(77, 80);
     this.groupBox4.TabIndex  = 18;
     this.groupBox4.TabStop   = false;
     this.groupBox4.Text      = "Time/Days";
     //
     // groupBox5
     //
     this.groupBox5.ForeColor = System.Drawing.Color.Blue;
     this.groupBox5.Location  = new System.Drawing.Point(168, 64);
     this.groupBox5.Name      = "groupBox5";
     this.groupBox5.Size      = new System.Drawing.Size(72, 80);
     this.groupBox5.TabIndex  = 19;
     this.groupBox5.TabStop   = false;
     this.groupBox5.Text      = "%Elapsed";
     //
     // allRadioButton
     //
     this.allRadioButton.AutoSize = true;
     this.allRadioButton.Location = new System.Drawing.Point(320, 34);
     this.allRadioButton.Name     = "allRadioButton";
     this.allRadioButton.Size     = new System.Drawing.Size(58, 17);
     this.allRadioButton.TabIndex = 20;
     this.allRadioButton.TabStop  = true;
     this.allRadioButton.Text     = "All time";
     this.allRadioButton.UseVisualStyleBackColor = true;
     this.allRadioButton.CheckedChanged         += new System.EventHandler(this.allRadioButton_CheckedChanged);
     //
     // SummaryControl
     //
     this.Controls.Add(this.allRadioButton);
     this.Controls.Add(this.groupBox5);
     this.Controls.Add(this.fromDateTimePicker);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.browseButton);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.toDateTimePicker);
     this.Controls.Add(this.toRadioButton);
     this.Controls.Add(this.fromRadioButton);
     this.Controls.Add(this.parentTaskComboBox);
     this.Name = "SummaryControl";
     this.Size = new System.Drawing.Size(408, 360);
     this.groupBox3.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #8
0
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
            this.label1 = new System.Windows.Forms.Label();
            this.logDate = new System.Windows.Forms.DateTimePicker();
            this.taskList = new PTM.View.Controls.TreeListViewComponents.TreeListView();
            this.TaskDescriptionHeader = new System.Windows.Forms.ColumnHeader();
            this.DurationTaskHeader = new System.Windows.Forms.ColumnHeader();
            this.StartTimeHeader = new System.Windows.Forms.ColumnHeader();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.trackBar1 = new System.Windows.Forms.TrackBar();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.progressBar1 = new System.Windows.Forms.ProgressBar();
            this.trackBar2 = new System.Windows.Forms.TrackBar();
            this.trackBar3 = new System.Windows.Forms.TrackBar();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).BeginInit();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(8, 9);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(40, 16);
            this.label1.TabIndex = 8;
            this.label1.Text = "Date:";
            this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
            // 
            // logDate
            // 
            this.logDate.Location = new System.Drawing.Point(48, 7);
            this.logDate.Name = "logDate";
            this.logDate.Size = new System.Drawing.Size(248, 20);
            this.logDate.TabIndex = 7;
            // 
            // taskList
            // 
            this.taskList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.taskList.AutoArrange = false;
            this.taskList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.TaskDescriptionHeader,
            this.DurationTaskHeader,
            this.StartTimeHeader});
            treeListViewItemCollectionComparer1.Column = 0;
            treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.None;
            this.taskList.Comparer = treeListViewItemCollectionComparer1;
            this.taskList.HideSelection = false;
            this.taskList.Location = new System.Drawing.Point(8, 169);
            this.taskList.Name = "taskList";
            this.taskList.Size = new System.Drawing.Size(376, 102);
            this.taskList.Sorting = System.Windows.Forms.SortOrder.None;
            this.taskList.TabIndex = 9;
            this.taskList.UseCompatibleStateImageBehavior = false;
            // 
            // TaskDescriptionHeader
            // 
            this.TaskDescriptionHeader.Text = "Task Description";
            this.TaskDescriptionHeader.Width = 226;
            // 
            // DurationTaskHeader
            // 
            this.DurationTaskHeader.Text = "Duration";
            this.DurationTaskHeader.Width = 65;
            // 
            // StartTimeHeader
            // 
            this.StartTimeHeader.Text = "Start Time";
            this.StartTimeHeader.Width = 80;
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.trackBar3);
            this.groupBox1.Controls.Add(this.trackBar2);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.trackBar1);
            this.groupBox1.Location = new System.Drawing.Point(8, 33);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(376, 94);
            this.groupBox1.TabIndex = 10;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "groupBox1";
            // 
            // trackBar1
            // 
            this.trackBar1.LargeChange = 1;
            this.trackBar1.Location = new System.Drawing.Point(63, 10);
            this.trackBar1.Maximum = 4;
            this.trackBar1.Name = "trackBar1";
            this.trackBar1.Size = new System.Drawing.Size(115, 42);
            this.trackBar1.TabIndex = 1;
            this.trackBar1.Value = 2;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(6, 55);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(40, 13);
            this.label2.TabIndex = 2;
            this.label2.Text = "Energy";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(6, 19);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(56, 13);
            this.label3.TabIndex = 3;
            this.label3.Text = "Motivation";
            // 
            // progressBar1
            // 
            this.progressBar1.Location = new System.Drawing.Point(82, 278);
            this.progressBar1.Name = "progressBar1";
            this.progressBar1.Size = new System.Drawing.Size(302, 23);
            this.progressBar1.TabIndex = 11;
            // 
            // trackBar2
            // 
            this.trackBar2.LargeChange = 1;
            this.trackBar2.Location = new System.Drawing.Point(63, 46);
            this.trackBar2.Maximum = 4;
            this.trackBar2.Name = "trackBar2";
            this.trackBar2.Size = new System.Drawing.Size(115, 42);
            this.trackBar2.TabIndex = 4;
            this.trackBar2.Value = 2;
            // 
            // trackBar3
            // 
            this.trackBar3.LargeChange = 1;
            this.trackBar3.Location = new System.Drawing.Point(255, 10);
            this.trackBar3.Maximum = 4;
            this.trackBar3.Name = "trackBar3";
            this.trackBar3.Size = new System.Drawing.Size(115, 42);
            this.trackBar3.TabIndex = 5;
            this.trackBar3.Value = 2;
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(173, 16);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(89, 13);
            this.label4.TabIndex = 6;
            this.label4.Text = "Social adaptation";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(14, 278);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(62, 13);
            this.label5.TabIndex = 12;
            this.label5.Text = "Day Overall";
            // 
            // SubjectiveMetricsControl
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.label5);
            this.Controls.Add(this.progressBar1);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.taskList);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.logDate);
            this.Name = "SubjectiveMetricsControl";
            this.Size = new System.Drawing.Size(392, 312);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #9
0
ファイル: SummaryControl.cs プロジェクト: ckolumbus/ptm
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SummaryControl));
     this.taskList = new PTM.View.Controls.TreeListViewComponents.TreeListView();
     this.TaskHeader = new System.Windows.Forms.ColumnHeader();
     this.TimeHeader = new System.Windows.Forms.ColumnHeader();
     this.PercentHeader = new System.Windows.Forms.ColumnHeader();
     this.GoalHeader = new System.Windows.Forms.ColumnHeader();
     this.PercentGoalHeader = new System.Windows.Forms.ColumnHeader();
     this.ActiveTimeHeader = new System.Windows.Forms.ColumnHeader();
     this.InactiveTimeHeader = new System.Windows.Forms.ColumnHeader();
     this.fromDateTimePicker = new System.Windows.Forms.DateTimePicker();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.label2 = new System.Windows.Forms.Label();
     this.parentTaskComboBox = new System.Windows.Forms.ComboBox();
     this.browseButton = new System.Windows.Forms.Button();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.panel1 = new System.Windows.Forms.Panel();
     this.toolBar = new System.Windows.Forms.ToolBar();
     this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
     this.toolBarImages = new System.Windows.Forms.ImageList(this.components);
     this.fromRadioButton = new System.Windows.Forms.RadioButton();
     this.toRadioButton = new System.Windows.Forms.RadioButton();
     this.toDateTimePicker = new System.Windows.Forms.DateTimePicker();
     this.toolTip = new System.Windows.Forms.ToolTip(this.components);
     this.groupBox4 = new System.Windows.Forms.GroupBox();
     this.groupBox5 = new System.Windows.Forms.GroupBox();
     this.allRadioButton = new System.Windows.Forms.RadioButton();
     this.groupBox3.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // taskList
     //
     this.taskList.Alignment = System.Windows.Forms.ListViewAlignment.Default;
     this.taskList.AllowColumnReorder = true;
     this.taskList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.taskList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.TaskHeader,
     this.TimeHeader,
     this.PercentHeader,
     this.GoalHeader,
     this.PercentGoalHeader,
     this.ActiveTimeHeader,
     this.InactiveTimeHeader});
     treeListViewItemCollectionComparer1.Column = 0;
     treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.None;
     this.taskList.Comparer = treeListViewItemCollectionComparer1;
     this.taskList.HideSelection = false;
     this.taskList.Location = new System.Drawing.Point(8, 16);
     this.taskList.MultiSelect = false;
     this.taskList.Name = "taskList";
     this.taskList.Size = new System.Drawing.Size(376, 184);
     this.taskList.Sorting = System.Windows.Forms.SortOrder.None;
     this.taskList.TabIndex = 0;
     this.taskList.UseCompatibleStateImageBehavior = false;
     //
     // TaskHeader
     //
     this.TaskHeader.Text = "Description";
     this.TaskHeader.Width = 150;
     //
     // TimeHeader
     //
     this.TimeHeader.Text = "Time Elapsed";
     this.TimeHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // PercentHeader
     //
     this.PercentHeader.Text = "%";
     this.PercentHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.PercentHeader.Width = 50;
     //
     // GoalHeader
     //
     this.GoalHeader.Text = "Estimated";
     this.GoalHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // PercentGoalHeader
     //
     this.PercentGoalHeader.Text = "% Elapsed";
     this.PercentGoalHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.PercentGoalHeader.Width = 50;
     //
     // ActiveTimeHeader
     //
     this.ActiveTimeHeader.Text = "Active Time";
     this.ActiveTimeHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // InactiveTimeHeader
     //
     this.InactiveTimeHeader.Text = "Inactive Time";
     this.InactiveTimeHeader.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // fromDateTimePicker
     //
     this.fromDateTimePicker.CustomFormat = "";
     this.fromDateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.fromDateTimePicker.Location = new System.Drawing.Point(80, 32);
     this.fromDateTimePicker.Name = "fromDateTimePicker";
     this.fromDateTimePicker.Size = new System.Drawing.Size(88, 20);
     this.fromDateTimePicker.TabIndex = 0;
     this.fromDateTimePicker.Value = new System.DateTime(2006, 10, 2, 0, 0, 0, 0);
     //
     // groupBox1
     //
     this.groupBox1.ForeColor = System.Drawing.Color.Blue;
     this.groupBox1.Location = new System.Drawing.Point(8, 64);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(72, 80);
     this.groupBox1.TabIndex = 4;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Total Time";
     //
     // groupBox3
     //
     this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox3.Controls.Add(this.taskList);
     this.groupBox3.ForeColor = System.Drawing.Color.Blue;
     this.groupBox3.Location = new System.Drawing.Point(8, 144);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(392, 208);
     this.groupBox3.TabIndex = 3;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Tasks";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 4);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(72, 23);
     this.label2.TabIndex = 6;
     this.label2.Text = "Detail Level:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // parentTaskComboBox
     //
     this.parentTaskComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.parentTaskComboBox.Location = new System.Drawing.Point(80, 5);
     this.parentTaskComboBox.MaxLength = 50;
     this.parentTaskComboBox.Name = "parentTaskComboBox";
     this.parentTaskComboBox.Size = new System.Drawing.Size(232, 21);
     this.parentTaskComboBox.TabIndex = 1;
     //
     // browseButton
     //
     this.browseButton.Location = new System.Drawing.Point(320, 4);
     this.browseButton.Name = "browseButton";
     this.browseButton.Size = new System.Drawing.Size(75, 23);
     this.browseButton.TabIndex = 2;
     this.browseButton.Text = "Browse...";
     this.browseButton.Click += new System.EventHandler(this.browseButton_Click);
     //
     // groupBox2
     //
     this.groupBox2.ForeColor = System.Drawing.Color.Blue;
     this.groupBox2.Location = new System.Drawing.Point(88, 64);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(72, 80);
     this.groupBox2.TabIndex = 5;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "% Active";
     //
     // panel1
     //
     this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.panel1.Controls.Add(this.toolBar);
     this.panel1.Location = new System.Drawing.Point(352, 120);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(48, 24);
     this.panel1.TabIndex = 14;
     //
     // toolBar
     //
     this.toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
     this.toolBarButton1,
     this.toolBarButton2});
     this.toolBar.Divider = false;
     this.toolBar.Dock = System.Windows.Forms.DockStyle.Fill;
     this.toolBar.DropDownArrows = true;
     this.toolBar.ImageList = this.toolBarImages;
     this.toolBar.Location = new System.Drawing.Point(0, 0);
     this.toolBar.Name = "toolBar";
     this.toolBar.ShowToolTips = true;
     this.toolBar.Size = new System.Drawing.Size(48, 26);
     this.toolBar.TabIndex = 0;
     this.toolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_ButtonClick);
     //
     // toolBarButton1
     //
     this.toolBarButton1.ImageIndex = 0;
     this.toolBarButton1.Name = "toolBarButton1";
     this.toolBarButton1.ToolTipText = "Down level";
     //
     // toolBarButton2
     //
     this.toolBarButton2.ImageIndex = 1;
     this.toolBarButton2.Name = "toolBarButton2";
     this.toolBarButton2.ToolTipText = "Up level";
     //
     // toolBarImages
     //
     this.toolBarImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolBarImages.ImageStream")));
     this.toolBarImages.TransparentColor = System.Drawing.Color.Transparent;
     this.toolBarImages.Images.SetKeyName(0, "");
     this.toolBarImages.Images.SetKeyName(1, "");
     //
     // fromRadioButton
     //
     this.fromRadioButton.Checked = true;
     this.fromRadioButton.Location = new System.Drawing.Point(28, 32);
     this.fromRadioButton.Name = "fromRadioButton";
     this.fromRadioButton.Size = new System.Drawing.Size(54, 24);
     this.fromRadioButton.TabIndex = 15;
     this.fromRadioButton.TabStop = true;
     this.fromRadioButton.Text = "Date:";
     this.fromRadioButton.CheckedChanged += new System.EventHandler(this.fromRadioButton_CheckedChanged);
     //
     // toRadioButton
     //
     this.toRadioButton.Location = new System.Drawing.Point(186, 32);
     this.toRadioButton.Name = "toRadioButton";
     this.toRadioButton.Size = new System.Drawing.Size(43, 24);
     this.toRadioButton.TabIndex = 16;
     this.toRadioButton.Text = "To:";
     this.toRadioButton.CheckedChanged += new System.EventHandler(this.toRadioButton_CheckedChanged);
     //
     // toDateTimePicker
     //
     this.toDateTimePicker.CustomFormat = "";
     this.toDateTimePicker.Enabled = false;
     this.toDateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.toDateTimePicker.Location = new System.Drawing.Point(224, 32);
     this.toDateTimePicker.Name = "toDateTimePicker";
     this.toDateTimePicker.Size = new System.Drawing.Size(88, 20);
     this.toDateTimePicker.TabIndex = 17;
     this.toDateTimePicker.Value = new System.DateTime(2006, 10, 2, 0, 0, 0, 0);
     //
     // toolTip
     //
     this.toolTip.AutomaticDelay = 0;
     this.toolTip.ShowAlways = true;
     //
     // groupBox4
     //
     this.groupBox4.ForeColor = System.Drawing.Color.Blue;
     this.groupBox4.Location = new System.Drawing.Point(248, 64);
     this.groupBox4.Name = "groupBox4";
     this.groupBox4.Size = new System.Drawing.Size(77, 80);
     this.groupBox4.TabIndex = 18;
     this.groupBox4.TabStop = false;
     this.groupBox4.Text = "Time/Days";
     //
     // groupBox5
     //
     this.groupBox5.ForeColor = System.Drawing.Color.Blue;
     this.groupBox5.Location = new System.Drawing.Point(168, 64);
     this.groupBox5.Name = "groupBox5";
     this.groupBox5.Size = new System.Drawing.Size(72, 80);
     this.groupBox5.TabIndex = 19;
     this.groupBox5.TabStop = false;
     this.groupBox5.Text = "%Elapsed";
     //
     // allRadioButton
     //
     this.allRadioButton.AutoSize = true;
     this.allRadioButton.Location = new System.Drawing.Point(320, 34);
     this.allRadioButton.Name = "allRadioButton";
     this.allRadioButton.Size = new System.Drawing.Size(58, 17);
     this.allRadioButton.TabIndex = 20;
     this.allRadioButton.TabStop = true;
     this.allRadioButton.Text = "All time";
     this.allRadioButton.UseVisualStyleBackColor = true;
     this.allRadioButton.CheckedChanged += new System.EventHandler(this.allRadioButton_CheckedChanged);
     //
     // SummaryControl
     //
     this.Controls.Add(this.allRadioButton);
     this.Controls.Add(this.groupBox5);
     this.Controls.Add(this.fromDateTimePicker);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.browseButton);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.toDateTimePicker);
     this.Controls.Add(this.toRadioButton);
     this.Controls.Add(this.fromRadioButton);
     this.Controls.Add(this.parentTaskComboBox);
     this.Name = "SummaryControl";
     this.Size = new System.Drawing.Size(408, 360);
     this.groupBox3.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #10
0
ファイル: TasksLogControl.cs プロジェクト: ckolumbus/ptm
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TasksLogControl));
     PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer treeListViewItemCollectionComparer1 = new PTM.View.Controls.TreeListViewComponents.TreeListViewItemCollection.TreeListViewItemCollectionComparer();
     this.editButton = new System.Windows.Forms.Button();
     this.addTaskButton = new System.Windows.Forms.Button();
     this.notifyContextMenu = new System.Windows.Forms.ContextMenu();
     this.TaskDescriptionHeader = new System.Windows.Forms.ColumnHeader();
     this.StartTimeHeader = new System.Windows.Forms.ColumnHeader();
     this.DurationTaskHeader = new System.Windows.Forms.ColumnHeader();
     this.notifyTimer = new System.Timers.Timer();
     this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
     this.taskList = new PTM.View.Controls.TreeListViewComponents.TreeListView();
     this.rigthClickMenu = new System.Windows.Forms.ContextMenu();
     this.propertiesButton = new System.Windows.Forms.Button();
     this.deleteButton = new System.Windows.Forms.Button();
     this.logDate = new System.Windows.Forms.DateTimePicker();
     this.label1 = new System.Windows.Forms.Label();
     this.shortcutToolTip = new System.Windows.Forms.ToolTip(this.components);
     this.pathCheckBox = new System.Windows.Forms.CheckBox();
     ((System.ComponentModel.ISupportInitialize)(this.notifyTimer)).BeginInit();
     this.SuspendLayout();
     //
     // editButton
     //
     this.editButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.editButton.Location = new System.Drawing.Point(152, 280);
     this.editButton.Name = "editButton";
     this.editButton.Size = new System.Drawing.Size(72, 23);
     this.editButton.TabIndex = 3;
     this.editButton.Text = "Edit...";
     this.shortcutToolTip.SetToolTip(this.editButton, "Enter");
     this.editButton.Click += new System.EventHandler(this.editButton_Click);
     //
     // addTaskButton
     //
     this.addTaskButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.addTaskButton.Location = new System.Drawing.Point(312, 280);
     this.addTaskButton.Name = "addTaskButton";
     this.addTaskButton.Size = new System.Drawing.Size(72, 23);
     this.addTaskButton.TabIndex = 5;
     this.addTaskButton.Text = "New...";
     this.shortcutToolTip.SetToolTip(this.addTaskButton, "Ins");
     //
     // TaskDescriptionHeader
     //
     this.TaskDescriptionHeader.Text = "Task Description";
     this.TaskDescriptionHeader.Width = 226;
     //
     // StartTimeHeader
     //
     this.StartTimeHeader.Text = "Start Time";
     this.StartTimeHeader.Width = 80;
     //
     // DurationTaskHeader
     //
     this.DurationTaskHeader.Text = "Duration";
     this.DurationTaskHeader.Width = 65;
     //
     // notifyTimer
     //
     this.notifyTimer.Interval = 1000;
     this.notifyTimer.SynchronizingObject = this;
     //
     // notifyIcon
     //
     this.notifyIcon.ContextMenu = this.notifyContextMenu;
     this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon")));
     this.notifyIcon.Tag = null;
     this.notifyIcon.Text = "PTM";
     this.notifyIcon.Visible = true;
     //
     // taskList
     //
     this.taskList.AllowColumnReorder = true;
     this.taskList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.taskList.AutoArrange = false;
     this.taskList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.TaskDescriptionHeader,
     this.DurationTaskHeader,
     this.StartTimeHeader});
     treeListViewItemCollectionComparer1.Column = 0;
     treeListViewItemCollectionComparer1.SortOrder = System.Windows.Forms.SortOrder.None;
     this.taskList.Comparer = treeListViewItemCollectionComparer1;
     this.taskList.ContextMenu = this.rigthClickMenu;
     this.taskList.HideSelection = false;
     this.taskList.Location = new System.Drawing.Point(8, 32);
     this.taskList.Name = "taskList";
     this.taskList.Size = new System.Drawing.Size(376, 240);
     this.taskList.Sorting = System.Windows.Forms.SortOrder.None;
     this.taskList.TabIndex = 1;
     this.taskList.UseCompatibleStateImageBehavior = false;
     this.taskList.SelectedIndexChanged += new System.EventHandler(this.taskList_SelectedIndexChanged);
     this.taskList.KeyDown += new System.Windows.Forms.KeyEventHandler(this.taskList_KeyDown);
     //
     // propertiesButton
     //
     this.propertiesButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.propertiesButton.Location = new System.Drawing.Point(232, 280);
     this.propertiesButton.Name = "propertiesButton";
     this.propertiesButton.Size = new System.Drawing.Size(72, 23);
     this.propertiesButton.TabIndex = 4;
     this.propertiesButton.Text = "Properties...";
     this.shortcutToolTip.SetToolTip(this.propertiesButton, "Ctrl + P");
     this.propertiesButton.Click += new System.EventHandler(this.switchToButton_Click);
     //
     // deleteButton
     //
     this.deleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.deleteButton.Location = new System.Drawing.Point(72, 280);
     this.deleteButton.Name = "deleteButton";
     this.deleteButton.Size = new System.Drawing.Size(72, 23);
     this.deleteButton.TabIndex = 2;
     this.deleteButton.Text = "Delete";
     this.shortcutToolTip.SetToolTip(this.deleteButton, "Del");
     this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click);
     //
     // logDate
     //
     this.logDate.Location = new System.Drawing.Point(48, 8);
     this.logDate.Name = "logDate";
     this.logDate.Size = new System.Drawing.Size(248, 20);
     this.logDate.TabIndex = 0;
     this.logDate.ValueChanged += new System.EventHandler(this.logDate_ValueChanged);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 12);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(40, 16);
     this.label1.TabIndex = 6;
     this.label1.Text = "Date:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     //
     // pathCheckBox
     //
     this.pathCheckBox.Location = new System.Drawing.Point(304, 8);
     this.pathCheckBox.Name = "pathCheckBox";
     this.pathCheckBox.Size = new System.Drawing.Size(80, 24);
     this.pathCheckBox.TabIndex = 8;
     this.pathCheckBox.Text = "Show path";
     this.pathCheckBox.CheckedChanged += new System.EventHandler(this.pathCheckBox_CheckedChanged);
     //
     // TasksLogControl
     //
     this.Controls.Add(this.pathCheckBox);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.logDate);
     this.Controls.Add(this.deleteButton);
     this.Controls.Add(this.propertiesButton);
     this.Controls.Add(this.taskList);
     this.Controls.Add(this.editButton);
     this.Controls.Add(this.addTaskButton);
     this.Name = "TasksLogControl";
     this.Size = new System.Drawing.Size(392, 312);
     this.shortcutToolTip.SetToolTip(this, "Shift + P");
     ((System.ComponentModel.ISupportInitialize)(this.notifyTimer)).EndInit();
     this.ResumeLayout(false);
 }