private void AddHistoryResult(ISFSArray Datas) { foreach (ISFSObject data in Datas) { ResultListCtrl.AddResultOnFrist(data.GetIntArray("win")); } }
/// <summary> /// 结算结果显示在结算列表中 /// </summary> /// <param name="strArray"></param> private void AddHistoryResultList(string[] strArray) { int length = strArray.Length; for (int i = 0; i < length; i++) { string temp = strArray[i]; if (string.IsNullOrEmpty(temp)) { continue; } bool[] bo = GetBoolArray(temp); ResultListCtrl.AddResult(bo); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { rightPn_ = new System.Windows.Forms.Panel(); browseCtrl_ = new BrowseTreeCtrl(); valuesCtrl_ = new ItemValuesCtrl(); resultsCtrl_ = new ResultListCtrl(); buttonsPn_ = new System.Windows.Forms.Panel(); backBtn_ = new System.Windows.Forms.Button(); nextBtn_ = new System.Windows.Forms.Button(); doneBtn_ = new System.Windows.Forms.Button(); cancelBtn_ = new System.Windows.Forms.Button(); asyncResultsCtrl_ = new ResultListCtrl(); rightPn_.SuspendLayout(); buttonsPn_.SuspendLayout(); SuspendLayout(); // // RightPN // rightPn_.Controls.Add(asyncResultsCtrl_); rightPn_.Controls.Add(browseCtrl_); rightPn_.Controls.Add(valuesCtrl_); rightPn_.Controls.Add(resultsCtrl_); rightPn_.Dock = System.Windows.Forms.DockStyle.Fill; rightPn_.DockPadding.Left = 4; rightPn_.DockPadding.Right = 4; rightPn_.DockPadding.Top = 4; rightPn_.Location = new System.Drawing.Point(0, 0); rightPn_.Name = "rightPn_"; rightPn_.Size = new System.Drawing.Size(552, 386); rightPn_.TabIndex = 13; // // BrowseCTRL // browseCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; browseCtrl_.Location = new System.Drawing.Point(4, 4); browseCtrl_.Name = "browseCtrl_"; browseCtrl_.Size = new System.Drawing.Size(544, 382); browseCtrl_.TabIndex = 1; browseCtrl_.ItemSelected += new BrowseTreeCtrl.ItemSelectedEventHandler(BrowseCTRL_ItemSelected); browseCtrl_.ItemPicked += new BrowseTreeCtrl.ItemPickedEventHandler(BrowseCTRL_ItemPicked); // // ValuesCTRL // valuesCtrl_.DisplayGraph = false; valuesCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; valuesCtrl_.Location = new System.Drawing.Point(4, 4); valuesCtrl_.Name = "valuesCtrl_"; valuesCtrl_.ReadOnly = false; valuesCtrl_.Size = new System.Drawing.Size(544, 382); valuesCtrl_.TabIndex = 2; // // ResultsCTRL // resultsCtrl_.AllowDrop = true; resultsCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; resultsCtrl_.Location = new System.Drawing.Point(4, 4); resultsCtrl_.Name = "resultsCtrl_"; resultsCtrl_.Size = new System.Drawing.Size(544, 382); resultsCtrl_.TabIndex = 3; // // ButtonsPN // buttonsPn_.Controls.Add(backBtn_); buttonsPn_.Controls.Add(nextBtn_); buttonsPn_.Controls.Add(doneBtn_); buttonsPn_.Controls.Add(cancelBtn_); buttonsPn_.Dock = System.Windows.Forms.DockStyle.Bottom; buttonsPn_.Location = new System.Drawing.Point(0, 386); buttonsPn_.Name = "buttonsPn_"; buttonsPn_.Size = new System.Drawing.Size(552, 36); buttonsPn_.TabIndex = 15; // // BackBTN // backBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); backBtn_.Location = new System.Drawing.Point(312, 8); backBtn_.Name = "backBtn_"; backBtn_.TabIndex = 3; backBtn_.Text = "< Back"; backBtn_.Click += new System.EventHandler(BackBTN_Click); // // NextBTN // nextBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); nextBtn_.Location = new System.Drawing.Point(392, 8); nextBtn_.Name = "nextBtn_"; nextBtn_.TabIndex = 2; nextBtn_.Text = "Next >"; nextBtn_.Click += new System.EventHandler(NextBTN_Click); // // DoneBTN // doneBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); doneBtn_.DialogResult = System.Windows.Forms.DialogResult.OK; doneBtn_.Location = new System.Drawing.Point(472, 8); doneBtn_.Name = "doneBtn_"; doneBtn_.TabIndex = 0; doneBtn_.Text = "Done"; // // CancelBTN // cancelBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); cancelBtn_.DialogResult = System.Windows.Forms.DialogResult.Cancel; cancelBtn_.Location = new System.Drawing.Point(472, 8); cancelBtn_.Name = "cancelBtn_"; cancelBtn_.TabIndex = 5; cancelBtn_.Text = "Cancel"; // // AsyncResultsCTRL // asyncResultsCtrl_.AllowDrop = true; asyncResultsCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; asyncResultsCtrl_.Location = new System.Drawing.Point(4, 4); asyncResultsCtrl_.Name = "asyncResultsCtrl_"; asyncResultsCtrl_.Size = new System.Drawing.Size(544, 382); asyncResultsCtrl_.TabIndex = 4; // // InsertValuesDlg // AutoScaleBaseSize = new System.Drawing.Size(5, 13); ClientSize = new System.Drawing.Size(552, 422); Controls.Add(rightPn_); Controls.Add(buttonsPn_); Name = "InsertValuesDlg"; StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = "Insert Item Values"; rightPn_.ResumeLayout(false); buttonsPn_.ResumeLayout(false); ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { splitterV_ = new System.Windows.Forms.Splitter(); rightPn_ = new System.Windows.Forms.Panel(); resultsCtrl_ = new ResultListCtrl(); itemsCtrl_ = new ItemListCtrl(); leftPn_ = new System.Windows.Forms.Panel(); trendCtrl_ = new TrendEditCtrl(); browseCtrl_ = new BrowseTreeCtrl(); buttonsPn_ = new System.Windows.Forms.Panel(); backBtn_ = new System.Windows.Forms.Button(); nextBtn_ = new System.Windows.Forms.Button(); doneBtn_ = new System.Windows.Forms.Button(); cancelBtn_ = new System.Windows.Forms.Button(); rightPn_.SuspendLayout(); leftPn_.SuspendLayout(); buttonsPn_.SuspendLayout(); SuspendLayout(); // // SplitterV // splitterV_.Location = new System.Drawing.Point(360, 0); splitterV_.Name = "splitterV_"; splitterV_.Size = new System.Drawing.Size(3, 386); splitterV_.TabIndex = 12; splitterV_.TabStop = false; // // RightPN // rightPn_.Controls.Add(resultsCtrl_); rightPn_.Controls.Add(itemsCtrl_); rightPn_.Dock = System.Windows.Forms.DockStyle.Fill; rightPn_.DockPadding.Right = 4; rightPn_.DockPadding.Top = 4; rightPn_.Location = new System.Drawing.Point(363, 0); rightPn_.Name = "rightPn_"; rightPn_.Size = new System.Drawing.Size(509, 386); rightPn_.TabIndex = 13; // // ResultsCTRL // resultsCtrl_.AllowDrop = true; resultsCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; resultsCtrl_.Location = new System.Drawing.Point(0, 4); resultsCtrl_.Name = "resultsCtrl_"; resultsCtrl_.Size = new System.Drawing.Size(505, 382); resultsCtrl_.TabIndex = 1; // // ItemsCTRL // itemsCtrl_.AllowDrop = true; itemsCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; itemsCtrl_.Location = new System.Drawing.Point(0, 4); itemsCtrl_.Name = "itemsCtrl_"; itemsCtrl_.Size = new System.Drawing.Size(505, 382); itemsCtrl_.TabIndex = 0; // // LeftPN // leftPn_.Controls.Add(browseCtrl_); leftPn_.Controls.Add(trendCtrl_); leftPn_.Dock = System.Windows.Forms.DockStyle.Left; leftPn_.DockPadding.Left = 4; leftPn_.DockPadding.Top = 4; leftPn_.Location = new System.Drawing.Point(0, 0); leftPn_.Name = "leftPn_"; leftPn_.Size = new System.Drawing.Size(360, 386); leftPn_.TabIndex = 14; // // TrendCTRL // trendCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; trendCtrl_.Location = new System.Drawing.Point(4, 4); trendCtrl_.Name = "trendCtrl_"; trendCtrl_.Size = new System.Drawing.Size(356, 382); trendCtrl_.TabIndex = 2; // // BrowseCTRL // browseCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; browseCtrl_.Location = new System.Drawing.Point(4, 4); browseCtrl_.Name = "browseCtrl_"; browseCtrl_.Size = new System.Drawing.Size(356, 382); browseCtrl_.TabIndex = 1; browseCtrl_.ItemPicked += new BrowseTreeCtrl.ItemPickedEventHandler(BrowseCTRL_ItemPicked); // // ButtonsPN // buttonsPn_.Controls.Add(backBtn_); buttonsPn_.Controls.Add(nextBtn_); buttonsPn_.Controls.Add(doneBtn_); buttonsPn_.Controls.Add(cancelBtn_); buttonsPn_.Dock = System.Windows.Forms.DockStyle.Bottom; buttonsPn_.Location = new System.Drawing.Point(0, 386); buttonsPn_.Name = "buttonsPn_"; buttonsPn_.Size = new System.Drawing.Size(872, 36); buttonsPn_.TabIndex = 15; // // BackBTN // backBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); backBtn_.Location = new System.Drawing.Point(632, 8); backBtn_.Name = "backBtn_"; backBtn_.TabIndex = 3; backBtn_.Text = "< Back"; backBtn_.Click += new System.EventHandler(BackBTN_Click); // // NextBTN // nextBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); nextBtn_.Location = new System.Drawing.Point(712, 8); nextBtn_.Name = "nextBtn_"; nextBtn_.TabIndex = 2; nextBtn_.Text = "Next >"; nextBtn_.Click += new System.EventHandler(NextBTN_Click); // // DoneBTN // doneBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); doneBtn_.DialogResult = System.Windows.Forms.DialogResult.OK; doneBtn_.Location = new System.Drawing.Point(792, 8); doneBtn_.Name = "doneBtn_"; doneBtn_.TabIndex = 0; doneBtn_.Text = "Done"; // // CancelBTN // cancelBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); cancelBtn_.DialogResult = System.Windows.Forms.DialogResult.Cancel; cancelBtn_.Location = new System.Drawing.Point(792, 8); cancelBtn_.Name = "cancelBtn_"; cancelBtn_.TabIndex = 5; cancelBtn_.Text = "Cancel"; // // TrendCreateDlg // AutoScaleBaseSize = new System.Drawing.Size(5, 13); ClientSize = new System.Drawing.Size(872, 422); Controls.Add(rightPn_); Controls.Add(splitterV_); Controls.Add(leftPn_); Controls.Add(buttonsPn_); Name = "TrendCreateDlg"; StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = "Create Trend"; rightPn_.ResumeLayout(false); leftPn_.ResumeLayout(false); buttonsPn_.ResumeLayout(false); ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { splitterV_ = new System.Windows.Forms.Splitter(); rightPn_ = new System.Windows.Forms.Panel(); browseCtrl_ = new BrowseTreeCtrl(); attributesCtrl_ = new AttributesSelectCtrl(); resultsCtrl_ = new AttributesViewCtrl(); leftPn_ = new System.Windows.Forms.Panel(); trendCtrl_ = new TrendEditCtrl(); buttonsPn_ = new System.Windows.Forms.Panel(); backBtn_ = new System.Windows.Forms.Button(); nextBtn_ = new System.Windows.Forms.Button(); doneBtn_ = new System.Windows.Forms.Button(); cancelBtn_ = new System.Windows.Forms.Button(); asyncResultsCtrl_ = new ResultListCtrl(); rightPn_.SuspendLayout(); leftPn_.SuspendLayout(); buttonsPn_.SuspendLayout(); SuspendLayout(); // // SplitterV // splitterV_.Location = new System.Drawing.Point(328, 0); splitterV_.Name = "splitterV_"; splitterV_.Size = new System.Drawing.Size(3, 386); splitterV_.TabIndex = 12; splitterV_.TabStop = false; // // RightPN // rightPn_.Controls.Add(asyncResultsCtrl_); rightPn_.Controls.Add(browseCtrl_); rightPn_.Controls.Add(attributesCtrl_); rightPn_.Controls.Add(resultsCtrl_); rightPn_.Dock = System.Windows.Forms.DockStyle.Fill; rightPn_.DockPadding.Right = 4; rightPn_.DockPadding.Top = 4; rightPn_.Location = new System.Drawing.Point(331, 0); rightPn_.Name = "rightPn_"; rightPn_.Size = new System.Drawing.Size(605, 386); rightPn_.TabIndex = 13; // // BrowseCTRL // browseCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; browseCtrl_.Location = new System.Drawing.Point(0, 4); browseCtrl_.Name = "browseCtrl_"; browseCtrl_.Size = new System.Drawing.Size(601, 382); browseCtrl_.TabIndex = 1; browseCtrl_.ItemSelected += new BrowseTreeCtrl.ItemSelectedEventHandler(BrowseCTRL_ItemSelected); browseCtrl_.ItemPicked += new BrowseTreeCtrl.ItemPickedEventHandler(BrowseCTRL_ItemPicked); // // AttributesCTRL // attributesCtrl_.AllowDrop = true; attributesCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; attributesCtrl_.Location = new System.Drawing.Point(0, 4); attributesCtrl_.Name = "attributesCtrl_"; attributesCtrl_.ReadOnly = false; attributesCtrl_.Size = new System.Drawing.Size(601, 382); attributesCtrl_.TabIndex = 5; // // ResultsCTRL // resultsCtrl_.AllowDrop = true; resultsCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; resultsCtrl_.Location = new System.Drawing.Point(0, 4); resultsCtrl_.Name = "resultsCtrl_"; resultsCtrl_.Size = new System.Drawing.Size(601, 382); resultsCtrl_.TabIndex = 4; // // LeftPN // leftPn_.Controls.Add(trendCtrl_); leftPn_.Dock = System.Windows.Forms.DockStyle.Left; leftPn_.DockPadding.Left = 4; leftPn_.DockPadding.Top = 4; leftPn_.Location = new System.Drawing.Point(0, 0); leftPn_.Name = "leftPn_"; leftPn_.Size = new System.Drawing.Size(328, 386); leftPn_.TabIndex = 14; // // TrendCTRL // trendCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; trendCtrl_.Location = new System.Drawing.Point(4, 4); trendCtrl_.Name = "trendCtrl_"; trendCtrl_.RequestType = RequestType.ReadRaw; trendCtrl_.Size = new System.Drawing.Size(324, 382); trendCtrl_.TabIndex = 3; // // ButtonsPN // buttonsPn_.Controls.Add(backBtn_); buttonsPn_.Controls.Add(nextBtn_); buttonsPn_.Controls.Add(doneBtn_); buttonsPn_.Controls.Add(cancelBtn_); buttonsPn_.Dock = System.Windows.Forms.DockStyle.Bottom; buttonsPn_.Location = new System.Drawing.Point(0, 386); buttonsPn_.Name = "buttonsPn_"; buttonsPn_.Size = new System.Drawing.Size(936, 36); buttonsPn_.TabIndex = 15; // // BackBTN // backBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); backBtn_.Location = new System.Drawing.Point(696, 8); backBtn_.Name = "backBtn_"; backBtn_.TabIndex = 3; backBtn_.Text = "< Back"; backBtn_.Click += new System.EventHandler(BackBTN_Click); // // NextBTN // nextBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); nextBtn_.Location = new System.Drawing.Point(776, 8); nextBtn_.Name = "nextBtn_"; nextBtn_.TabIndex = 2; nextBtn_.Text = "Next >"; nextBtn_.Click += new System.EventHandler(NextBTN_Click); // // DoneBTN // doneBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); doneBtn_.DialogResult = System.Windows.Forms.DialogResult.OK; doneBtn_.Location = new System.Drawing.Point(856, 8); doneBtn_.Name = "doneBtn_"; doneBtn_.TabIndex = 0; doneBtn_.Text = "Done"; // // CancelBTN // cancelBtn_.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); cancelBtn_.DialogResult = System.Windows.Forms.DialogResult.Cancel; cancelBtn_.Location = new System.Drawing.Point(856, 8); cancelBtn_.Name = "cancelBtn_"; cancelBtn_.TabIndex = 5; cancelBtn_.Text = "Cancel"; // // AsyncResultsCTRL // asyncResultsCtrl_.AllowDrop = true; asyncResultsCtrl_.Dock = System.Windows.Forms.DockStyle.Fill; asyncResultsCtrl_.Location = new System.Drawing.Point(0, 4); asyncResultsCtrl_.Name = "asyncResultsCtrl_"; asyncResultsCtrl_.Size = new System.Drawing.Size(601, 382); asyncResultsCtrl_.TabIndex = 6; // // ReadAttributesDlg // AutoScaleBaseSize = new System.Drawing.Size(5, 13); ClientSize = new System.Drawing.Size(936, 422); Controls.Add(rightPn_); Controls.Add(splitterV_); Controls.Add(leftPn_); Controls.Add(buttonsPn_); Name = "ReadAttributesDlg"; StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; Text = "Read Attributes"; rightPn_.ResumeLayout(false); leftPn_.ResumeLayout(false); buttonsPn_.ResumeLayout(false); ResumeLayout(false); }