/// <summary> /// Returns exceedance values from a time series table /// </summary> /// <param name="tableName">name of timeseries table</param> /// <returns></returns> public virtual DataTable ExceedanceTable(string tableName, DateTime t1, DateTime t2, MonthDayRange range, RankType sortType) { throw new NotImplementedException("ExceedanceTable"); //return null; // if (type == SortType.Weibul) //{ // for (int i = 0; i < sz; i++) // { // DataRowView row = tbl.DefaultView[i]; // row["Percent"] = ((double)(i + 1.0) / (sz + 1.0)) * 100.0; //Weibul // } //} //else //if (type == SortType.Proabability) //{ // for (int i = 0; i < sz; i++) // { // DataRowView row = tbl.DefaultView[i]; // row["Percent"] = ((double)(i + 1.0) / (sz )) * 100.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(TimeSeriesHydrographEditor)); Reclamation.Core.MonthDayRange monthDayRange1 = new Reclamation.Core.MonthDayRange(); this.comboBoxInputs = new System.Windows.Forms.ComboBox(); this.buttonUpload = new System.Windows.Forms.Button(); this.linkLabelChartDetails = new System.Windows.Forms.LinkLabel(); this.buttonDownload = new System.Windows.Forms.Button(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.checkBoxShowBadData = new System.Windows.Forms.CheckBox(); this.checkBoxShowPoints = new System.Windows.Forms.CheckBox(); this.panelGraphTable = new System.Windows.Forms.Panel(); this.splitter1 = new System.Windows.Forms.Splitter(); this.tChart1 = new Steema.TeeChart.TChart(); this.labelFileName = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.buttonOpenFile = new System.Windows.Forms.Button(); this.linkLabelUsgs = new System.Windows.Forms.LinkLabel(); this.yearSelector1 = new Reclamation.TimeSeries.Forms.YearSelector(); this.monthRangePicker1 = new Reclamation.TimeSeries.Forms.MonthRangePicker(); this.checkBoxWaterYear = new System.Windows.Forms.CheckBox(); this.checkBoxCelsius = new System.Windows.Forms.CheckBox(); this.panelGraphTable.SuspendLayout(); this.SuspendLayout(); // // comboBoxInputs // this.comboBoxInputs.Location = new System.Drawing.Point(3, 28); this.comboBoxInputs.Name = "comboBoxInputs"; this.comboBoxInputs.Size = new System.Drawing.Size(349, 24); this.comboBoxInputs.TabIndex = 23; this.toolTip1.SetToolTip(this.comboBoxInputs, "example: JCK AF, AMF AF"); this.comboBoxInputs.SelectedIndexChanged += new System.EventHandler(this.comboBoxInputs_SelectedIndexChanged); this.comboBoxInputs.KeyDown += new System.Windows.Forms.KeyEventHandler(this.comboBoxInputs_KeyDown); // // buttonUpload // this.buttonUpload.BackColor = System.Drawing.SystemColors.Control; this.buttonUpload.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonUpload.ForeColor = System.Drawing.SystemColors.ControlText; this.buttonUpload.Location = new System.Drawing.Point(352, 64); this.buttonUpload.Name = "buttonUpload"; this.buttonUpload.Size = new System.Drawing.Size(75, 23); this.buttonUpload.TabIndex = 21; this.buttonUpload.Text = "Save"; this.buttonUpload.UseVisualStyleBackColor = false; this.buttonUpload.Visible = false; // // linkLabelChartDetails // this.linkLabelChartDetails.Location = new System.Drawing.Point(196, 66); this.linkLabelChartDetails.Name = "linkLabelChartDetails"; this.linkLabelChartDetails.Size = new System.Drawing.Size(72, 23); this.linkLabelChartDetails.TabIndex = 18; this.linkLabelChartDetails.TabStop = true; this.linkLabelChartDetails.Text = "chart details"; this.linkLabelChartDetails.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelChartDetails_LinkClicked); // // buttonDownload // this.buttonDownload.ForeColor = System.Drawing.SystemColors.ControlText; this.buttonDownload.Location = new System.Drawing.Point(272, 64); this.buttonDownload.Name = "buttonDownload"; this.buttonDownload.Size = new System.Drawing.Size(75, 23); this.buttonDownload.TabIndex = 16; this.buttonDownload.Text = "Refresh"; this.buttonDownload.Click += new System.EventHandler(this.RefreshClick); this.buttonDownload.KeyDown += new System.Windows.Forms.KeyEventHandler(this.buttonDownload_KeyDown); // // checkBoxShowBadData // this.checkBoxShowBadData.AutoSize = true; this.checkBoxShowBadData.Checked = true; this.checkBoxShowBadData.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxShowBadData.Location = new System.Drawing.Point(358, 24); this.checkBoxShowBadData.Name = "checkBoxShowBadData"; this.checkBoxShowBadData.Size = new System.Drawing.Size(150, 21); this.checkBoxShowBadData.TabIndex = 32; this.checkBoxShowBadData.Text = "graph flagged data"; this.checkBoxShowBadData.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.toolTip1.SetToolTip(this.checkBoxShowBadData, "show data that has been \'flagged\' bad"); this.checkBoxShowBadData.UseVisualStyleBackColor = true; this.checkBoxShowBadData.CheckedChanged += new System.EventHandler(this.checkBoxShowBadData_CheckedChanged); // // checkBoxShowPoints // this.checkBoxShowPoints.AutoSize = true; this.checkBoxShowPoints.Location = new System.Drawing.Point(358, 39); this.checkBoxShowPoints.Name = "checkBoxShowPoints"; this.checkBoxShowPoints.Size = new System.Drawing.Size(104, 21); this.checkBoxShowPoints.TabIndex = 33; this.checkBoxShowPoints.Text = "show points"; this.checkBoxShowPoints.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.toolTip1.SetToolTip(this.checkBoxShowPoints, "show point on graph for each timestamp"); this.checkBoxShowPoints.UseVisualStyleBackColor = true; this.checkBoxShowPoints.CheckedChanged += new System.EventHandler(this.checkBoxShowPoints_CheckedChanged); // // panelGraphTable // this.panelGraphTable.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.panelGraphTable.Controls.Add(this.splitter1); this.panelGraphTable.Controls.Add(this.tChart1); this.panelGraphTable.Location = new System.Drawing.Point(0, 88); this.panelGraphTable.Name = "panelGraphTable"; this.panelGraphTable.Size = new System.Drawing.Size(929, 393); this.panelGraphTable.TabIndex = 27; // // splitter1 // this.splitter1.Location = new System.Drawing.Point(510, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(6, 393); this.splitter1.TabIndex = 4; this.splitter1.TabStop = false; // // tChart1 // // // // this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0D; // // // // // // // // // this.tChart1.Axes.Bottom.Title.Transparent = true; // // // // // // this.tChart1.Axes.Depth.Title.Transparent = true; // // // // // // this.tChart1.Axes.DepthTop.Title.Transparent = true; // // // // // // this.tChart1.Axes.Left.Title.Transparent = true; // // // // // // this.tChart1.Axes.Right.Title.Transparent = true; // // // // // // this.tChart1.Axes.Top.Title.Transparent = true; this.tChart1.Dock = System.Windows.Forms.DockStyle.Left; this.tChart1.Location = new System.Drawing.Point(0, 0); this.tChart1.Name = "tChart1"; this.tChart1.Size = new System.Drawing.Size(510, 393); this.tChart1.TabIndex = 3; this.tChart1.Click += new System.EventHandler(this.tChart1_Click); this.tChart1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tChart1_MouseUp); // // labelFileName // this.labelFileName.AutoSize = true; this.labelFileName.Location = new System.Drawing.Point(101, 7); this.labelFileName.Name = "labelFileName"; this.labelFileName.Size = new System.Drawing.Size(46, 17); this.labelFileName.TabIndex = 29; this.labelFileName.Text = "label2"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(49, 7); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(61, 17); this.label2.TabIndex = 30; this.label2.Text = "filename"; // // buttonOpenFile // this.buttonOpenFile.Image = ((System.Drawing.Image)(resources.GetObject("buttonOpenFile.Image"))); this.buttonOpenFile.Location = new System.Drawing.Point(10, 6); this.buttonOpenFile.Name = "buttonOpenFile"; this.buttonOpenFile.Size = new System.Drawing.Size(35, 18); this.buttonOpenFile.TabIndex = 31; this.buttonOpenFile.UseVisualStyleBackColor = true; this.buttonOpenFile.Click += new System.EventHandler(this.buttonOpenFile_Click); // // linkLabelUsgs // this.linkLabelUsgs.Location = new System.Drawing.Point(17, 62); this.linkLabelUsgs.Name = "linkLabelUsgs"; this.linkLabelUsgs.Size = new System.Drawing.Size(132, 23); this.linkLabelUsgs.TabIndex = 35; this.linkLabelUsgs.TabStop = true; this.linkLabelUsgs.Text = "usgs"; this.linkLabelUsgs.Visible = false; this.linkLabelUsgs.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelUsgs_LinkClicked); // // yearSelector1 // this.yearSelector1.Location = new System.Drawing.Point(479, 64); this.yearSelector1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.yearSelector1.Name = "yearSelector1"; this.yearSelector1.SelectedYears = new int[] { 1977, 2001, 2005 }; this.yearSelector1.Size = new System.Drawing.Size(289, 20); this.yearSelector1.TabIndex = 37; // // monthRangePicker1 // this.monthRangePicker1.BeginningMonth = 10; this.monthRangePicker1.Location = new System.Drawing.Point(497, 24); this.monthRangePicker1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.monthRangePicker1.MonthDayRange = monthDayRange1; this.monthRangePicker1.Name = "monthRangePicker1"; this.monthRangePicker1.Size = new System.Drawing.Size(428, 34); this.monthRangePicker1.TabIndex = 36; // // checkBoxWaterYear // this.checkBoxWaterYear.AutoSize = true; this.checkBoxWaterYear.Checked = true; this.checkBoxWaterYear.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxWaterYear.Location = new System.Drawing.Point(497, 1); this.checkBoxWaterYear.Name = "checkBoxWaterYear"; this.checkBoxWaterYear.Size = new System.Drawing.Size(96, 21); this.checkBoxWaterYear.TabIndex = 38; this.checkBoxWaterYear.Text = "water year"; this.checkBoxWaterYear.UseVisualStyleBackColor = true; this.checkBoxWaterYear.CheckedChanged += new System.EventHandler(this.checkBoxWaterYear_CheckedChanged); // // checkBoxCelsius // this.checkBoxCelsius.AutoSize = true; this.checkBoxCelsius.Location = new System.Drawing.Point(584, 1); this.checkBoxCelsius.Name = "checkBoxCelsius"; this.checkBoxCelsius.Size = new System.Drawing.Size(257, 21); this.checkBoxCelsius.TabIndex = 39; this.checkBoxCelsius.Text = "display water temperature in Celsius"; this.checkBoxCelsius.UseVisualStyleBackColor = true; // // TimeSeriesHydrographEditor // this.Controls.Add(this.checkBoxCelsius); this.Controls.Add(this.checkBoxWaterYear); this.Controls.Add(this.yearSelector1); this.Controls.Add(this.monthRangePicker1); this.Controls.Add(this.linkLabelUsgs); this.Controls.Add(this.checkBoxShowPoints); this.Controls.Add(this.checkBoxShowBadData); this.Controls.Add(this.buttonOpenFile); this.Controls.Add(this.label2); this.Controls.Add(this.labelFileName); this.Controls.Add(this.panelGraphTable); this.Controls.Add(this.buttonUpload); this.Controls.Add(this.comboBoxInputs); this.Controls.Add(this.linkLabelChartDetails); this.Controls.Add(this.buttonDownload); this.Name = "TimeSeriesHydrographEditor"; this.Size = new System.Drawing.Size(929, 481); this.Load += new System.EventHandler(this.TimeSeriesEditor_Load); this.panelGraphTable.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }