Beispiel #1
0
 public void AutomaticVisibilitySwitching()
 {
     Legend legend = new Legend();
     // Initial Visible state helps designers
     Assert.AreEqual(Visibility.Visible, legend.Visibility);
     legend.Visibility = Visibility.Collapsed;
     legend.Title = "Title";
     Assert.AreEqual(Visibility.Visible, legend.Visibility);
     legend.Title = null;
     Assert.AreEqual(Visibility.Collapsed, legend.Visibility);
     legend.LegendItems.Clear();
     Assert.AreEqual(Visibility.Collapsed, legend.Visibility);
     Button button0 = new Button();
     legend.LegendItems.Add(button0);
     Assert.AreEqual(Visibility.Visible, legend.Visibility);
     Button button1 = new Button();
     legend.LegendItems.Add(button1);
     Assert.AreEqual(Visibility.Visible, legend.Visibility);
     legend.LegendItems.RemoveAt(0);
     Assert.AreEqual(Visibility.Visible, legend.Visibility);
     legend.LegendItems.RemoveAt(0);
     Assert.AreEqual(Visibility.Collapsed, legend.Visibility);
     legend.LegendItems.Add(button0);
     Assert.AreEqual(Visibility.Visible, legend.Visibility);
     legend.LegendItems.Clear();
     Assert.AreEqual(Visibility.Collapsed, legend.Visibility);
     legend.LegendItems.Add(button0);
     Assert.AreEqual(Visibility.Visible, legend.Visibility);
 }
        /// <summary>
        /// This overloaded constructor creates a chart from the provided ChartConfigProvider
        /// </summary>
        /// <param name="ChartConfig">The chart config.</param>
        /// <param name="ThisPage">The this page.</param>
        /// <param name="imageMap">if set to <c>true</c> [image map].</param>
        public ChartBuilder(ChartConfigProvider ChartConfig, Page ThisPage, bool imageMap)
        {
            try
            {
                currConfig = ChartConfig;
                chartToBuild = new Chart();
                chartToBuild.ChartAreas.Add(new ChartArea());
                chartToBuild.Page = ThisPage;

                XmlDocument xmlData = GetXmlData();

                BuildXAxisLabels(xmlData);

                FillSeriesData(xmlData);
                SetObjectParameters(chartToBuild, currConfig.ChartParams);
                SetObjectParameters(chartToBuild.ChartAreas[0], currConfig.ChartAreaParams);
                SetObjectParameters(chartToBuild.ChartAreas[0].AxisX, currConfig.ChartAxisXParams);
                SetObjectParameters(chartToBuild.ChartAreas[0].AxisY, currConfig.ChartAxisYParams);
                SetObjectParameters(chartToBuild.ChartAreas[0].AxisX2, currConfig.ChartAxisX2Params);
                SetObjectParameters(chartToBuild.ChartAreas[0].AxisY2, currConfig.ChartAxisY2Params);

                if (currConfig.ChartLegendParams.Count > 0)
                {
                    Legend l = new Legend();
                    SetObjectParameters(l, currConfig.ChartLegendParams);
                    chartToBuild.Legends.Add(l);
                }

                SetRenderMethod(imageMap);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #3
0
 private Chart FormatLegend(Chart chart)
 {
     Legend legend = new Legend();
     chart.Legends.Clear();
     chart.Legends.Add(legend);
     legend.LegendStyle = LegendStyle.Row;
     legend.Docking = Docking.Bottom;
     legend.Alignment = System.Drawing.StringAlignment.Center;
     return chart;
 }
        public FileResult Details(int width = 1000, int height = 618)
        {
            var sysUserLog = _sysUserLogService.GetAllEnt();
            var sysLog = _sysLogService.GetAllEnt();

            var chart = new Chart { Height = height, Width = width };
            var chartArea = new ChartArea("Area1") {AxisX = {Interval = 1}};
            chart.ChartAreas.Add(chartArea);
            var legend = new Legend();
            chart.Legends.Add(legend);

            var seriescountAll = new Series("使用次数");
            var countAll =
                sysUserLog.GroupBy(a => EntityFunctions.TruncateTime(a.CreatedDate))
                         .Select(a => new { Key = a.Key.Value, Count = a.Count() })
                         .OrderBy(a => a.Key);
            seriescountAll.ChartArea = "Area1";
            seriescountAll.IsVisibleInLegend = true;
            seriescountAll.IsValueShownAsLabel = true;
            seriescountAll.Points.DataBind(countAll, "Key", "Count", "");
            seriescountAll.ChartType = SeriesChartType.Column;
            chart.Series.Add(seriescountAll);


            var seriescountUser = new Series("登陆用户数量");
            var countUser =
                sysUserLog.GroupBy(a => EntityFunctions.TruncateTime(a.CreatedDate)).Select(
                    a => new { Key = a.Key.Value, Count = a.Select(c => c.SysUserId).Distinct().Count() })
                         .OrderBy(a => a.Key);
            seriescountUser.ChartArea = "Area1";
            seriescountUser.IsVisibleInLegend = true;
            seriescountUser.IsValueShownAsLabel = true;
            seriescountUser.Points.DataBind(countUser, "Key", "Count", "");
            seriescountUser.ChartType = SeriesChartType.Column;
            chart.Series.Add(seriescountUser);


            var seriessysLogChart = new Series("系统日志");
            var sysLogChart =
                sysLog.GroupBy(a => EntityFunctions.TruncateTime(a.CreatedDate))
                      .Select(a => new { Key = a.Key.Value, Count = a.Count() })
                      .OrderBy(a => a.Key);
            seriessysLogChart.ChartArea = "Area1";
            seriessysLogChart.IsVisibleInLegend = true;
            seriessysLogChart.IsValueShownAsLabel = true;
            seriessysLogChart.Points.DataBind(sysLogChart, "Key", "Count", "");
            seriessysLogChart.ChartType = SeriesChartType.Column;
            chart.Series.Add(seriessysLogChart);


            var imageStream = new MemoryStream();
            chart.SaveImage(imageStream, ChartImageFormat.Png);
            imageStream.Position = 0;
            return new FileStreamResult(imageStream, "image/png");
        }
Beispiel #5
0
        public Legend CreateLegend()
        {
            var legend = new Legend();
            legend.Name = "Sales sum";
            legend.Docking = Docking.Bottom;
            legend.Alignment = StringAlignment.Center;
            legend.BackColor = Color.Transparent;
            legend.Font = new Font(new FontFamily("Trebuchet MS"), 9);
            legend.LegendStyle = LegendStyle.Row;

            return legend;
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        OpenFlashChart.OpenFlashChart chart = new OpenFlashChart.OpenFlashChart();
        chart.Title = new Title("Sketch");

        BarSketch bar = new OpenFlashChart.BarSketch("#045","#4f1",4);
        Random random = new Random();
        bar.Colour = "#345";

        bar.FillAlpha = 0.4;
        bar.Text = "Test";

        bar.FontSize = 10;
        List<double> values = new List<double>();
        List<string> labels = new List<string>();
        for (int i = 0; i < 12; i++)
        {
            values.Add(random.Next(i, i * 2));
            labels.Add(i.ToString());
        }
        bar.Values = values;
        chart.AddElement(bar);
        chart.X_Axis.Steps = 4;
        chart.X_Axis.Labels.Steps = 4;
        chart.X_Axis.SetLabels( labels);
        chart.X_Axis.Labels.Vertical = true;

        chart.Y_Axis.Steps = 2;


        Legend x = new Legend("x-axis legend");
        chart.X_Legend = x;
        string s = chart.ToString();
        Response.Clear();
        Response.CacheControl = "no-cache";
        Response.Write(s);
        Response.End();
    }
Beispiel #7
0
        void Page_Loaded(object sender, RoutedEventArgs e)
        {
            //Creating plotter without a legend and button navigation
            ChartPlotterSettings settings = new ChartPlotterSettings();
            settings.IsButtonNavigationPresents = false;
            settings.IsLegendPresents = false;
            mainPlotter = new ChartPlotter(settings);
            RootStackPanel.Children.Add(mainPlotter);

            //Adding legened to custom location
            legend = new Legend(mainPlotter);
            //Wrapper to provide easy usage of the legend if it is too big
            ScrollWraper wraper = new ScrollWraper(legend);
            RootStackPanel.Children.Insert(0,wraper);

            //Adding custom buttons to plotter hovering panel
            buttonAdd = new Button() { Content="Add random polynomial"};
            buttonAdd.Click+=new RoutedEventHandler(ButtonAddClick);
            buttonClear = new Button() { Content="Remove all charts"};
            buttonClear.Click +=new RoutedEventHandler(ButtonClearClick);
            StackPanel internalStackPanel = new StackPanel() { Orientation = Orientation.Vertical, Margin= new Thickness(5) };
            internalStackPanel.Children.Add(buttonAdd);
            internalStackPanel.Children.Add(buttonClear);
            mainPlotter.HoveringStackPanel.Children.Add(internalStackPanel);

            //Adding button navigation to custom location
            Microsoft.Research.DynamicDataDisplay.Navigation.buttonsNavigation n =
                new Microsoft.Research.DynamicDataDisplay.Navigation.buttonsNavigation(mainPlotter);
            RootStackPanel.Children.Add(n);

            //Adding some data to the plotter
            for (int i = 0; i < 10; i++)
                addRandomPolynomial();
            
            mainPlotter.FitToView();
        }
        /// <summary>
        /// 返回考试分析常用图形
        /// </summary>
        /// <param name="examReportModels">考试报表Models</param>
        /// <param name="seriesChartType">图形类型</param>
        /// <returns></returns>
        public Chart Get考试分析常用图形(ExamReportModels examReportModels, SeriesChartType seriesChartType)
        {
            /* 考试分析Chart */
            Chart chart = Get考试分析Chart(examReportModels);

            /* list考试分析 */
            List<考试分析> list考试分析 = examReportModels.考试分析;
            List<string> listX = list考试分析[0].间隔值列表;

            ChartArea chartArea = Get考试分析ChartArea();

            chartArea.AxisY.Title = "人数";
            chartArea.AxisY.TextOrientation = TextOrientation.Stacked;
            chartArea.AxisY.LineColor = Color.FromArgb(64, 64, 64, 64);
            chartArea.AxisY.LabelStyle.Font = new Font("Trebuchet MS", 8, FontStyle.Bold);
            chartArea.AxisY.MajorGrid.LineColor = Color.FromArgb(64, 64, 64, 64);

            chartArea.AxisX.Title = "分数段";
            chartArea.AxisX.LineColor = Color.FromArgb(64, 64, 64, 64);
            chartArea.AxisX.LabelStyle.Font = new Font("Trebuchet MS", 8, FontStyle.Bold);
            chartArea.AxisX.MajorGrid.LineColor = Color.FromArgb(64, 64, 64, 64);

            chart.ChartAreas.Add(chartArea);

            //加旁边显示
            Legend legend = new Legend();
            legend.ShadowOffset = 3;
            legend.BackColor = Color.Transparent;
            legend.Font = new Font("Trebuchet MS", 8, FontStyle.Bold);
            chart.Legends.Add(legend);

            for (int i = 0; i < list考试分析.Count; i++)
            {
                Series series = new Series();
                series["PointWidth"] = "0.6";
                series["BarLabelStyle"] = "Center";
                series["DrawingStyle"] = "Cylinder";
                series.BorderWidth = 3;
                series.ShadowOffset = 2;
                series.Name = list考试分析[i].部门名;
                series.ChartType = seriesChartType;
                series.IsValueShownAsLabel = true;
                series.Points.DataBindXY(listX, list考试分析[i].人数列表);
                chart.Series.Add(series);
            }

            return chart;
        }
Beispiel #9
0
    int GetResult(string strDate,
        bool bForce,
        out string strError)
    {
        strError = "";
        int nRet = 0;

        if (string.IsNullOrEmpty(strDate) == true)
            strDate = this.TreeView1.SelectedNodePath;

        // 保存起来
        if (string.IsNullOrEmpty(strDate) == false)
            this.TreeView1.SelectedNodePath = strDate;

        this.Page.Title = (string)this.GetLocalResourceObject("统计图") + " - " + GetDateName(strDate);

        SeriesChartType type = SeriesChartType.Line;
        if (string.IsNullOrEmpty(this.DropDownList_chartType.Text) == false)
            type = (SeriesChartType)Enum.Parse(typeof(SeriesChartType), this.DropDownList_chartType.Text, true);

        LoginState loginstate = GlobalUtil.GetLoginState(this.Page);
        string strRole = loginstate.ToString().ToLower(); // notlogin public reader librarian

        string strDataFilename = PathUtil.MergePath(sessioninfo.GetTempDir(), "~statis_chat_data_" + strRole);
        XmlDocument dom = new XmlDocument();

        if (bForce == false && File.Exists(strDataFilename) == true)
        {
            try
            {
                dom.Load(strDataFilename);
            }
            catch (Exception ex)
            {
                strError = "文件装入XMLDOM时出错: " + ex.Message;
                return -1;
            }

            // 日期范围也要对得上才行
            string strFileRange = DomUtil.GetElementText(dom.DocumentElement, "range");
            if (strFileRange != strDate)
            {
                bForce = true;
                dom = new XmlDocument();
            }
            else
                bForce = false;
        }
        else
            bForce = true;
        

        if (bForce == true)
        {
            RangeStatisInfo info = null;
            string strXml = "";

            ModifyDateString(ref strDate);

            LibraryChannel channel = sessioninfo.GetChannel(true);
            try
            {
                long lRet = //sessioninfo.Channel.
                    channel.GetStatisInfo(strDate,
                    "list",
                    out info,
                    out strXml,
                    out strError);
                if (lRet == -1)
                    return -1;
            }
            finally
            {
                sessioninfo.ReturnChannel(channel);
            }

            string strTemplateFilename = app.CfgDir + "\\statis_template.xml";
            if (File.Exists(strTemplateFilename) == true)
            {
                string strTargetXml = "";
                nRet = StatisViewControl.FilterXmlFile(
                    strRole, // notlogin public reader librarian
                    strXml,
                    strTemplateFilename,
                    true,
                    out strTargetXml,
                    out strError);
                if (nRet == -1)
                    return -1;

                strXml = strTargetXml;
            }

            try
            {
                dom.LoadXml(strXml);
            }
            catch (Exception ex)
            {
                strError = "XML装入DOM时出错: " + ex.Message;
                return -1;
            }

            DomUtil.SetElementText(dom.DocumentElement, "range", strDate);

            DomUtil.SetElementText(dom.DocumentElement, "startDate", info.StartDate);
            DomUtil.SetElementText(dom.DocumentElement, "endDate", info.EndDate);

            dom.Save(strDataFilename);
        }


        List<string> selected_itemspaths = this.StatisEntryControl1.GetSelectedItems();

        string strTotalXmlFilename = PathUtil.MergePath(app.DataDir, "~statis_entry_"+strRole+".xml");

        nRet = SetEntryPanel(dom.DocumentElement.OuterXml,
            strTotalXmlFilename,
            out strError);
        if (nRet == -1)
            return -1;

        // 如果首次访问的时候没有指定统计指标
        if (this.IsPostBack == false && selected_itemspaths.Count == 0)
        {
            selected_itemspaths.Add("出纳");
            this.StatisEntryControl1.SelectItems(selected_itemspaths);
        }


#if NO
        string strLibraryCode = this.DropDownList_libraryCode.Text;
        if (strLibraryCode == "<所有分馆>")
            strLibraryCode = "";
#endif
        string strLibraryCode = (string)this.Page.Session["librarycode"];

        this.Chart1.ChartAreas.Clear();

        this.Chart1.Series.Clear();

        Legend legend = new Legend();
        // legend.Name = strName;
        legend.Docking = Docking.Bottom;
        legend.IsTextAutoFit = true;
        Font default_font = GetDefaultFont();
        if (default_font != null)
            legend.Font = default_font;
        this.Chart1.Legends.Add(legend);

        XmlNodeList nodes = null;

        if (string.IsNullOrEmpty(strLibraryCode) == true)
            nodes = dom.DocumentElement.SelectNodes("category/item");
        else
            nodes = dom.DocumentElement.SelectNodes("library[@code='" + strLibraryCode + "']/category/item");
        int nCount = 0;

        int nArea = 1;
        string strAreaName = "";
        if ((nCount % 100) == 0)
        {
            strAreaName = CreateChartArea(nArea++);
        }

        int nMaxPoints = 0;
        string strStartDate = DomUtil.GetElementText(dom.DocumentElement, "startDate");
        string strEndDate = DomUtil.GetElementText(dom.DocumentElement, "endDate");
        DateTime start_date = DateTimeUtil.Long8ToDateTime(strStartDate);
        DateTime end_date = DateTimeUtil.Long8ToDateTime(strEndDate);
        DateTime now = DateTime.Now;

        foreach (XmlNode node in nodes)
        {
            string strName = GetItemPath(node);

            string strPath = MakePath(strName);
            if (MatchPath(selected_itemspaths, strPath) == false)
                continue;

            string strValue = DomUtil.GetAttr(node, "value");

            Series series = new Series(strName);
            series.ChartType = type;    //  SeriesChartType.Line;
            series.ChartArea = strAreaName;
            series.BorderWidth = 3;
            series.IsVisibleInLegend = true;

            DateTime current_date = start_date;
            string[] values = strValue.Split(new char[] { ',' });
            int i = 0;
            foreach (string v in values)
            {
                // 2012/11/16
                if (current_date <= end_date
    && current_date <= now)
                {
                }
                else
                    break;

                if (i == 0)
                    goto CONTINUE;
                double d = 0;
                if (string.IsNullOrEmpty(v) == false)
                    double.TryParse(v, out d);
                series.Points.AddXY(current_date, d);

                current_date = current_date.AddDays(1);
            CONTINUE:
                i++;
            }

            while (current_date <= end_date
                && current_date <= now)
            {
                series.Points.AddXY(current_date, 0);
                current_date = current_date.AddDays(1);
                i++;
            }

            if (i > nMaxPoints)
                nMaxPoints = i;
            this.Chart1.Series.Add(series);
            nCount++;
        }

        this.Chart1.ChartAreas[0].AxisX.Minimum = start_date.ToOADate();
        this.Chart1.ChartAreas[0].AxisX.Maximum = end_date.ToOADate();

        if (nMaxPoints <= 32 && this.Chart1.ChartAreas.Count > 0)
            this.Chart1.ChartAreas[0].AxisX.Interval = 1;

        if (this.CheckBox_3D.Checked == true)
            this.Chart1.ChartAreas[0].Area3DStyle.Enable3D = true;

        return 0;
    }
Beispiel #10
0
 public void Remove(Legend value)
 {
     ((IList)this).Remove((object)value);
 }
Beispiel #11
0
        public string[] _StrSubalgorithm;                   // = new string[_nComboBoxCount_Subalgorithm];//子算法数组
        /// <summary>
        /// 重新设置是否显示chart控件的多条曲线
        /// </summary>
        /// <param name="_ChartObject">chart对象</param>
        /// <param name="_CheckBoxObject">checkBox对象</param>
        /// <param name="hs">存放颜色数组</param>
        /// <param name="al">存放图片的数组</param>
        public void SetChart(Dundas.Charting.WinControl.Chart _ChartObject, System.Windows.Forms.CheckBox _CheckBoxObject, ArrayList hs, ArrayList al)
        {
            LegendItem legendItem;
            LegendCell legendCell1;
            LegendCell legendCell2;
            LegendCell legendCell3;
            Legend     legend = new Legend();

            legend.AutoFitText = false;
            if (al == null)
            {
                al = new ArrayList();
                AddIco(al);
            }
            if (_ChartObject != null && _CheckBoxObject != null)
            {
                for (int i = 0; i < _ChartObject.Series.Count; ++i)
                {
                    legendItem           = new Dundas.Charting.WinControl.LegendItem();
                    legendCell1          = new Dundas.Charting.WinControl.LegendCell();
                    legendCell1.CellType = Dundas.Charting.WinControl.LegendCellType.Image;
                    legendCell1.Name     = "Cell1";

                    legendCell2           = new Dundas.Charting.WinControl.LegendCell();
                    legendCell3           = new Dundas.Charting.WinControl.LegendCell();
                    legendCell3.CellType  = Dundas.Charting.WinControl.LegendCellType.Image;
                    legendCell3.Name      = "Cell3";
                    legendCell2.Name      = "Cell2";
                    legendCell2.Alignment = System.Drawing.ContentAlignment.MiddleLeft;
                    legendCell2.Text      = _ChartObject.Series[i].Name;
                    if (hs != null)
                    {
                        legendCell2.TextColor        = (Color)hs[i];
                        _ChartObject.Series[i].Color = (Color)hs[i];
                    }

                    _ChartObject.Series[i].Name        = (i + 1).ToString() + "." + _ChartObject.Series[i].Name;
                    _ChartObject.Series[i].Type        = Dundas.Charting.WinControl.SeriesChartType.Line;
                    _ChartObject.Series[i].MarkerImage = al[i % 7].ToString();
                    _ChartObject.Series[i].MarkerSize  = 7;
                    _ChartObject.Series[i].MarkerStyle = (Dundas.Charting.WinControl.MarkerStyle)(2);

                    _ChartObject.Series[i].ShowInLegend = false;

                    legendItem.Cells.Add(legendCell1);
                    legendItem.Cells.Add(legendCell2);
                    legendItem.Tag = _ChartObject.Series[i];

                    if (_CheckBoxObject.Checked)
                    {
                        legendItem.Cells[0].Image = string.Format(Application.StartupPath + @"/img/chk_checked.png");
                    }
                    else
                    {
                        legendItem.Cells[0].Image = string.Format(Application.StartupPath + @"/img/chk_unchecked.png");
                    }
                    legend.CustomItems.Add(legendItem);
                    _ChartObject.Series[i].Enabled = _CheckBoxObject.Checked;
                }

                _ChartObject.ChartAreas["Default"].AxisX.MinorGrid.Enabled   = false;
                _ChartObject.ChartAreas["Default"].AxisY.MinorGrid.Enabled   = true;
                _ChartObject.ChartAreas["Default"].AxisY.MinorGrid.LineStyle = ChartDashStyle.Dash;
                _ChartObject.ChartAreas["Default"].AxisY.MinorGrid.LineColor = Color.Gray;
                legend.Name = "Default";
                _ChartObject.Legends.Add(legend);
            }
        }
    private void BindGrid(bool IsExport, bool LoadFromCache)
    {
        Guid reportid = new Guid(ViewState["Report"].ToString());

        Rpt_ReportBLL report = new Rpt_ReportBLL(reportid);

        lb_ReportTitle.Text = report.Model.Title;

        Dictionary <string, object> param;

        if (!pl_Param.GetParamsValue(out param))
        {
            MessageBox.Show(this, "请正确设定必填参数!");
            return;
        }

        if (report.LoadData(param, LoadFromCache))
        {
            if (!IsExport)
            {
                #region 绑定图表
                Chart1.Series.Clear();
                Chart1.ChartAreas.Clear();

                DataTable dt_chart = report.GetReportData();

                if (report.GetCharts().Count == 0)
                {
                    Chart1.Visible = false;
                }
                else
                {
                    Chart1.Legends.Clear();
                    Chart1.Series.Clear();
                    Chart1.ChartAreas.Clear();
                    int chartindex = 0;
                    foreach (Rpt_ReportCharts chart in report.GetCharts())
                    {
                        chartindex++;
                        ChartArea chartarea = new ChartArea("ChartArea" + chartindex.ToString());
                        Chart1.ChartAreas.Add(chartarea);

                        chartarea.AxisX.MajorGrid.LineDashStyle = ChartDashStyle.Dot;
                        chartarea.AxisX.MajorGrid.Interval      = 1;
                        chartarea.AxisY.MajorGrid.LineDashStyle = ChartDashStyle.Dot;
                        chartarea.AxisX.MajorGrid.LineColor     = Color.LightGray;
                        chartarea.AxisY.MajorGrid.LineColor     = Color.LightGray;

                        chartarea.AxisX.LabelStyle.Angle  = 0;
                        chartarea.AxisX.LabelAutoFitStyle = LabelAutoFitStyles.IncreaseFont;
                        chartarea.AxisX.IsLabelAutoFit    = true;
                        //chartarea.AxisX.LabelStyle.ForeColor = System.Drawing.Color.Blue;

                        chartarea.AxisX.LabelAutoFitMaxFontSize = 8;
                        chartarea.AxisX.LabelAutoFitMinFontSize = 5;
                        chartarea.AxisY.LabelAutoFitMaxFontSize = 8;
                        chartarea.AxisY.LabelAutoFitMinFontSize = 5;

                        //3D显示
                        if (chart["Enable3D"] == "Y")
                        {
                            chartarea.Area3DStyle.Enable3D = true;
                        }

                        #region 第二轴坐标
                        if (chart["AxisX2Enabled"] == "Y")
                        {
                            chartarea.AxisX2.Enabled                 = AxisEnabled.True;
                            chartarea.AxisX2.LabelAutoFitStyle       = LabelAutoFitStyles.IncreaseFont;
                            chartarea.AxisX2.LabelAutoFitMaxFontSize = 8;
                            chartarea.AxisX2.LabelAutoFitMinFontSize = 5;
                        }

                        if (chart["AxisY2Enabled"] == "Y")
                        {
                            chartarea.AxisY2.Enabled                 = AxisEnabled.True;
                            chartarea.AxisY2.LabelAutoFitStyle       = LabelAutoFitStyles.IncreaseFont;
                            chartarea.AxisY2.LabelAutoFitMaxFontSize = 8;
                            chartarea.AxisY2.LabelAutoFitMinFontSize = 5;
                        }
                        #endregion



                        #region 处理图表系列
                        IList <string> list_series  = new List <string>();
                        string[]       series_array = chart.SeriesColumns.Split(new char[] { ',', '|' }, StringSplitOptions.RemoveEmptyEntries);

                        if (report.Model.ReportType == 1)
                        {
                            //普通列表
                            for (int i = 0; i < series_array.Length; i++)
                            {
                                if (dt_chart.Columns.Contains(series_array[i]))
                                {
                                    list_series.Add(series_array[i]);
                                }
                            }
                        }

                        if (report.Model.ReportType == 2)
                        {
                            //矩阵表
                            IList <Rpt_ReportRowGroups>   rowgroups   = report.GetRowGroups();
                            IList <Rpt_ReportValueGroups> valuegroups = report.GetValueGroups();

                            for (int i = 0; i < series_array.Length; i++)
                            {
                                foreach (DataColumn column in dt_chart.Columns)
                                {
                                    if (rowgroups.FirstOrDefault(p => p.DisplayName == column.ColumnName) != null)
                                    {
                                        continue;
                                    }
                                    if (valuegroups.Count == 1)
                                    {
                                        list_series.Add(column.ColumnName);
                                    }
                                    else
                                    {
                                        if (column.ColumnName.EndsWith(series_array[i]))
                                        {
                                            list_series.Add(column.ColumnName);
                                        }
                                    }
                                }
                                chartarea.AxisY.Title         += series_array[i] + "  ";
                                chartarea.AxisY.TitleFont      = new Font("宋体", 9);
                                chartarea.AxisY.TitleForeColor = Color.Blue;
                            }
                        }

                        Legend legend = new Legend("Legend" + chartindex.ToString());
                        legend.Docking   = Docking.Bottom;
                        legend.Alignment = StringAlignment.Center;
                        legend.Title     = chartarea.AxisY.Title;
                        Chart1.Legends.Add(legend);

                        foreach (string seriesname in list_series)
                        {
                            Series series = new Series(seriesname);

                            string charttypedesc = DictionaryBLL.GetDicCollections("RPT_ReportChartType")[chart.ChartType.ToString()].Description;
                            series.ChartType     = (SeriesChartType)Enum.Parse(typeof(SeriesChartType), charttypedesc, true);
                            series.ChartArea     = chartarea.Name;
                            series.Legend        = legend.Name;
                            series.YValueMembers = seriesname;
                            series.XValueMember  = chart.AxisColumns;
                            series.ToolTip       = seriesname;

                            if (series.ChartType == SeriesChartType.Spline || series.ChartType == SeriesChartType.Line)
                            {
                                series.BorderWidth = 3;
                                chartarea.AxisX.IsMarginVisible = false;
                            }

                            if (chart["IsValueShownAsLabel"] == "Y")
                            {
                                series.IsValueShownAsLabel = true;                                             //显示值标签
                            }
                            if (DictionaryBLL.GetDicCollections("PRT_ChartDrawingStyle").ContainsKey(chart["DrawingStyle"]))
                            {
                                Dictionary_Data dic = DictionaryBLL.GetDicCollections("PRT_ChartDrawingStyle")[chart["DrawingStyle"]];
                                series.CustomProperties = "DrawingStyle=" + dic.Description;
                            }

                            Chart1.Series.Add(series);
                        }
                        #endregion

                        #region 设置横向轴分组式Label
                        IList <Rpt_ReportRowGroups> RowGroups = report.GetRowGroups();
                        for (int rowgroupindex = 0; rowgroupindex < RowGroups.Count; rowgroupindex++)
                        {
                            int startposition = 0;
                            for (int i = 0; i < dt_chart.Rows.Count; i++)
                            {
                                if (i == dt_chart.Rows.Count - 1 || dt_chart.Rows[i][RowGroups[rowgroupindex].DisplayName].ToString() !=
                                    dt_chart.Rows[i + 1][RowGroups[rowgroupindex].DisplayName].ToString())
                                {
                                    chartarea.AxisX.CustomLabels.Add(startposition + 0.5, i + 1.4, dt_chart.Rows[i][RowGroups[rowgroupindex].DisplayName].ToString(), RowGroups.Count - rowgroupindex - 1, LabelMarkStyle.LineSideMark);
                                    startposition = i + 1;
                                }
                            }
                        }
                        #endregion
                    }

                    Chart1.Height     = new Unit(500 * Chart1.ChartAreas.Count);
                    Chart1.DataSource = dt_chart;
                    Chart1.DataBind();
                }
                #endregion
            }

            #region 绑定GridView
            DataTable dt_gridview = report.GetReportDataWithSummary();

            if (report.Model.ReportType == 1)
            {
                GridView1.AllowPaging = !IsExport;
                GridView1.PageSize    = 50;
                GridView1.DataSource  = dt_gridview;
                GridView1.DataBind();
            }
            else if (report.Model.ReportType == 2)
            {
                GridView1.AllowPaging = !IsExport;
                GridView1.PageSize    = 100;
                GridView1.DataSource  = dt_gridview;
                GridView1.DataBind();
                GridViewMatric(GridView1);
            }

            lb_PageInfo.Visible = false;
            bt_PrePage.Visible  = false;
            bt_NextPage.Visible = false;

            if (GridView1.AllowPaging)
            {
                lb_PageInfo.Text = string.Format("每页<b><font color=red>{0}</font></b>条/共<b><font color=red>{1}</font></b>条 第<b><font color=red>{2}</font></b>页/共<b><font color=red>{3}</font></b>页",
                                                 GridView1.PageSize > dt_gridview.Rows.Count ? dt_gridview.Rows.Count : GridView1.PageSize,
                                                 dt_gridview.Rows.Count, GridView1.PageIndex + 1, GridView1.PageCount);
                lb_PageInfo.Visible = true;
                if (GridView1.PageIndex > 0)
                {
                    bt_PrePage.Visible = true;
                }
                if (GridView1.PageIndex < GridView1.PageCount - 1)
                {
                    bt_NextPage.Visible = true;
                }
            }
            if (dt_gridview.Columns.Count >= 22)
            {
                GridView1.Width = new Unit(dt_gridview.Columns.Count * 65);
            }
            else
            {
                GridView1.Width = new Unit(100, UnitType.Percentage);
            }

            if (!IsExport)
            {
                int rowindex = 0;
                foreach (Rpt_ReportRowGroups rowgroup in report.GetRowGroups())
                {
                    if (dt_gridview.Columns.Contains(rowgroup.DisplayName))
                    {
                        GridViewMergSampeValueRow(GridView1, rowindex);
                        rowindex++;
                    }
                }
            }
            #endregion

            if (report.DataCacheTime <= DateTime.Now.AddMinutes(-1))
            {
                bt_ClearDataCache.Visible   = true;
                lb_DataSetCacheTime.Visible = true;
                lb_DataSetCacheTime.Text    = " 数据源来自历史快照,获取时间:" + report.DataCacheTime.ToString("yyyy-MM-dd HH:mm");
            }
            else
            {
                bt_ClearDataCache.Visible   = false;
                lb_DataSetCacheTime.Visible = false;
            }
        }
        else
        {
            MessageBox.Show(this, "未能检索到数据!");
        }
    }
        // [Example("All in one")]
        public static PlotModel AllInOne()
        {
            var model = new PlotModel
            {
                Title = "All in one"
            };

            var l = new Legend
            {
                LegendPlacement       = LegendPlacement.Outside,
                LegendPosition        = LegendPosition.BottomCenter,
                LegendOrientation     = LegendOrientation.Horizontal,
                LegendBorderThickness = 0
            };

            model.Legends.Add(l);

            var categoryAxis = new CategoryAxis {
                Position = AxisPosition.Left, GapWidth = 0.01
            };

            categoryAxis.Labels.Add("Category A");
            categoryAxis.Labels.Add("Category B");
            categoryAxis.Labels.Add("Category C");
            categoryAxis.Labels.Add("Category D");
            var valueAxis = new LinearAxis
            {
                Position               = AxisPosition.Bottom,
                MinimumPadding         = 0.06,
                MaximumPadding         = 0.06,
                ExtraGridlines         = new[] { 0.0 },
                ExtraGridlineStyle     = LineStyle.Solid,
                ExtraGridlineColor     = OxyColors.Black,
                ExtraGridlineThickness = 1
            };

            var categoryA = 0;
            var categoryB = 1;
            var categoryC = 2;
            var categoryD = 3;

            var s1 = new BarSeries {
                Title = "Series 1", IsStacked = true, StrokeColor = OxyColors.Black, StrokeThickness = 1, StackGroup = "3"
            };

            s1.Items.Add(new BarItem {
                Value = 25
            });
            s1.Items.Add(new BarItem {
                Value = 137
            });
            s1.Items.Add(new BarItem {
                Value = 18
            });
            s1.Items.Add(new BarItem {
                Value = 40
            });
            var s2 = new BarSeries {
                Title = "Series 2", IsStacked = true, StrokeColor = OxyColors.Black, StrokeThickness = 1, StackGroup = "3"
            };

            s2.Items.Add(new BarItem {
                Value = -12
            });
            s2.Items.Add(new BarItem {
                Value = -14
            });
            s2.Items.Add(new BarItem {
                Value = -120
            });
            s2.Items.Add(new BarItem {
                Value = -26
            });

            var s3 = new BarSeries {
                Title = "Series 3", IsStacked = true, StrokeColor = OxyColors.Black, StrokeThickness = 1, StackGroup = "5"
            };

            s3.Items.Add(new BarItem {
                Value = 21
            });
            s3.Items.Add(new BarItem {
                Value = 8
            });
            s3.Items.Add(new BarItem {
                Value = 48
            });
            s3.Items.Add(new BarItem {
                Value = 3
            });
            var s4 = new BarSeries {
                Title = "Series 4", IsStacked = true, StrokeColor = OxyColors.Black, StrokeThickness = 1, StackGroup = "5", LabelFormatString = "{0:0}", LabelPlacement = LabelPlacement.Middle
            };

            s4.Items.Add(new BarItem {
                Value = -8, CategoryIndex = categoryA
            });
            s4.Items.Add(new BarItem {
                Value = -8, CategoryIndex = categoryA
            });
            s4.Items.Add(new BarItem {
                Value = -8, CategoryIndex = categoryA
            });
            s4.Items.Add(new BarItem {
                Value = -21, CategoryIndex = categoryB
            });
            s4.Items.Add(new BarItem {
                Value = -3, CategoryIndex = categoryC
            });
            s4.Items.Add(new BarItem {
                Value = -48, CategoryIndex = categoryD
            });
            s4.Items.Add(new BarItem {
                Value = 8, CategoryIndex = categoryA
            });
            s4.Items.Add(new BarItem {
                Value = 21, CategoryIndex = categoryB
            });
            s4.Items.Add(new BarItem {
                Value = 3, CategoryIndex = categoryC
            });
            s4.Items.Add(new BarItem {
                Value = 48, CategoryIndex = categoryD
            });

            var s5 = new BarSeries {
                Title = "Series 5", IsStacked = false, StrokeColor = OxyColors.Black, StrokeThickness = 1
            };

            s5.Items.Add(new BarItem {
                Value = 17, CategoryIndex = categoryA
            });
            s5.Items.Add(new BarItem {
                Value = 179, CategoryIndex = categoryB
            });
            s5.Items.Add(new BarItem {
                Value = 45, CategoryIndex = categoryC
            });
            s5.Items.Add(new BarItem {
                Value = 65, CategoryIndex = categoryD
            });
            s5.Items.Add(new BarItem {
                Value = 97, CategoryIndex = categoryA
            });
            s5.Items.Add(new BarItem {
                Value = 21, CategoryIndex = categoryD
            });

            var s6 = new BarSeries {
                Title = "Series 6", IsStacked = false, StrokeColor = OxyColors.Black, StrokeThickness = 1, LabelFormatString = "{0:0}", LabelPlacement = LabelPlacement.Base
            };

            s6.Items.Add(new BarItem {
                Value = 7
            });
            s6.Items.Add(new BarItem {
                Value = 54
            });
            s6.Items.Add(new BarItem {
                Value = 68
            });
            s6.Items.Add(new BarItem {
                Value = 12
            });

            model.Series.Add(s1);
            model.Series.Add(s2);
            model.Series.Add(s3);
            model.Series.Add(s4);
            model.Series.Add(s5);
            model.Series.Add(s6);
            model.Axes.Add(categoryAxis);
            model.Axes.Add(valueAxis);
            return(model);
        }
Beispiel #14
0
 /// <summary>
 /// 设置Legend位于底部并居中
 /// </summary>
 /// <param name="legend">Legend</param>
 public static void SetBottomCenter(this Legend legend)
 {
     legend.Direction           = LegendDirection.LeftToRight;
     legend.AlignmentHorizontal = LegendAlignmentHorizontal.Center;
     legend.AlignmentVertical   = LegendAlignmentVertical.BottomOutside;
 }
Beispiel #15
0
        private void CreateChart(DataTable _dt, DevExpress.XtraCharts.ChartControl _chartControl)
        {
            try
            {
                ((XYDiagram)_chartControl.Diagram).EnableAxisXZooming = true;

                ((XYDiagram)_chartControl.Diagram).AxisX.VisualRange.Auto             = false;
                ((XYDiagram)_chartControl.Diagram).AxisX.VisualRange.AutoSideMargins  = false;
                ((XYDiagram)_chartControl.Diagram).AxisX.VisualRange.SideMarginsValue = 1;
                ((XYDiagram)_chartControl.Diagram).AxisX.Label.Angle      = 0;
                ((XYDiagram)_chartControl.Diagram).AxisX.Label.Font       = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold);
                ((XYDiagram)_chartControl.Diagram).AxisX.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
                ((XYDiagram)_chartControl.Diagram).AxisX.Title.Text       = "Date";
                ((XYDiagram)_chartControl.Diagram).AxisX.Title.Font       = new Font("Calibri", 14F, System.Drawing.FontStyle.Bold);

                ((XYDiagram)_chartControl.Diagram).AxisY.Label.Font        = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold);
                ((XYDiagram)_chartControl.Diagram).AxisY.Title.Visibility  = DevExpress.Utils.DefaultBoolean.True;
                ((XYDiagram)_chartControl.Diagram).AxisY.Title.Text        = " OS&D (Prs)";
                ((XYDiagram)_chartControl.Diagram).AxisY.Label.TextPattern = "{V:###,###}";
                ((XYDiagram)_chartControl.Diagram).AxisY.Title.Font        = new Font("Calibri", 14F, System.Drawing.FontStyle.Bold);

                ((XYDiagram)_chartControl.Diagram).AxisY.Title.TextColor = Color.DarkOrange;
                ((XYDiagram)_chartControl.Diagram).AxisX.Title.TextColor = Color.DarkOrange;

                DevExpress.XtraCharts.XYSeriesUnwindAnimation xySeriesSlideAnimation1 = new DevExpress.XtraCharts.XYSeriesUnwindAnimation();

                _chartControl.AnimationStartMode = DevExpress.XtraCharts.ChartAnimationMode.OnDataChanged;

                _chartControl.Series.Clear();
                _chartControl.Titles.Clear();

                Legend   lgBox     = new Legend();
                Series[] arrSeries = new Series[_dt.Rows.Count - 1];
                lgBox.Visibility = DevExpress.Utils.DefaultBoolean.True;
                lgBox.Font       = new Font("Calibri", 16F, System.Drawing.FontStyle.Bold);

                if (_dt != null && _dt.Rows.Count > 0)
                {
                    for (int iRow = 0; iRow < _dt.Rows.Count; iRow++)
                    {
                        if (_dt.Rows[iRow]["DIV"].ToString() == "1")
                        {
                            arrSeries[iRow] = new Series(_dt.Rows[iRow]["LINE_CD"].ToString(), ViewType.Spline);
                            for (int iCol = 2; iCol < _dt.Columns.Count; iCol++)
                            {
                                if (_dt.Rows[iRow][iCol].ToString() != "" && _dt.Rows[iRow][iCol] != null)
                                {
                                    arrSeries[iRow].Points.Add(new SeriesPoint(DateTime.ParseExact(_dt.Columns[iCol].Caption.ToString().Substring(1, 8), "yyyyMMdd", CultureInfo.InvariantCulture).ToString("MMM\ndd"), Convert.ToDouble(_dt.Rows[iRow][iCol].ToString())));
                                }
                                else
                                {
                                    arrSeries[iRow].Points.Add(new SeriesPoint(DateTime.ParseExact(_dt.Columns[iCol].Caption.ToString().Substring(1, 8), "yyyyMMdd", CultureInfo.InvariantCulture).ToString("MMM\ndd"), 0));
                                }
                            }
                        }
                    }
                }



                for (int i = 0; i < arrSeries.Length; i++)
                {
                    DevExpress.XtraCharts.SplineSeriesView splineSeriesView = new DevExpress.XtraCharts.SplineSeriesView();

                    splineSeriesView.LineStyle.Thickness     = 2;
                    splineSeriesView.SeriesAnimation         = xySeriesSlideAnimation1;
                    splineSeriesView.MarkerVisibility        = DevExpress.Utils.DefaultBoolean.True;
                    splineSeriesView.LineMarkerOptions.Size  = 15;
                    splineSeriesView.LineMarkerOptions.Color = Color.DodgerBlue;
                    splineSeriesView.Color = getColor(arrSeries[i].Name.ToString());

                    arrSeries[i].LabelsVisibility  = DevExpress.Utils.DefaultBoolean.True;
                    arrSeries[i].Label.TextPattern = "{V:###,###.#}";
                    arrSeries[i].ArgumentScaleType = ScaleType.Qualitative;
                    arrSeries[i].View = splineSeriesView;
                }



                // Access the type-specific options of the diagram.
                _chartControl.Series.AddRange(arrSeries);
                _chartControl.Legends.Add(lgBox);
                ((XYDiagram)_chartControl.Diagram).AxisX.QualitativeScaleOptions.AutoGrid = false;
            }
            catch (Exception EX)
            {
            }
        }
        private void Display()
        {
            timetimer.Stop();       // redisplay, stop the time timer and lose the timeie.
            timeie = null;

            pictureBox.ClearImageList();
            Controls.RemoveByKey("chart");

            if (curlist != null)
            {
                var found = ReadHistory(out int prospectorsused, out int collectorsused, out int asteroidscracked, out int prospected, out int[] content);

                Font    displayfont = discoveryform.theme.GetFont;
                Color   textcolour  = IsTransparent ? discoveryform.theme.SPanelColor : discoveryform.theme.LabelColor;
                Color   backcolour  = IsTransparent ? Color.Transparent : this.BackColor;
                Color   GridC       = discoveryform.theme.GridBorderLines;
                Color   TextC       = discoveryform.theme.GridCellText;
                Color   BackC       = discoveryform.theme.GridCellBack;
                Color[] LineC       = new Color[] { discoveryform.theme.KnownSystemColor, discoveryform.theme.TextBlockHighlightColor,
                                                    Color.Blue, Color.Yellow, Color.Green, Color.Gray, Color.HotPink, Color.Teal };

                using (StringFormat frmt = new StringFormat())
                {
                    frmt.FormatFlags = StringFormatFlags.NoWrap;

                    int vpos         = 5;
                    int colwidth     = (int)BaseUtils.BitMapHelpers.MeasureStringInBitmap("0000", displayfont, frmt).Width;
                    int percentwidth = (int)BaseUtils.BitMapHelpers.MeasureStringInBitmap("00000.0", displayfont, frmt).Width;
                    int hmlwidth     = percentwidth * 2;

                    int[] colsw = new int[] { colwidth * 4, colwidth, colwidth, colwidth, percentwidth, percentwidth, percentwidth, percentwidth, percentwidth, percentwidth, hmlwidth, colwidth };
                    int[] hpos  = new int[colsw.Length];
                    hpos[0] = 4;
                    for (int i = 1; i < hpos.Length; i++)
                    {
                        hpos[i] = hpos[i - 1] + colsw[i - 1];
                    }

                    int limpetscolpos = 0;
                    if (curlist.Count() > 0)
                    {
                        lastrefined = found.Sum(x => x.amountrefined);      // for use by timer

                        string timetext = TimeText(true);
                        if (timetext.HasChars())
                        {
                            timeie        = pictureBox.AddTextAutoSize(new Point(hpos[0], vpos), new Size(colsw[0], this.Height), timetext, displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                            limpetscolpos = 1;
                        }
                    }
                    else
                    {
                        lastrefined = 0;
                    }

                    {
                        string text = string.Format("Limpets left {0}, Cargo left {1}".T(EDTx.UserControlMiningOverlay_Limcargo), limpetsleftdisplay, cargoleftdisplay);
                        if (collectorsused > 0 || prospectorsused > 0 || asteroidscracked > 0)
                        {
                            text += string.Format(", Prospectors Fired {0}, Collectors Deployed {1}, Cracked {2}".T(EDTx.UserControlMiningOverlay_Proscoll), prospectorsused, collectorsused, asteroidscracked);
                        }

                        var ieprosp = pictureBox.AddTextAutoSize(new Point(hpos[limpetscolpos], vpos), new Size(this.Width - hpos[limpetscolpos] - 20, this.Height),
                                                                 text, displayfont, textcolour, backcolour, 1.0F, frmt: frmt);

                        vpos = ieprosp.Location.Bottom + displayfont.ScalePixels(2);
                    }

                    bool displaytable = found.Count > 0 && (extCheckBoxZeroRefined.Checked ? lastrefined > 0 : true);

                    if (displaytable)
                    {
                        var ieheader = pictureBox.AddTextAutoSize(new Point(hpos[1], vpos), new Size(colsw[1], this.Height), "Ref.".T(EDTx.UserControlMiningOverlay_ref), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                        pictureBox.AddTextAutoSize(new Point(hpos[2], vpos), new Size(colsw[2], this.Height), "Coll.".T(EDTx.UserControlMiningOverlay_coll), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                        pictureBox.AddTextAutoSize(new Point(hpos[3], vpos), new Size(colsw[3], this.Height), "Prosp.".T(EDTx.UserControlMiningOverlay_pros), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);

                        pictureBox.AddTextAutoSize(new Point(hpos[4], vpos), new Size(colsw[4], this.Height), "Ratio%".T(EDTx.UserControlMiningOverlay_ratio), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                        pictureBox.AddTextAutoSize(new Point(hpos[5], vpos), new Size(colsw[5], this.Height), "Avg%".T(EDTx.UserControlMiningOverlay_avg), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                        pictureBox.AddTextAutoSize(new Point(hpos[6], vpos), new Size(colsw[6], this.Height), "Min%".T(EDTx.UserControlMiningOverlay_min), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                        pictureBox.AddTextAutoSize(new Point(hpos[7], vpos), new Size(colsw[7], this.Height), "Max%".T(EDTx.UserControlMiningOverlay_max), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                        pictureBox.AddTextAutoSize(new Point(hpos[8], vpos), new Size(colsw[8], this.Height), "M.Lode".T(EDTx.UserControlMiningOverlay_mload), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                        pictureBox.AddTextAutoSize(new Point(hpos[9], vpos), new Size(colsw[9], this.Height), "HML Ct.".T(EDTx.UserControlMiningOverlay_hml), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                        pictureBox.AddTextAutoSize(new Point(hpos[10], vpos), new Size(colsw[10], this.Height), "Discv".T(EDTx.UserControlMiningOverlay_discv), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                        vpos = ieheader.Location.Bottom + displayfont.ScalePixels(2);

                        if (prospected > 0)
                        {
                            var ie = pictureBox.AddTextAutoSize(new Point(hpos[0], vpos), new Size(colsw[0], this.Height), "Asteroids Pros.".T(EDTx.UserControlMiningOverlay_astpros), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                            pictureBox.AddTextAutoSize(new Point(hpos[3], vpos), new Size(colsw[3], this.Height), prospected.ToString("N0"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                            pictureBox.AddTextAutoSize(new Point(hpos[9], vpos), new Size(colsw[9], this.Height), content[0].ToString("N0") + "/" + content[1].ToString("N0") + "/" + content[2].ToString("N0"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                            vpos = ie.Location.Bottom + displayfont.ScalePixels(2);
                        }

                        foreach (var m in found)
                        {
                            if (!extCheckBoxZeroRefined.Checked || m.amountrefined > 0)
                            {
                                var ie1 = pictureBox.AddTextAutoSize(new Point(hpos[0], vpos), new Size(colsw[0], this.Height), m.friendlyname, displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                pictureBox.AddTextAutoSize(new Point(hpos[1], vpos), new Size(colsw[1], this.Height), m.amountrefined.ToString("N0"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                pictureBox.AddTextAutoSize(new Point(hpos[2], vpos), new Size(colsw[2], this.Height), (m.amountcollected - m.amountdiscarded).ToString("N0"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                if (m.prospectednoasteroids > 0)
                                {
                                    pictureBox.AddTextAutoSize(new Point(hpos[3], vpos), new Size(colsw[3], this.Height), m.prospectednoasteroids.ToString("N0"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);

                                    pictureBox.AddTextAutoSize(new Point(hpos[4], vpos), new Size(colsw[4], this.Height), (100.0 * (double)m.prospectednoasteroids / prospected).ToString("N1"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                    pictureBox.AddTextAutoSize(new Point(hpos[5], vpos), new Size(colsw[5], this.Height), m.prospectedamounts.Average().ToString("N1"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                    pictureBox.AddTextAutoSize(new Point(hpos[6], vpos), new Size(colsw[6], this.Height), m.prospectedamounts.Min().ToString("N1"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                    pictureBox.AddTextAutoSize(new Point(hpos[7], vpos), new Size(colsw[7], this.Height), m.prospectedamounts.Max().ToString("N1"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                    pictureBox.AddTextAutoSize(new Point(hpos[9], vpos), new Size(colsw[9], this.Height), m.content[0].ToString("N0") + "/" + m.content[1].ToString("N0") + "/" + m.content[2].ToString("N0"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                }

                                if (m.motherloadasteroids > 0)
                                {
                                    pictureBox.AddTextAutoSize(new Point(hpos[8], vpos), new Size(colsw[8], this.Height), m.motherloadasteroids.ToString("N0"), displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                }

                                if (m.discovered)
                                {
                                    pictureBox.AddTextAutoSize(new Point(hpos[10], vpos), new Size(colsw[10], this.Height), " *", displayfont, textcolour, backcolour, 1.0F, frmt: frmt);
                                }

                                vpos = ie1.Location.Bottom + displayfont.ScalePixels(2);
                            }
                        }
                    }

                    pictureBox.Render(true, new Size(0, vpos + displayfont.ScalePixels(8)));       // control is resized with a min height

                    var prospectedlist = found.Where(m => m.prospectednoasteroids > 0).ToList();

                    UpdateComboBox(prospectedlist.Select(m => m.friendlyname).ToList());

                    int?seli = selectedchart as int?;
                    int?selm = selectedchart is string?prospectedlist.FindIndex(x => x.friendlyname == selectedchart as string) : default(int?);

                    if (prospectedlist.Count > 0 && ((seli.HasValue && seli > 0) || selm.HasValue))
                    {
                        List <MaterialsFound> matdata = new List <MaterialsFound>();
                        if (seli.HasValue)
                        {
                            if (seli == chartfixeditems.Length - 1)
                            {
                                seli = LineC.Length;
                            }

                            for (int i = 0; i < seli.Value && i < prospectedlist.Count; i++)
                            {
                                matdata.Add(prospectedlist[i]);
                            }
                        }
                        else
                        {
                            matdata.Add(prospectedlist[selm.Value]);
                        }

                        try
                        {
                            Chart chart = new Chart();
                            chart.Name            = "chart";    // important for remove by key above
                            chart.Dock            = DockStyle.Fill;
                            chart.BorderlineColor = GridC;      // around the whole thing.
                            chart.BackColor       = backcolour; // the whole chart background

                            chart.BeginInit();
                            chart.BorderlineDashStyle = ChartDashStyle.Solid;

                            ChartArea chartarea = new ChartArea();
                            chartarea.BorderColor     = GridC;      // gives the top/right colours for this type of chart
                            chartarea.BorderDashStyle = ChartDashStyle.Solid;
                            chartarea.BorderWidth     = 1;
                            chartarea.BackColor       = BackC;            // chart area is coloured slightly

                            chartarea.AxisX.LabelStyle.ForeColor = TextC; // label on axis colour
                            chartarea.AxisX.LabelStyle.Font      = displayfont;
                            chartarea.AxisX.MajorGrid.LineColor  = GridC; // major grid colour
                            chartarea.AxisX.LineColor            = GridC; // axis (0 value) colour
                            chartarea.AxisX.Title          = "Content %".T(EDTx.UserControlMiningOverlay_content);
                            chartarea.AxisX.TitleFont      = displayfont;
                            chartarea.AxisX.TitleForeColor = TextC;
                            chartarea.AxisX.Interval       = 10;
                            chartarea.AxisX.Minimum        = 0;

                            chartarea.AxisY.LabelStyle.ForeColor = TextC;
                            chartarea.AxisY.LabelStyle.Font      = displayfont;
                            chartarea.AxisY.MajorGrid.LineColor  = GridC;
                            chartarea.AxisY.LineColor            = GridC; // axis (0 value) colour
                            chartarea.AxisY.Title          = "% Above".T(EDTx.UserControlMiningOverlay_above);
                            chartarea.AxisY.TitleFont      = displayfont;
                            chartarea.AxisY.TitleForeColor = TextC;
                            chartarea.AxisY.Interval       = 10;
                            chartarea.AxisY.Maximum        = 101;

                            chart.ChartAreas.Add(chartarea);

                            chart.Titles.Clear();
                            var title = new Title((matdata.Count == 1 ? (matdata[0].friendlyname + " ") : "") + "Distribution".T(EDTx.UserControlMiningOverlay_dist), Docking.Top, displayfont, TextC);
                            chart.Titles.Add(title);

                            Legend legend = null;

                            if (matdata.Count > 1)      // one legend, series are attached to it via name field
                            {
                                legend             = new Legend();
                                legend.Name        = "Legend1";
                                legend.LegendStyle = LegendStyle.Column;
                                legend.Docking     = Docking.Right;
                                legend.BackColor   = backcolour;
                                legend.ForeColor   = TextC;
                                chart.Legends.Add(legend);
                            }

                            int mi = 0;
                            foreach (var m in matdata)
                            {
                                Series series = new Series();
                                series.Name      = m.friendlyname;
                                series.ChartArea = "ChartArea1";
                                series.ChartType = SeriesChartType.Line;
                                series.Color     = LineC[mi];
                                series.Legend    = "Legend1";

                                int i = 0;
                                for (i = 0; i < CFDbMax; i++)        // 0 - fixed
                                {
                                    int numberabove = m.prospectedamounts.Count(x => x >= i);
                                    series.Points.Add(new DataPoint(i, (double)numberabove / m.prospectednoasteroids * 100.0));
                                    series.Points[i].AxisLabel = i.ToString();
                                }

                                chart.Series.Add(series);
                                mi++;
                            }

                            chart.EndInit();

                            Controls.Add(chart);
                            Controls.SetChildIndex(chart, 0);
                        }
                        catch (NotImplementedException)
                        {
                            // Charting not implemented in mono System.Windows.Forms
                        }
                    }
                }

                buttonExtExcel.Enabled = found.Count != 0;
            }
            else
            {
                pictureBox.Render();
                buttonExtExcel.Enabled = false;
            }

            Update();
        }
Beispiel #17
0
 public Layers(Legend leg)
 {
     //The next line MUST GO FIRST in the constructor
     m_Legend = leg;
     //The previous line MUST GO FIRST in the constructor
 }
Beispiel #18
0
        private void UpdatePlot()
        {
            var pm = new PlotModel {
                Title = this.year.ToString(), Subtitle = "data from gapminder.org"
            };
            var l = new Legend
            {
                LegendPosition = LegendPosition.RightBottom
            };

            pm.Legends.Add(l);

            var ss = new ScatterSeries
            {
                MarkerType            = MarkerType.Circle,
                MarkerFill            = OxyColors.Transparent,
                MarkerStroke          = OxyColors.Blue,
                MarkerStrokeThickness = 1,
                TrackerFormatString   = "{Tag}\n{1}:{2:0.0}\n{3}:{4:0.0}"
            };

            var piX     = typeof(Statistics).GetProperty("GdpPerCapitaPpp");
            var piY     = typeof(Statistics).GetProperty("LifeExpectancyAtBirth");
            var piSize  = typeof(Statistics).GetProperty("Population");
            var piColor = typeof(Statistics).GetProperty("GeographicRegion");

            foreach (var kvp in Countries)
            {
                var country = kvp.Value;
                var x       = country.FindValue(year, piX);
                var y       = country.FindValue(year, piY);
                var size    = country.FindValue(year, piSize);

                if (double.IsNaN(x) || double.IsNaN(y))
                {
                    continue;
                }
                ss.Points.Add(new ScatterPoint(x, y, double.NaN, double.NaN, country.Name));

                //double radius = 4;
                //if (!double.IsNaN(size))
                //    radius = Math.Sqrt(size)*0.1;
                //if (radius < 4) radius = 4;
                //if (radius > 40) radius = 40;
                //ss.MarkerSizes.Add(radius);
                //   Debug.WriteLine(countryName+": "+stats.Population);
            }
            pm.Series.Add(ss);
            if (SelectedCountry != null)
            {
                var ls = new LineSeries {
                    Title = SelectedCountry.Name, LineJoin = LineJoin.Bevel
                };

                foreach (var p in SelectedCountry.Statistics)
                {
                    if (double.IsNaN(p.GdpPerCapitaPpp) || double.IsNaN(p.LifeExpectancyAtBirth))
                    {
                        continue;
                    }
                    ls.Points.Add(new DataPoint(p.GdpPerCapitaPpp, p.LifeExpectancyAtBirth));
                }

                pm.Series.Add(ls);
                var    ss2 = new ScatterSeries();
                double x   = SelectedCountry.FindValue(year, piX);
                double y   = SelectedCountry.FindValue(year, piY);
                ss2.Points.Add(new ScatterPoint(x, y, 10));
                ss2.MarkerFill = OxyColor.FromAColor(120, OxyColors.Red);
                ss2.MarkerType = MarkerType.Circle;
                pm.Series.Add(ss2);
            }

            pm.Axes.Add(new LinearAxis {
                Position = AxisPosition.Left, Minimum = 19, Maximum = 87, Title = "Life expectancy (years)"
            });
            pm.Axes.Add(new LogarithmicAxis {
                Position = AxisPosition.Bottom, Title = "Income per person (GDP/capita, PPP$ inflation-adjusted)", Minimum = 200, Maximum = 90000
            });
            PlotModel = pm;
        }
Beispiel #19
0
 public EChart SetLegend(Legend legend)
 {
     _Legend = legend;
     return(this);
 }
Beispiel #20
0
        public static PlotModel MarkerTypeCircleProblem()
        {
            var plotModel = new PlotModel {
                PlotType = PlotType.Cartesian, PlotAreaBorderThickness = new OxyThickness(0)
            };

            var l = new Legend
            {
                LegendSymbolLength = 30
            };

            var xaxis = new DateTimeAxis
            {
                Position      = AxisPosition.Bottom,
                TickStyle     = TickStyle.None,
                AxislineStyle = LineStyle.Solid,
                AxislineColor = OxyColor.FromRgb(153, 153, 153),
                StringFormat  = CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedMonthName(1) + "d HH",
                IntervalType  = DateTimeIntervalType.Hours
            };

            var yaxis = new LinearAxis
            {
                Position           = AxisPosition.Left,
                Minimum            = 0.001f,
                Maximum            = 3,
                MajorGridlineStyle = LineStyle.Solid,
                TickStyle          = TickStyle.None,
                IntervalLength     = 50
            };

            plotModel.Axes.Add(xaxis);
            plotModel.Axes.Add(yaxis);

            var series1 = new LineSeries
            {
                Color           = OxyColor.FromRgb(44, 169, 173),
                StrokeThickness = 1,
                MarkerType      = MarkerType.Circle,
                MarkerStroke    = OxyColors.Blue,
                MarkerFill      = OxyColors.SkyBlue,
                // MarkerStrokeThickness = 5,
                MarkerSize          = 2,
                DataFieldX          = "Date",
                DataFieldY          = "Value",
                TrackerFormatString = "Date: {2:d HH}&#x0a;Value: {4}"
            };

            series1.Points.Add(new DataPoint(0.1, 0.7));
            series1.Points.Add(new DataPoint(0.6, 0.9));
            series1.Points.Add(new DataPoint(1.0, 0.85));
            series1.Points.Add(new DataPoint(1.4, 0.95));
            series1.Points.Add(new DataPoint(1.8, 1.2));
            series1.Points.Add(new DataPoint(2.2, 1.7));
            series1.Points.Add(new DataPoint(2.6, 1.7));
            series1.Points.Add(new DataPoint(3.0, 0.7));

            plotModel.Series.Add(series1);

            return(plotModel);
        }
    private void BindGrid(bool IsExport, bool LoadFromCache)
    {
        Guid reportid = new Guid(ViewState["Report"].ToString());

        Rpt_ReportBLL report = new Rpt_ReportBLL(reportid);

        lb_ReportTitle.Text = report.Model.Title;

        Dictionary<string, object> param;
        if (!pl_Param.GetParamsValue(out param))
        {
            MessageBox.Show(this, "请正确设定必填参数!");
            return;
        }

        if (report.LoadData(param, LoadFromCache))
        {
            if (!IsExport)
            {
                #region 绑定图表
                Chart1.Series.Clear();
                Chart1.ChartAreas.Clear();

                DataTable dt_chart = report.GetReportData();

                if (report.GetCharts().Count == 0)
                    Chart1.Visible = false;
                else
                {
                    Chart1.Legends.Clear();
                    Chart1.Series.Clear();
                    Chart1.ChartAreas.Clear();
                    int chartindex = 0;
                    foreach (Rpt_ReportCharts chart in report.GetCharts())
                    {
                        chartindex++;
                        ChartArea chartarea = new ChartArea("ChartArea" + chartindex.ToString());
                        Chart1.ChartAreas.Add(chartarea);

                        chartarea.AxisX.MajorGrid.LineDashStyle = ChartDashStyle.Dot;
                        chartarea.AxisX.MajorGrid.Interval = 1;
                        chartarea.AxisY.MajorGrid.LineDashStyle = ChartDashStyle.Dot;
                        chartarea.AxisX.MajorGrid.LineColor = Color.LightGray;
                        chartarea.AxisY.MajorGrid.LineColor = Color.LightGray;

                        chartarea.AxisX.LabelStyle.Angle = 0;
                        chartarea.AxisX.LabelAutoFitStyle = LabelAutoFitStyles.IncreaseFont;
                        chartarea.AxisX.IsLabelAutoFit = true;
                        //chartarea.AxisX.LabelStyle.ForeColor = System.Drawing.Color.Blue;

                        chartarea.AxisX.LabelAutoFitMaxFontSize = 8;
                        chartarea.AxisX.LabelAutoFitMinFontSize = 5;
                        chartarea.AxisY.LabelAutoFitMaxFontSize = 8;
                        chartarea.AxisY.LabelAutoFitMinFontSize = 5;

                        //3D显示
                        if (chart["Enable3D"] == "Y") chartarea.Area3DStyle.Enable3D = true;

                        #region 第二轴坐标
                        if (chart["AxisX2Enabled"] == "Y")
                        {
                            chartarea.AxisX2.Enabled = AxisEnabled.True;
                            chartarea.AxisX2.LabelAutoFitStyle = LabelAutoFitStyles.IncreaseFont;
                            chartarea.AxisX2.LabelAutoFitMaxFontSize = 8;
                            chartarea.AxisX2.LabelAutoFitMinFontSize = 5;
                        }

                        if (chart["AxisY2Enabled"] == "Y")
                        {
                            chartarea.AxisY2.Enabled = AxisEnabled.True;
                            chartarea.AxisY2.LabelAutoFitStyle = LabelAutoFitStyles.IncreaseFont;
                            chartarea.AxisY2.LabelAutoFitMaxFontSize = 8;
                            chartarea.AxisY2.LabelAutoFitMinFontSize = 5;
                        }
                        #endregion

                        #region 处理图表系列
                        IList<string> list_series = new List<string>();
                        string[] series_array = chart.SeriesColumns.Split(new char[] { ',', '|' }, StringSplitOptions.RemoveEmptyEntries);

                        if (report.Model.ReportType == 1)
                        {
                            //普通列表
                            for (int i = 0; i < series_array.Length; i++)
                            {
                                if (dt_chart.Columns.Contains(series_array[i])) list_series.Add(series_array[i]);
                            }
                        }

                        if (report.Model.ReportType == 2)
                        {
                            //矩阵表
                            IList<Rpt_ReportRowGroups> rowgroups = report.GetRowGroups();
                            IList<Rpt_ReportValueGroups> valuegroups = report.GetValueGroups();

                            for (int i = 0; i < series_array.Length; i++)
                            {
                                foreach (DataColumn column in dt_chart.Columns)
                                {
                                    if (rowgroups.FirstOrDefault(p => p.DisplayName == column.ColumnName) != null)
                                    {
                                        continue;
                                    }
                                    if (valuegroups.Count == 1)
                                        list_series.Add(column.ColumnName);
                                    else
                                    {
                                        if (column.ColumnName.EndsWith(series_array[i])) list_series.Add(column.ColumnName);
                                    }
                                }
                                chartarea.AxisY.Title += series_array[i] + "  ";
                                chartarea.AxisY.TitleFont = new Font("宋体", 9);
                                chartarea.AxisY.TitleForeColor = Color.Blue;
                            }
                        }

                        Legend legend = new Legend("Legend" + chartindex.ToString());
                        legend.Docking = Docking.Bottom;
                        legend.Alignment = StringAlignment.Center;
                        legend.Title = chartarea.AxisY.Title;
                        Chart1.Legends.Add(legend);

                        foreach (string seriesname in list_series)
                        {
                            Series series = new Series(seriesname);

                            string charttypedesc = DictionaryBLL.GetDicCollections("RPT_ReportChartType")[chart.ChartType.ToString()].Description;
                            series.ChartType = (SeriesChartType)Enum.Parse(typeof(SeriesChartType), charttypedesc, true);
                            series.ChartArea = chartarea.Name;
                            series.Legend = legend.Name;
                            series.YValueMembers = seriesname;
                            series.XValueMember = chart.AxisColumns;
                            series.ToolTip = seriesname;

                            if (series.ChartType == SeriesChartType.Spline || series.ChartType == SeriesChartType.Line)
                            {
                                series.BorderWidth = 3;
                                chartarea.AxisX.IsMarginVisible = false;
                            }

                            if (chart["IsValueShownAsLabel"] == "Y") series.IsValueShownAsLabel = true;        //显示值标签

                            if (DictionaryBLL.GetDicCollections("PRT_ChartDrawingStyle").ContainsKey(chart["DrawingStyle"]))
                            {
                                Dictionary_Data dic = DictionaryBLL.GetDicCollections("PRT_ChartDrawingStyle")[chart["DrawingStyle"]];
                                series.CustomProperties = "DrawingStyle=" + dic.Description;
                            }

                            Chart1.Series.Add(series);
                        }
                        #endregion

                        #region 设置横向轴分组式Label
                        IList<Rpt_ReportRowGroups> RowGroups = report.GetRowGroups();
                        for (int rowgroupindex = 0; rowgroupindex < RowGroups.Count; rowgroupindex++)
                        {
                            int startposition = 0;
                            for (int i = 0; i < dt_chart.Rows.Count; i++)
                            {
                                if (i == dt_chart.Rows.Count - 1 || dt_chart.Rows[i][RowGroups[rowgroupindex].DisplayName].ToString() !=
                                    dt_chart.Rows[i + 1][RowGroups[rowgroupindex].DisplayName].ToString())
                                {
                                    chartarea.AxisX.CustomLabels.Add(startposition + 0.5, i + 1.4, dt_chart.Rows[i][RowGroups[rowgroupindex].DisplayName].ToString(), RowGroups.Count - rowgroupindex - 1, LabelMarkStyle.LineSideMark);
                                    startposition = i + 1;
                                }
                            }
                        }
                        #endregion

                    }

                    Chart1.Height = new Unit(500 * Chart1.ChartAreas.Count);
                    Chart1.DataSource = dt_chart;
                    Chart1.DataBind();
                }
                #endregion
            }

            #region 绑定GridView
            DataTable dt_gridview = report.GetReportDataWithSummary();

            if (report.Model.ReportType == 1)
            {
                GridView1.AllowPaging = !IsExport;
                GridView1.PageSize = 50;
                GridView1.DataSource = dt_gridview;
                GridView1.DataBind();
            }
            else if (report.Model.ReportType == 2)
            {
                GridView1.AllowPaging = !IsExport;
                GridView1.PageSize = 100;
                GridView1.DataSource = dt_gridview;
                GridView1.DataBind();
                GridViewMatric(GridView1);
            }

            lb_PageInfo.Visible = false;
            bt_PrePage.Visible = false;
            bt_NextPage.Visible = false;

            if (GridView1.AllowPaging)
            {
                lb_PageInfo.Text = string.Format("每页<b><font color=red>{0}</font></b>条/共<b><font color=red>{1}</font></b>条 第<b><font color=red>{2}</font></b>页/共<b><font color=red>{3}</font></b>页",
                    GridView1.PageSize > dt_gridview.Rows.Count ? dt_gridview.Rows.Count : GridView1.PageSize,
                    dt_gridview.Rows.Count, GridView1.PageIndex + 1, GridView1.PageCount);
                lb_PageInfo.Visible = true;
                if (GridView1.PageIndex > 0) bt_PrePage.Visible = true;
                if (GridView1.PageIndex < GridView1.PageCount - 1) bt_NextPage.Visible = true;
            }
            if (dt_gridview.Columns.Count >= 22)
                GridView1.Width = new Unit(dt_gridview.Columns.Count * 65);
            else
                GridView1.Width = new Unit(100, UnitType.Percentage);

            if (!IsExport)
            {
                int rowindex = 0;
                foreach (Rpt_ReportRowGroups rowgroup in report.GetRowGroups())
                {
                    if (dt_gridview.Columns.Contains(rowgroup.DisplayName))
                    {
                        GridViewMergSampeValueRow(GridView1, rowindex);
                        rowindex++;
                    }
                }
            }
            #endregion

            if (report.DataCacheTime <= DateTime.Now.AddMinutes(-1))
            {
                bt_ClearDataCache.Visible = true;
                lb_DataSetCacheTime.Visible = true;
                lb_DataSetCacheTime.Text = " 数据源来自历史快照,获取时间:" + report.DataCacheTime.ToString("yyyy-MM-dd HH:mm");
            }
            else
            {
                bt_ClearDataCache.Visible = false;
                lb_DataSetCacheTime.Visible = false;
            }
        }
        else
        {
            MessageBox.Show(this, "未能检索到数据!");
        }
    }
        public Chart createChartStation(int station, String echelle, String type)
        {
            Dictionary <int, KeyValuePair <double, double> > statsTab;

            if (type == "Arrondissement")
            {
                statsTab = this.StatistiquesArrondissement(convertStationToDistrict(station), echelle);
            }
            else if (type == "Paris")
            {
                statsTab = this.StatistiquesParis(echelle);
            }
            else
            {
                if (echelle == "Heure")
                {
                    statsTab = LocalDataBase.statsTabHeure[station];
                }
                else if (echelle == "Jour")
                {
                    statsTab = LocalDataBase.statsTabJour[station];
                }
                else
                {
                    statsTab = LocalDataBase.statsTabHeureOuvre[station];
                }
            }

            Chart     chartStat;
            ChartArea meanArea  = new ChartArea();
            Series    plusEcart = new Series("EcartType");


            meanArea.AxisY.Title             = "Moyenne disponibilité";
            meanArea.AxisX.Title             = echelle;
            meanArea.AxisX.TitleFont         = new System.Drawing.Font("Helvetica", 10, System.Drawing.FontStyle.Bold);
            meanArea.AxisY.TitleFont         = new System.Drawing.Font("Helvetica", 10, System.Drawing.FontStyle.Bold);
            meanArea.Name                    = "StatArea";
            meanArea.AxisX.MajorGrid.Enabled = false;
            Legend legendStat = new Legend();
            Series seriesStat = new Series("Moyenne disponibilité " + echelle);



            chartStat = new System.Windows.Forms.DataVisualization.Charting.Chart();
            ((System.ComponentModel.ISupportInitialize)(chartStat)).BeginInit();


            foreach (int temps in statsTab.Keys)
            {
                seriesStat.Points.AddXY(temps, statsTab[temps].Key);
            }


            foreach (int temps in statsTab.Keys)
            {
                double varUp = 0.95;


                if (statsTab[temps].Key + Math.Sqrt(statsTab[temps].Value) < 0.95)
                {
                    varUp = statsTab[temps].Key + statsTab[temps].Value;
                }

                double varDw = 0.05;
                if (statsTab[temps].Key - Math.Sqrt(statsTab[temps].Value) > 0.05)
                {
                    varDw = statsTab[temps].Key - statsTab[temps].Value;
                }

                //double varUp = statsTab[ temps ].Key +  statsTab[ temps ].Value ;
                //double varDw = statsTab[ temps ].Key - statsTab[ temps ].Value ;
                //double[] dataD = new double[] { statsTab[ temps ].Key ,var, statsTab[ temps ].Key + Math.Sqrt(statsTab[ temps ].Value)};
                double[]  dataD = new double[] { statsTab[temps].Key, varDw, varUp };
                DataPoint point = new DataPoint(temps, dataD);
                plusEcart.Points.Add(point);
            }


            seriesStat.Sort(PointSortOrder.Ascending, "X");
            seriesStat.Color       = System.Drawing.Color.Purple;
            plusEcart.Color        = System.Drawing.Color.RoyalBlue;
            seriesStat.BorderWidth = 2;
            plusEcart.BorderWidth  = 1;
            plusEcart.Sort(PointSortOrder.Ascending, "X");
            chartStat.Series.Add(seriesStat);
            chartStat.Series.Add(plusEcart);
            chartStat.ChartAreas.Add(meanArea);
            chartStat.BackColor = System.Drawing.Color.Silver;
            meanArea.BackColor  = System.Drawing.Color.LightGray;
            legendStat.Name     = "legend";
            //legendStat.DockedToChartArea = "StatArea";
            legendStat.Docking = Docking.Bottom;
            Title titre;

            chartStat.Legends.Add(legendStat);

            if (type == "Arrondissement")
            {
                titre = new Title(type + " " + convertStationToDistrict(station));
            }
            else if (type == "Paris")
            {
                titre = new Title(type + " ");
            }
            else
            {
                titre = new Title(type + " " + station);
            }

            titre.Font = new System.Drawing.Font("Helvetica", 10, System.Drawing.FontStyle.Bold);

            chartStat.Titles.Add(titre);
            chartStat.Size       = new System.Drawing.Size(500, 300);
            seriesStat.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
            plusEcart.ChartType  = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.ErrorBar;

            ((System.ComponentModel.ISupportInitialize)(chartStat)).EndInit();

            return(chartStat);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="ChartConfig">A populated ChartConfig object</param>
        /// <param name="ChartToBuild">The chart object used to provide the chart</param>
        public ChartBuilder(ChartConfigProvider ChartConfig, Chart ChartToBuild)
        {
            currConfig = ChartConfig;
            chartToBuild = ChartToBuild;

            XmlDocument xmlData = GetXmlData();

            BuildXAxisLabels(xmlData);

            FillSeriesData(xmlData);
            SetObjectParameters(chartToBuild, currConfig.ChartParams);
            SetObjectParameters(chartToBuild.ChartAreas[0], currConfig.ChartAreaParams);
            SetObjectParameters(chartToBuild.ChartAreas[0].AxisX, currConfig.ChartAxisXParams);
            SetObjectParameters(chartToBuild.ChartAreas[0].AxisY, currConfig.ChartAxisYParams);
            SetObjectParameters(chartToBuild.ChartAreas[0].AxisX2, currConfig.ChartAxisX2Params);
            SetObjectParameters(chartToBuild.ChartAreas[0].AxisY2, currConfig.ChartAxisY2Params);

            if (currConfig.ChartLegendParams.Count > 0)
            {
                Legend l = new Legend();
                SetObjectParameters(l, currConfig.ChartLegendParams);
                chartToBuild.Legends.Add(l);
            }

            // Process special params
            if (currConfig.ChartAxisYParams.Contains("GridLines"))
            {
                bool val = Convert.ToBoolean(currConfig.ChartAxisYParams["GridLines"]);
                chartToBuild.ChartAreas[0].AxisY.MajorGrid.Enabled = val;
            }
            if (currConfig.ChartAxisY2Params.Contains("GridLines"))
            {
                bool val = Convert.ToBoolean(currConfig.ChartAxisY2Params["GridLines"]);
                chartToBuild.ChartAreas[0].AxisY2.MajorGrid.Enabled = val;
            }
            if (currConfig.ChartAxisXParams.Contains("GridLines"))
            {
                bool val = Convert.ToBoolean(currConfig.ChartAxisXParams["GridLines"]);
                chartToBuild.ChartAreas[0].AxisX.MajorGrid.Enabled = val;
            }
            if (currConfig.ChartAxisX2Params.Contains("GridLines"))
            {
                bool val = Convert.ToBoolean(currConfig.ChartAxisX2Params["GridLines"]);
                chartToBuild.ChartAreas[0].AxisX2.MajorGrid.Enabled = val;
            }
        }
        public Chart createChartAltitude(Dictionary <int, int> clusters, int nbClusters)
        {
            Chart     chartStat;
            ChartArea meanArea = new ChartArea();

            double[] histoMoyenneCluster = new double[nbClusters];
            int[]    compteur            = new int[nbClusters];
            for (int i = 0; i < histoMoyenneCluster.Length; i++)
            {
                histoMoyenneCluster[i] = 0.0;
                compteur[i]            = 0;
            }

            foreach (int station in clusters.Keys)
            {
                histoMoyenneCluster[clusters[station]] += altitudes[station];
                compteur[clusters[station]]++;
            }

            for (int i = 0; i < histoMoyenneCluster.Length; i++)
            {
                histoMoyenneCluster[i] = histoMoyenneCluster[i] / compteur[i];
            }

            meanArea.AxisY.Title             = "Moyenne des altitudes des stations";
            meanArea.AxisX.Title             = "Cluster";
            meanArea.AxisX.TitleFont         = new System.Drawing.Font("Helvetica", 10, System.Drawing.FontStyle.Bold);
            meanArea.AxisY.TitleFont         = new System.Drawing.Font("Helvetica", 10, System.Drawing.FontStyle.Bold);
            meanArea.Name                    = "StatArea";
            meanArea.AxisX.MajorGrid.Enabled = false;
            Legend legendStat = new Legend();
            Series seriesStat = new Series();

            chartStat = new System.Windows.Forms.DataVisualization.Charting.Chart();
            ((System.ComponentModel.ISupportInitialize)(chartStat)).BeginInit();

            for (int i = 0; i < histoMoyenneCluster.Length; i++)
            {
                Series tempSer = new Series("Centroide" + i);

                tempSer.Points.AddXY(i, histoMoyenneCluster[i]);
                tempSer.Color       = System.Drawing.Color.FromName(colors[i]);
                tempSer.BorderColor = System.Drawing.Color.Black;
                tempSer.BorderWidth = 1;
                tempSer.Sort(PointSortOrder.Ascending, "X");
                tempSer.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Column;
                chartStat.Series.Add(tempSer);
            }
            seriesStat.Sort(PointSortOrder.Ascending, "X");

            seriesStat.BorderColor = System.Drawing.Color.Black;
            seriesStat.BorderWidth = 2;
            chartStat.Series.Add(seriesStat);
            chartStat.ChartAreas.Add(meanArea);
            chartStat.BackColor = System.Drawing.Color.Silver;
            meanArea.BackColor  = System.Drawing.Color.LightGray;
            legendStat.Name     = "legend";
            legendStat.Docking  = Docking.Bottom;
            Title titre = new Title("Caractéristiques du centroïde en terme d'altitude ");

            chartStat.Legends.Add(legendStat);

            titre.Font = new System.Drawing.Font("Helvetica", 10, System.Drawing.FontStyle.Bold);

            chartStat.Titles.Add(titre);
            chartStat.Size = new System.Drawing.Size(500, 300);


            ((System.ComponentModel.ISupportInitialize)(chartStat)).EndInit();

            return(chartStat);
        }
Beispiel #25
0
        /// <summary>
        /// Expecting a list of series names, which are the type and name, split with an ">", or can be a list of regex's
        /// </summary>
        /// <param name="series"></param>
        public Stream generateImage(List <string> series)
        {
            DateTime graphStartTime = DateTime.Now;


            //set up a windows form graph thing
            try
            {
                using (var ch = new Chart())
                {
                    ch.Width  = 1200;
                    ch.Height = 600;
                    ch.TextAntiAliasingQuality = TextAntiAliasingQuality.High;

                    Title t = new Title(Roboto.Settings.botUserName + " Statistics", Docking.Top, new System.Drawing.Font("Roboto", 14), Color.Black);
                    ch.Titles.Add(t);

                    ChartArea cha = new ChartArea("cha");
                    cha.BackColor = Color.FromArgb(200, 225, 255);

                    cha.AxisX.Title = "Hours Ago";
                    //cha.AxisX.TitleFont = new System.Drawing.Font("Calibri", 11, System.Drawing.FontStyle.Bold);
                    cha.AxisX.TitleFont          = new System.Drawing.Font("Roboto", 11);
                    cha.AxisX.MajorGrid.Interval = 6;
                    cha.AxisY.Title     = "Value / " + granularity.TotalMinutes.ToString() + " mins";
                    cha.AxisY.TitleFont = new System.Drawing.Font("Roboto", 11);
                    //cha.AxisY.TitleFont = new System.Drawing.Font("Calibri", 11, System.Drawing.FontStyle.Bold);

                    Legend l = new Legend("Legend");
                    l.DockedToChartArea       = "cha";
                    l.IsDockedInsideChartArea = true;
                    l.Docking = Docking.Right;

                    ch.ChartAreas.Add(cha);
                    ch.Legends.Add(l);



                    //if nothing passed in, assume all stats
                    if (series.Count == 0)
                    {
                        series.Add(".*");
                    }

                    //gather all matching statTypes
                    List <statType> matches = new List <statType>();

                    foreach (string s in series)
                    {
                        //populate list of statTypes that match our query. Dont worry about order / dupes - will be ordered later
                        //try exact matches
                        string[] titles = s.Trim().Split(">"[0]);
                        if (titles.Length == 2)
                        {
                            //get the series info
                            statType seriesStats = getStatType(titles[1], titles[0]);
                            if (seriesStats != null)
                            {
                                matches.Add(seriesStats);
                            }
                        }

                        //try regex matches
                        List <statType> matchingTypes = getStatTypes(s);
                        foreach (statType mt in matchingTypes)
                        {
                            matches.Add(mt);
                        }
                    }
                    if (matches.Count == 0)
                    {
                        Roboto.log.log("No chart type matches", logging.loglevel.warn);
                        return(null);
                    }
                    else
                    {
                        matches = matches.Distinct().OrderBy(x => x.moduleType + ">" + x.name).ToList();
                        foreach (statType seriesStats in matches)
                        {
                            ch.Series.Add(seriesStats.getSeries(graphStartTime));
                        }
                        //ch.SaveImage(@"C:\temp\chart.jpg", ChartImageFormat.Jpeg);
                        MemoryStream ms = new MemoryStream();
                        ch.SaveImage(ms, ChartImageFormat.Jpeg);
                        return(ms);
                    }
                }
            }
            catch (Exception e)
            {
                Roboto.log.log("Error generating chart. " + e.ToString(), logging.loglevel.critical);
            }
            return(null);
        }
Beispiel #26
0
        public MainViewModel()
        {
            InitCount    = 0;
            StoreService = new StoreService();
            XPoints      = new List <string>();
            YPoints      = new List <int>();
            Series       = new Series();

            initChartCommand = new DelegateCommand();

            //初始化曲线图
            initChartCommand.ExcuteAction = new Action <object>(o =>
            {
                //因为每次切换菜单都会重写加载,WindowsFormsHost,第二次不要重新初始化
                if (InitCount > 0)
                {
                    return;
                }
                WindowsFormsHost host = o as WindowsFormsHost;
                if (host.Child is Chart)
                {
                    var s = StoreService.Query();
                    s.Sort(new Comparison <Store>((s1, s2) =>
                    {
                        if (s1.Time < s2.Time)
                        {
                            return(-1);
                        }
                        else if (s1.Time > s2.Time)
                        {
                            return(1);
                        }
                        return(0);
                    }));
                    s.ForEach(sto => {
                        XPoints.Add(sto.Time.ToLongDateString());
                        YPoints.Add(sto.Count);
                    });

                    ChartArea area = new ChartArea("area");
                    (host.Child as Chart).ChartAreas.Add(area);

                    Legend legend        = new Legend("store");
                    legend.Docking       = Docking.Right;
                    legend.IsTextAutoFit = true;
                    (host.Child as Chart).Legends.Add(legend);

                    Series.ChartArea           = area.Name;
                    Series.ChartType           = SeriesChartType.Line;
                    Series.XValueType          = ChartValueType.String;
                    Series.YValueType          = ChartValueType.Int32;
                    Series.Legend              = legend.Name;
                    Series.LegendText          = "仓库1进货";
                    Series.LegendToolTip       = "仓库1";
                    Series.IsValueShownAsLabel = true;
                    Series.BorderWidth         = 2;      //设置线宽
                    Series.ToolTip             = "进货曲线"; //鼠标放到点上的提示
                    Series.Points.DataBindXY(XPoints, YPoints);

                    (host.Child as Chart).Series.Add(Series);
                    InitCount++;
                }
            });
        }
Beispiel #27
0
        public Chart GetChart(RLMSignalPhase signalPhase, YellowAndRedOptions options)
        {
            Options = options;
            var chart          = new Chart();
            var reportTimespan = Options.EndDate - Options.StartDate;


            //Set the chart properties
            ChartFactory.SetImageProperties(chart);
            chart.ImageStorageMode = ImageStorageMode.UseImageLocation;
            SetChartTitle(chart, signalPhase);

            //Create the chart legend
            var chartLegend = new Legend();

            chartLegend.Name = "MainLegend";
            chart.Legends.Add(chartLegend);


            //Create the chart area
            var chartArea = new ChartArea();

            chartArea.Name = "ChartArea1";
            if (Options.YAxisMax != null)
            {
                chartArea.AxisY.Maximum = Options.YAxisMax.Value;
            }
            chartArea.AxisY.Minimum = 0;
            chartArea.AxisY.Title   = "Yellow Red Time (Seconds) ";
            chartArea.AxisY.MinorTickMark.Enabled = true;
            chartArea.AxisY.MajorTickMark.Enabled = true;
            chartArea.AxisY.MajorGrid.Interval    = 5;
            chartArea.AxisY.MinorGrid.Interval    = 1;
            chartArea.AxisX.Title              = "Time (Hour of Day)";
            chartArea.AxisX.IntervalType       = DateTimeIntervalType.Hours;
            chartArea.AxisX.LabelStyle.Format  = "HH";
            chartArea.AxisX2.LabelStyle.Format = "HH";
            chartArea.AxisX.MajorGrid.Enabled  = true;
            if (reportTimespan.Days < 1)
            {
                if (reportTimespan.Hours > 1)
                {
                    chartArea.AxisX2.Interval = 1;
                    chartArea.AxisX.Interval  = 1;
                }
                else
                {
                    chartArea.AxisX.LabelStyle.Format  = "HH:mm";
                    chartArea.AxisX2.LabelStyle.Format = "HH:mm";
                }
            }
            //chartArea.AxisX.Minimum = 0;

            chartArea.AxisX2.Enabled = AxisEnabled.True;
            chartArea.AxisX2.MajorTickMark.Enabled = true;

            chartArea.AxisX2.IntervalType      = DateTimeIntervalType.Hours;
            chartArea.AxisX2.LabelAutoFitStyle = LabelAutoFitStyles.None;
            //chartArea.AxisX.Minimum = 0;

            chart.ChartAreas.Add(chartArea);

            var yelowish   = Color.FromArgb(245, 237, 127);
            var blueish    = Color.FromArgb(128, 10, 117, 182);
            var greenish   = Color.FromArgb(64, 177, 14);
            var tanish     = Color.FromArgb(220, 138, 78);
            var whiteish   = Color.FromArgb(243, 240, 235);
            var redish     = Color.FromArgb(128, 255, 0, 0);
            var darkRedish = Color.FromArgb(196, 222, 2, 2);
            //Color redish = Color.FromArgb(163, 60, 62);

            //Add the red series
            var redSeries = new Series();

            redSeries.ChartType = SeriesChartType.Area;
            redSeries.Color     = redish;
            //redSeries.BackGradientStyle = GradientStyle.VerticalCenter;
            redSeries.Name       = "Red";
            redSeries.XValueType = ChartValueType.DateTime;

            chart.Series.Add(redSeries);

            //Add the yellow series
            var redClearanceSeries = new Series();

            redClearanceSeries.ChartType  = SeriesChartType.Area;
            redClearanceSeries.Color      = darkRedish;
            redClearanceSeries.Name       = "Red Clearance";
            redClearanceSeries.XValueType = ChartValueType.DateTime;
            chart.Series.Add(redClearanceSeries);

            //Add the green series
            var yellowClearanceSeries = new Series();

            yellowClearanceSeries.ChartType = SeriesChartType.Area;
            yellowClearanceSeries.Color     = yelowish;
            //yellowClearanceSeries.BackGradientStyle = GradientStyle.DiagonalLeft;
            yellowClearanceSeries.BackSecondaryColor = yelowish;
            yellowClearanceSeries.Name       = "Yellow Change";
            yellowClearanceSeries.XValueType = ChartValueType.DateTime;
            chart.Series.Add(yellowClearanceSeries);

            //Add the point series
            var pointSeries = new Series();

            pointSeries.ChartType  = SeriesChartType.Point;
            pointSeries.Color      = Color.Black;
            pointSeries.Name       = "Detector Activation";
            pointSeries.XValueType = ChartValueType.DateTime;
            pointSeries.MarkerSize = 3;
            chart.Series.Add(pointSeries);


            //Add points at the start and and of the x axis to ensure
            //the graph covers the entire period selected by the user
            //whether there is data or not
            chart.Series["Detector Activation"].Points.AddXY(Options.StartDate, 0);
            chart.Series["Detector Activation"].Points.AddXY(Options.EndDate, 0);

            AddDataToChart(chart, signalPhase);
            return(chart);
        }
Beispiel #28
0
        /// <summary>
        /// 创建Chart图形
        /// </summary>
        /// <param name="dataSourceChart">Chart类</param>
        public void CreateChart(Model.DataSourceChart dataSourceChart)
        {
            Chart chart1 = new Chart();

            chart1.ID                  = "chart1";
            chart1.BackColor           = Color.WhiteSmoke;
            chart1.ImageLocation       = "~/Images/ChartPic_#SEQ(300,3)";
            chart1.BorderlineDashStyle = ChartDashStyle.Solid;
            chart1.Palette             = ChartColorPalette.BrightPastel;
            chart1.BackSecondaryColor  = Color.White;
            chart1.BackGradientStyle   = GradientStyle.TopBottom;
            chart1.BorderWidth         = 2;
            chart1.BorderColor         = Color.FromArgb(26, 59, 105);
            chart1.ImageType           = ChartImageType.Png;

            chart1.Width  = dataSourceChart.Width;
            chart1.Height = dataSourceChart.Height;

            Title title = new Title();

            title.Text         = dataSourceChart.Title;
            title.ShadowColor  = Color.FromArgb(32, 0, 0, 0);
            title.Font         = new Font("Trebuchet MS", 10F, FontStyle.Bold);
            title.ShadowOffset = 3;
            title.ForeColor    = Color.FromArgb(26, 59, 105);
            chart1.Titles.Add(title);

            Legend legend = new Legend();

            legend.Name = dataSourceChart.Title;
            legend.TextWrapThreshold = 1;
            legend.Docking           = Docking.Top;
            legend.Alignment         = StringAlignment.Center;
            legend.BackColor         = Color.Transparent;
            legend.Font                 = new Font(new FontFamily("Trebuchet MS"), 8);
            legend.LegendStyle          = LegendStyle.Row;
            legend.IsEquallySpacedItems = true;
            legend.IsTextAutoFit        = false;
            chart1.Legends.Add(legend);

            ChartArea chartArea = new ChartArea();

            chartArea.Name                      = dataSourceChart.Title;
            chartArea.BackColor                 = Color.Transparent;
            chartArea.AxisX.IsLabelAutoFit      = false;
            chartArea.AxisY.IsLabelAutoFit      = false;
            chartArea.AxisX.LabelStyle.Font     = new Font("Verdana,Arial,Helvetica,sans-serif", 8F, FontStyle.Regular);
            chartArea.AxisY.LabelStyle.Font     = new Font("Verdana,Arial,Helvetica,sans-serif", 8F, FontStyle.Regular);
            chartArea.AxisY.LineColor           = Color.FromArgb(64, 64, 64, 64);
            chartArea.AxisX.LineColor           = Color.FromArgb(64, 64, 64, 64);
            chartArea.AxisY.MajorGrid.LineColor = Color.FromArgb(64, 64, 64, 64);
            chartArea.AxisX.MajorGrid.LineColor = Color.FromArgb(64, 64, 64, 64);
            chartArea.AxisX.Interval            = 1;
            chartArea.Area3DStyle.Enable3D      = dataSourceChart.IsNotEnable3D;
            chart1.ChartAreas.Add(chartArea);

            if (dataSourceChart.ChartType == SeriesChartType.Pie)
            {
                foreach (Model.DataSourceTeam dataSourceTeam in dataSourceChart.DataSourceTeams)
                {
                    this.lblTotal.Text = "累计值为:";
                    if (dataSourceTeam.DataPointName == "累计")
                    {
                        foreach (Model.DataSourcePoint dataSourcePoint in dataSourceTeam.DataSourcePoints)
                        {
                            this.lblTotal.Text += (dataSourcePoint.PointText + ":" + dataSourcePoint.PointValue + ",");
                        }
                        if (this.lblTotal.Text != "累计值为:")
                        {
                            this.lblTotal.Text = this.lblTotal.Text.Substring(0, this.lblTotal.Text.LastIndexOf(","));
                        }
                    }
                    else
                    {
                        this.lblTotal.Visible = false;
                        chart1.Series.Add(dataSourceTeam.DataPointName);
                        chart1.Series[dataSourceTeam.DataPointName].ChartType           = dataSourceChart.ChartType;
                        chart1.Series[dataSourceTeam.DataPointName].Name                = dataSourceTeam.DataPointName;
                        chart1.Series[dataSourceTeam.DataPointName].IsValueShownAsLabel = true;
                        chart1.Series[dataSourceTeam.DataPointName].BorderWidth         = 2;
                        chart1.Series[dataSourceTeam.DataPointName].Label               = "#PERCENT{P1}";
                        chart1.Series[dataSourceTeam.DataPointName]["DrawingStyle"]     = "Cylinder";
                        int m = 0;
                        foreach (Model.DataSourcePoint dataSourcePoint in dataSourceTeam.DataSourcePoints)
                        {
                            chart1.Series[dataSourceTeam.DataPointName].Points.AddXY(dataSourcePoint.PointText, dataSourcePoint.PointValue);
                            chart1.Series[dataSourceTeam.DataPointName].Points[m].LegendText = dataSourcePoint.PointText + "#PERCENT{P1}";
                            m++;
                        }
                    }
                }
            }
            else
            {
                foreach (Model.DataSourceTeam dataSourceTeam in dataSourceChart.DataSourceTeams)
                {
                    this.lblTotal.Text = "累计值为:";
                    if (dataSourceTeam.DataPointName == "累计")
                    {
                        foreach (Model.DataSourcePoint dataSourcePoint in dataSourceTeam.DataSourcePoints)
                        {
                            this.lblTotal.Text += (dataSourcePoint.PointText + ":" + dataSourcePoint.PointValue + ",");
                        }
                        if (this.lblTotal.Text != "累计值为:")
                        {
                            this.lblTotal.Text = this.lblTotal.Text.Substring(0, this.lblTotal.Text.LastIndexOf(","));
                        }
                    }
                    else
                    {
                        this.lblTotal.Visible = false;
                        chart1.Series.Add(dataSourceTeam.DataPointName);
                        chart1.Series[dataSourceTeam.DataPointName].ChartType           = dataSourceChart.ChartType;
                        chart1.Series[dataSourceTeam.DataPointName].Name                = dataSourceTeam.DataPointName;
                        chart1.Series[dataSourceTeam.DataPointName].IsValueShownAsLabel = true;
                        chart1.Series[dataSourceTeam.DataPointName].BorderWidth         = 2;
                        chart1.Series[dataSourceTeam.DataPointName]["DrawingStyle"]     = "Cylinder";
                        foreach (Model.DataSourcePoint dataSourcePoint in dataSourceTeam.DataSourcePoints)
                        {
                            chart1.Series[dataSourceTeam.DataPointName].Points.AddXY(dataSourcePoint.PointText, dataSourcePoint.PointValue);
                        }
                    }
                }
            }
            Controls.Add(chart1);
        }
        public static PlotModel BindingItemsSource()
        {
            var items = new Collection <Item>
            {
                new Item {
                    Label = "Apples", Value1 = 37, Value2 = 12, Value3 = 19
                },
                new Item {
                    Label = "Pears", Value1 = 7, Value2 = 21, Value3 = 9
                },
                new Item {
                    Label = "Bananas", Value1 = 23, Value2 = 2, Value3 = 29
                }
            };

            var plotModel1 = new PlotModel {
                Title = "Binding to ItemsSource"
            };
            var l = new Legend
            {
                LegendPlacement = LegendPlacement.Outside
            };

            plotModel1.Legends.Add(l);

            var categoryAxis1 = new CategoryAxis {
                Position = AxisPosition.Left, LabelField = "Label", ItemsSource = items, MajorStep = 1, MinorStep = 1
            };

            plotModel1.Axes.Add(categoryAxis1);
            var linearAxis1 = new LinearAxis {
                Position = AxisPosition.Bottom, AbsoluteMinimum = 0, MinimumPadding = 0
            };

            plotModel1.Axes.Add(linearAxis1);
            var series1 = new BarSeries
            {
                FillColor   = OxyColor.FromArgb(255, 78, 154, 6),
                ValueField  = "Value1",
                Title       = "2009",
                ItemsSource = items
            };

            plotModel1.Series.Add(series1);
            var series2 = new BarSeries
            {
                FillColor   = OxyColor.FromArgb(255, 200, 141, 0),
                ValueField  = "Value2",
                Title       = "2010",
                ItemsSource = items
            };

            plotModel1.Series.Add(series2);
            var series3 = new BarSeries
            {
                FillColor   = OxyColor.FromArgb(255, 204, 0, 0),
                ValueField  = "Value3",
                Title       = "2011",
                ItemsSource = items
            };

            plotModel1.Series.Add(series3);
            return(plotModel1);
        }
Beispiel #30
0
    private void BindChart(Chart chart
                           , DataTable dt
                           , string titleName)
    {
        DundasCharts.DundasChartBase(chart
                                     , ChartImageType.Flash
                                     , 480
                                     , 210
                                     , BorderSkinStyle.Emboss
                                     , Color.FromArgb(181, 64, 1)
                                     , 2
                                     , Color.FromArgb(0xFF, 0xFF, 0xFE)
                                     , Color.FromArgb(0xFF, 0xFF, 0xFE)
                                     , Color.FromArgb(0x20, 0x80, 0xD0)
                                     , ChartDashStyle.Solid
                                     , -1
                                     , ChartHatchStyle.None
                                     , GradientType.TopBottom
                                     , AntiAliasing.None);

        Series series1 = DundasCharts.CreateSeries(chart
                                                   , "Series1"
                                                   , "Default"
                                                   , "매출액"
                                                   , null
                                                   , SeriesChartType.Column
                                                   , 1
                                                   , GetChartColor(0)
                                                   , Color.FromArgb(0x4A, 0x58, 0x7E)
                                                   , Color.FromArgb(64, 0, 0, 0)
                                                   , 1
                                                   , 9
                                                   , Color.FromArgb(64, 64, 64));

        Series series2 = DundasCharts.CreateSeries(chart
                                                   , "Series2"
                                                   , "Default"
                                                   , "영업이익"
                                                   , null
                                                   , SeriesChartType.Column
                                                   , 1
                                                   , GetChartColor(1)
                                                   , Color.FromArgb(0x4A, 0x58, 0x7E)
                                                   , Color.FromArgb(64, 0, 0, 0)
                                                   , 1
                                                   , 9
                                                   , Color.FromArgb(64, 64, 64));

        //series1.Label   = "#VALY{N0}";

        series1.ToolTip = "#VALY{N0}";
        series2.ToolTip = "#VALY{N0}";

        //series1.ShowLabelAsValue = true;
        //series1.ShowInLegend = true;

        chart.ChartAreas["Default"].AxisY.LabelStyle.Format = "N0";

        DundasAnimations.DundasChartBase(chart, AnimationTheme.None, -1, -1, false, 1);
        DundasAnimations.GrowingAnimation(chart, series1, 0.5, 1.5, true);
        DundasAnimations.GrowingAnimation(chart, series2, 0.5, 1.5, true);

        //for (int i = 0; i < dt.Rows.Count; i++)
        //{
        //    series1.Points[i].AxisLabel = dt.Rows[i]["ALIAS"].ToString();
        //}

        //for (int i = 0; i < dt.Rows.Count; i++)
        //{
        //    series1.Points.AddY(dt.Rows[i]["RESULT_TS"]);
        //}

        series1.Font = new Font("굴림", 7, FontStyle.Regular);
        series2.Font = new Font("굴림", 7, FontStyle.Regular);

        if (dt.Rows.Count > 0)
        {
            series1.Points.AddXY("당월", dt.Rows[0]["RESULT_MS"]);
            series1.Points.AddXY("누계", dt.Rows[0]["RESULT_TS"]);
            series1.Points.AddXY("전년동기실적", dt.Rows[0]["BF_RESULT_TS"]);

            series2.Points.AddY(dt.Rows[1]["RESULT_MS"]);
            series2.Points.AddY(dt.Rows[1]["RESULT_TS"]);
            series2.Points.AddY(dt.Rows[1]["BF_RESULT_TS"]);
        }

        //series1.ToolTip = "#VALY{#,##0,00}";
        //series2.ToolTip = "#VALY{#,##0}";

        //series2.MarkerStyle         = MarkerStyle.Circle;
        //series2.MarkerColor         = Color.FromArgb(0xFF, 0xAA, 0x20);
        //series2.MarkerBorderColor   = Color.FromArgb(0xD7, 0x41, 0x01);

        Font font = new Font("Gulim", 11, FontStyle.Regular);

        Dundas.Charting.WebControl.Title title = DundasCharts.CreateTitle(chart
                                                                          , "Title1"
                                                                          , titleName
                                                                          , font
                                                                          , Color.FromArgb(26, 59, 105)
                                                                          , Color.Empty
                                                                          , Color.Empty
                                                                          , ContentAlignment.TopCenter
                                                                          , null
                                                                          , Color.FromArgb(32, 0, 0, 0)
                                                                          , 3
                                                                          , false
                                                                          , 5
                                                                          , 7
                                                                          , 91
                                                                          , 6);

        Legend legend = DundasCharts.CreateLegend(chart
                                                  , "Default"
                                                  , Color.Transparent
                                                  , Color.Empty
                                                  , Color.Empty);

        legend.AutoFitText = false;
        legend.Position    = new ElementPosition(82, 5, 50, 20);
        legend.Font        = new Font("굴림", 7, FontStyle.Regular);

        DundasCharts.SetChartArea(chart.ChartAreas["Default"], false);
    }
Beispiel #31
0
        /// <summary>
        /// Fill in the list of data series names.
        /// </summary>
        /// <param name="context">Descriptor context.</param>
        /// <returns>Standart values collection.</returns>
        public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            ArrayList values = new ArrayList();

            values.Add(Constants.NotSetValue);

            ChartAreaCollection areaCollection = null;
            string areaName = "";

            if (context != null && context.Instance != null)
            {
                if (context.Instance is Legend)
                {
                    Legend legend = (Legend)context.Instance;
                    if (legend.Common != null && legend.Common.ChartPicture != null)
                    {
                        areaCollection = legend.Common.ChartPicture.ChartAreas;
                    }
                }
                else if (context.Instance is ChartArea)
                {
                    ChartArea area = (ChartArea)context.Instance;
                    if (area.Common != null && area.Common.ChartPicture != null)
                    {
                        areaCollection = area.Common.ChartPicture.ChartAreas;
                        areaName       = area.Name;
                    }
                }
                else if (context.Instance is Title)
                {
                    Title title = (Title)context.Instance;
                    if (title.Chart != null && title.Chart.chartPicture != null)
                    {
                        areaCollection = title.Chart.chartPicture.ChartAreas;
                    }
                }

                else if (context.Instance is Annotation)
                {
                    Annotation annotation = (Annotation)context.Instance;
                    if (annotation.Chart != null && annotation.Chart.chartPicture != null)
                    {
                        areaCollection = annotation.Chart.chartPicture.ChartAreas;
                    }
                }
                else if (context.Instance is IServiceProvider)
                {
                    IServiceProvider provider = context.Instance as IServiceProvider;

                    Chart chart = provider.GetService(typeof(Chart)) as Chart;

                    if (chart != null)
                    {
                        areaCollection = chart.ChartAreas;
                    }
                }
                else if (context.Instance is Array)
                {
                    if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is Legend)
                    {
                        Legend legend = (Legend)((Array)context.Instance).GetValue(0);
                        if (legend.Common != null && legend.Common.ChartPicture != null)
                        {
                            areaCollection = legend.Common.ChartPicture.ChartAreas;
                        }
                    }
                    else if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is ChartArea)
                    {
                        ChartArea area = (ChartArea)((Array)context.Instance).GetValue(0);
                        if (area.Common != null && area.Common.ChartPicture != null)
                        {
                            areaCollection = area.Common.ChartPicture.ChartAreas;
                        }
                    }
                    else if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is Title)
                    {
                        Title title = (Title)((Array)context.Instance).GetValue(0);
                        if (title.Chart != null && title.Chart.chartPicture != null)
                        {
                            areaCollection = title.Chart.chartPicture.ChartAreas;
                        }
                    }

                    else if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is Annotation)
                    {
                        Annotation annotation = (Annotation)((Array)context.Instance).GetValue(0);
                        if (annotation.Chart != null && annotation.Chart.chartPicture != null)
                        {
                            areaCollection = annotation.Chart.chartPicture.ChartAreas;
                        }
                    }
                }
            }

            if (areaCollection != null)
            {
                foreach (ChartArea area in areaCollection)
                {
                    if (area.Name != areaName)
                    {
                        values.Add(area.Name);
                    }
                }
            }

            return(new StandardValuesCollection(values));
        }
Beispiel #32
0
 /// <summary>
 /// The legend is a box containing a symbol and name for each series item or point item in the chart.
 /// </summary>
 /// <param name="legend"></param>
 /// <returns></returns>
 public Highcharts SetLegend(Legend legend)
 {
     _Legend = legend;
     return(this);
 }
Beispiel #33
0
 public void Insert(int index, Legend value)
 {
     value.Common = common;
     Insert(index, (object)value);
     Invalidate();
 }
Beispiel #34
0
        private void Form1_Load(object sender, EventArgs e)
        {
            dataGridView1.RowCount              = 6;
            dataGridView1.ColumnCount           = 2;
            dataGridView1.Columns[0].HeaderText = "x";
            dataGridView1.Columns[0].Width      = 79;
            dataGridView1.Columns[1].HeaderText = "y";
            dataGridView1.Columns[1].Width      = 78;

            for (int i = 0; i < 6; i++)
            {
                for (int j = 0; j < 2; j++)
                {
                    dataGridView1.Rows[i].Cells[j].Value = Convert.ToString(A[i, j]);
                }
            }

            dataGridView2.RowCount              = 2;
            dataGridView2.ColumnCount           = 3;
            dataGridView2.Columns[0].HeaderText = "Матрица";
            dataGridView2.Columns[0].Width      = 78;
            dataGridView2.Columns[1].HeaderText = "Системы 1";
            dataGridView2.Columns[1].Width      = 81;
            dataGridView2.Columns[2].HeaderText = "Столбец свободных членов";
            dataGridView2.Columns[2].Width      = 78;

            dataGridView3.RowCount              = 2;
            dataGridView3.ColumnCount           = 2;
            dataGridView3.Columns[0].HeaderText = "Коэффициент";
            dataGridView3.Columns[0].Width      = 79;
            dataGridView3.Columns[1].HeaderText = "Значение";
            dataGridView3.Columns[1].Width      = 78;

            dataGridView4.RowCount              = 3;
            dataGridView4.ColumnCount           = 4;
            dataGridView4.Columns[0].HeaderText = "Матрица";
            dataGridView4.Columns[0].Width      = 79;
            dataGridView4.Columns[1].HeaderText = "Системы";
            dataGridView4.Columns[1].Width      = 79;
            dataGridView4.Columns[2].HeaderText = "2";
            dataGridView4.Columns[2].Width      = 79;
            dataGridView4.Columns[3].HeaderText = "Столбец свободных членов";
            dataGridView4.Columns[3].Width      = 80;

            dataGridView5.RowCount              = 3;
            dataGridView5.ColumnCount           = 2;
            dataGridView5.Columns[0].HeaderText = "Коэффициент";
            dataGridView5.Columns[0].Width      = 79;
            dataGridView5.Columns[1].HeaderText = "Значение";
            dataGridView5.Columns[1].Width      = 78;

            chart        = new Chart();
            chart.Parent = this;
            chart.SetBounds(12, 184, 486, 206);

            area.Name                     = "001";
            area.AxisX.Minimum            = Convert.ToDouble(dataGridView1.Rows[0].Cells[0].Value);
            area.AxisX.Maximum            = Convert.ToDouble(dataGridView1.Rows[5].Cells[0].Value);
            area.AxisX.MajorGrid.Interval = 0.2;
            area.AxisX.MajorGrid.Enabled  = false;
            area.AxisY.Minimum            = 0.0;
            area.AxisY.Maximum            = 7.0;
            area.AxisY.MajorGrid.Interval = 1;
            chart.ChartAreas.Add(area);
            Legend legend = new Legend();

            chart.Legends.Add(legend);

            var graph = new Series()
            {
                LegendText = " ",
                ChartType  = SeriesChartType.Point,
                Color      = Color.White,
            };

            chart.Series.Add(graph);
            graph.Points.AddXY(0.1, 0.5);
        }
        private void CreateChart(DataTable _dt, DevExpress.XtraCharts.ChartControl _chartControl)
        {
            try
            {
                ((XYDiagram)_chartControl.Diagram).EnableAxisXZooming = true;
                //((XYDiagram)barChartControl.Diagram).AxisX.NumericScaleOptions.ScaleMode = DevExpress.XtraCharts.ScaleMode.Automatic;
                ((XYDiagram)_chartControl.Diagram).AxisX.VisualRange.Auto             = false;
                ((XYDiagram)_chartControl.Diagram).AxisX.VisualRange.AutoSideMargins  = false;
                ((XYDiagram)_chartControl.Diagram).AxisX.VisualRange.SideMarginsValue = 2;
                ((XYDiagram)_chartControl.Diagram).AxisX.Label.Angle      = 0;
                ((XYDiagram)_chartControl.Diagram).AxisX.Label.Font       = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold);
                ((XYDiagram)_chartControl.Diagram).AxisX.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
                ((XYDiagram)_chartControl.Diagram).AxisX.Title.Text       = "Date";

                ((XYDiagram)_chartControl.Diagram).AxisX.Title.Font = new Font("Calibri", 14F, System.Drawing.FontStyle.Bold);

                ((XYDiagram)_chartControl.Diagram).AxisY.Label.Font        = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold);
                ((XYDiagram)_chartControl.Diagram).AxisY.Title.Visibility  = DevExpress.Utils.DefaultBoolean.True;
                ((XYDiagram)_chartControl.Diagram).AxisY.Title.Text        = " Qty (Kilogram)";
                ((XYDiagram)_chartControl.Diagram).AxisY.Label.TextPattern = "{V:###,###}";
                ((XYDiagram)_chartControl.Diagram).AxisY.Title.Font        = new Font("Calibri", 14F, System.Drawing.FontStyle.Bold);

                ((XYDiagram)_chartControl.Diagram).AxisY.Title.TextColor = Color.DarkOrange;
                ((XYDiagram)_chartControl.Diagram).AxisX.Title.TextColor = Color.DarkOrange;

                DevExpress.XtraCharts.LineSeriesView          splineSeriesView1        = new DevExpress.XtraCharts.LineSeriesView();
                DevExpress.XtraCharts.SideBySideBarSeriesView sideBySideBarSeriesView1 = new DevExpress.XtraCharts.SideBySideBarSeriesView();
                DevExpress.XtraCharts.XYSeriesUnwindAnimation xySeriesSlideAnimation1  = new DevExpress.XtraCharts.XYSeriesUnwindAnimation();

                _chartControl.AnimationStartMode = DevExpress.XtraCharts.ChartAnimationMode.OnDataChanged;

                _chartControl.Series.Clear();
                _chartControl.Titles.Clear();


                Series series1 = new Series("Production", ViewType.Bar);
                Series series2 = new Series("Plan", ViewType.Line);
                Legend lgBox   = new Legend();
                lgBox.Visibility = DevExpress.Utils.DefaultBoolean.True;
                lgBox.Font       = new Font("Calibri", 16F, System.Drawing.FontStyle.Bold);

                if (_dt != null && _dt.Rows.Count > 0)
                {
                    for (int iRow = 0; iRow < _dt.Rows.Count; iRow++)
                    {
                        if (_dt.Rows[iRow]["DIV"].ToString() == "1")
                        {
                            for (int iCol = 1; iCol < _dt.Columns.Count; iCol++)
                            {
                                if (_dt.Rows[iRow][iCol].ToString() != "")
                                {
                                    series2.Points.Add(new SeriesPoint(_dt.Columns[iCol].Caption.ToString().Substring(7, 2), Convert.ToInt32(_dt.Rows[iRow][iCol].ToString())));
                                }
                                else
                                {
                                    series2.Points.Add(new SeriesPoint(_dt.Columns[iCol].Caption.ToString().Substring(7, 2), 0));
                                }
                            }
                        }
                        if (_dt.Rows[iRow]["DIV"].ToString() == "2")
                        {
                            for (int iCol = 1; iCol < _dt.Columns.Count; iCol++)
                            {
                                if (_dt.Rows[iRow][iCol].ToString() != "")
                                {
                                    series1.Points.Add(new SeriesPoint(_dt.Columns[iCol].Caption.ToString().Substring(7, 2), Convert.ToInt32(_dt.Rows[iRow][iCol].ToString())));
                                }
                                else
                                {
                                    series1.Points.Add(new SeriesPoint(_dt.Columns[iCol].Caption.ToString().Substring(7, 2), 0));
                                }
                            }
                        }
                    }
                }



                sideBySideBarSeriesView1.ColorEach      = false;
                sideBySideBarSeriesView1.Shadow.Visible = false;
                series1.LabelsVisibility  = DevExpress.Utils.DefaultBoolean.True;
                series1.Label.TextPattern = "{V:###,###}";
                series1.ArgumentScaleType = ScaleType.Qualitative;

                series1.View = sideBySideBarSeriesView1;


                splineSeriesView1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
                splineSeriesView1.LineStyle.Thickness     = 2;
                splineSeriesView1.SeriesAnimation         = xySeriesSlideAnimation1;
                splineSeriesView1.MarkerVisibility        = DevExpress.Utils.DefaultBoolean.True;
                splineSeriesView1.LineMarkerOptions.Size  = 15;
                splineSeriesView1.LineMarkerOptions.Color = Color.DodgerBlue;

                series2.Label.BackColor   = Color.White;
                series2.Label.Font        = new System.Drawing.Font("Calibri", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                series2.LabelsVisibility  = DevExpress.Utils.DefaultBoolean.True;
                series2.Label.TextPattern = "{V:###,###}";
                series2.ArgumentScaleType = ScaleType.Qualitative;
                series2.View = splineSeriesView1;

                // Access the type-specific options of the diagram.
                _chartControl.Series.AddRange(new Series[] { series1, series2 });
                _chartControl.Legends.Add(lgBox);


                // Add a title to the chart (if necessary).
                // _chartControl.Titles.Add(new ChartTitle());
                //_chartControl.Titles[0].Text = "Production";
            }
            catch (Exception EX)
            {
            }
        }
Beispiel #36
0
        public void SetGraph(int width_px, int hFOV)
        {
            var windowsFormsHost = (System.Windows.Forms.Integration.WindowsFormsHost)mainwindow.grid1.Children[0];

            var       chart     = (Chart)windowsFormsHost.Child;
            ChartArea chartArea = new ChartArea();

            // Chart settings.
            chart.ChartAreas.Clear();
            chart.ChartAreas.Add("SerfossGraph");
            chart.BorderlineColor = System.Drawing.Color.Gray;
            chart.BackColor       = System.Drawing.ColorTranslator.FromHtml("#D4E1EE");

            chart.ChartAreas["SerfossGraph"].BackColor       = System.Drawing.Color.Transparent;
            chart.ChartAreas["SerfossGraph"].AxisX.Title     = "Nautical Miles [nm]";
            chart.ChartAreas["SerfossGraph"].AxisX.Minimum   = 0.0;
            chart.ChartAreas["SerfossGraph"].AxisX.Interval  = 0.5;
            chart.ChartAreas["SerfossGraph"].AxisX.Maximum   = 5.0;
            chart.ChartAreas["SerfossGraph"].AxisY.Title     = "Real Life F-16 Visible Width [min]\nBMS F-16 Visible Width [px]";
            chart.ChartAreas["SerfossGraph"].AxisY.Minimum   = 0;
            chart.ChartAreas["SerfossGraph"].AxisY.Interval  = 5;
            chart.ChartAreas["SerfossGraph"].AxisY.Maximum   = 100;
            chart.ChartAreas["SerfossGraph"].AxisY2.Title    = "Magnification Factor [multiples]";
            chart.ChartAreas["SerfossGraph"].AxisY2.Minimum  = 1;
            chart.ChartAreas["SerfossGraph"].AxisY2.Interval = 0;
            chart.ChartAreas["SerfossGraph"].AxisY2.Maximum  = 3.0;

            // Adding Series and values.
            Series realLife = new Series();

            realLife.Name        = "Real Life Angular Size [min]";
            realLife.ChartType   = SeriesChartType.Line;
            realLife.MarkerStyle = MarkerStyle.Circle;
            realLife.Color       = System.Drawing.Color.DarkBlue;

            Series noSmartScaling = new Series();

            noSmartScaling.Name        = "BMS Smart Scaling OFF [px]";
            noSmartScaling.ChartType   = SeriesChartType.Line;
            noSmartScaling.MarkerStyle = MarkerStyle.Circle;
            noSmartScaling.Color       = System.Drawing.Color.MediumPurple;

            Series smartScaling = new Series();

            smartScaling.Name        = "BMS Smart Scaling ON [px]";
            smartScaling.ChartType   = SeriesChartType.Line;
            smartScaling.MarkerStyle = MarkerStyle.Circle;
            smartScaling.Color       = System.Drawing.Color.DarkOrange;

            Series magnificationFactor = new Series();

            magnificationFactor.Name        = "Smart Scaling Factor [multiples]";
            magnificationFactor.ChartType   = SeriesChartType.Line;
            magnificationFactor.MarkerStyle = MarkerStyle.Circle;
            magnificationFactor.Color       = System.Drawing.Color.DarkGray;
            magnificationFactor.YAxisType   = AxisType.Secondary;

            Legend leg = new Legend();

            leg.DockedToChartArea = "SerfossGraph";
            leg.Alignment         = System.Drawing.StringAlignment.Near;
            leg.BackColor         = System.Drawing.ColorTranslator.FromHtml("#D4E1EE");

            for (double distance_NM = 0.1; distance_NM < 5.0; distance_NM = distance_NM + 0.1)
            {
                double F16length_meter = 15.06;

                double distance_ft = distance_NM * 6000;
                double distance_km = distance_NM * 1.852;

                double angularSize_mil     = F16length_meter / distance_km;
                double angularSize_minutes = angularSize_mil * 3.375;                                     // Real Life

                double angularSize_noSmartScaling_minutes = width_px * angularSize_minutes / (hFOV * 60); // BMS Disable Smart Scaling
                double smartScalingFactor = 1 + 0.09226 * (distance_ft / 1000) - 0.00148 * (distance_ft / 1000) * (distance_ft / 1000);
                if (smartScalingFactor < 1)
                {
                    smartScalingFactor = 1;
                }

                double angularSize_SmartScaling_minutes = angularSize_noSmartScaling_minutes * smartScalingFactor;     // BMS Enable Smart Scaling

                realLife.Points.AddXY(distance_NM, angularSize_minutes);
                noSmartScaling.Points.AddXY(distance_NM, angularSize_noSmartScaling_minutes);
                smartScaling.Points.AddXY(distance_NM, angularSize_SmartScaling_minutes);
                magnificationFactor.Points.AddXY(distance_NM, smartScalingFactor);
            }

            chart.Series.Clear();
            chart.Series.Add(magnificationFactor);
            chart.Series.Add(realLife);
            chart.Series.Add(noSmartScaling);
            chart.Series.Add(smartScaling);
            chart.Legends.Add(leg);
        }
        /// <summary>
        /// 返回考试分析特殊图形
        /// </summary>
        /// <param name="examReportModels">考试报表Models</param>
        /// <param name="seriesChartType">图形类型</param>
        /// <returns></returns>
        public Chart Get考试分析特殊图形(ExamReportModels examReportModels, SeriesChartType seriesChartType)
        {
            /* 考试分析Chart */
            Chart chart = Get考试分析Chart(examReportModels);

            /* list考试分析 */
            List<考试分析> list考试分析 = examReportModels.考试分析;
            List<string> listX = list考试分析[0].间隔值列表;

            for (int i = 0; i < list考试分析.Count; i++)
            {
                ChartArea chartArea = Get考试分析ChartArea();
                List<int> listY = list考试分析[i].人数列表;
                //chartArea.Area3DStyle.Enable3D = true;
                chart.ChartAreas.Add(chartArea);

                Legend legend = new Legend();
                legend.Title = "分数段";
                legend.BackColor = Color.Transparent;
                legend.Font = new Font("Trebuchet MS", 8, FontStyle.Bold);
                legend.DockedToChartArea = chartArea.Name;
                legend.Enabled = true;
                legend.ShadowOffset = 3;
                chart.Legends.Add(legend);

                Series series = new Series();
                series.BorderWidth = 3;
                series.ShadowOffset = 2;
                series.Legend = legend.Name;
                series.Label = "#PERCENT{P1}";
                series.ChartType = seriesChartType;

                series["PieDrawingStyle"] = "SoftEdge";
                series.ChartArea = chartArea.Name;
                for (int k = 0; k < listX.Count; k++)
                {
                    DataPoint point = new DataPoint();
                    point.LegendText = listX[k];
                    point.YValues[0] = listY[k];
                    series.Points.Add(point);
                }
                chart.Series.Add(series);
            }

            return chart;
        }
Beispiel #38
0
			private Image GetBarGraph()
			{
				RandomUtil ru = new RandomUtil();
				BarGraph bg = new BarGraph(this.Size);

				bg.Color = Color.White;
				bg.ColorGradient = Color.Orange;

				Legend legend = new Legend(this.Width, 70);

				legend.Text = String.Empty;
				bg.Text = _displayString + " Total: " + _totalComponents.ToString();

				ICollection keys = _componentInfoTable.Keys;
				IEnumerator ie = keys.GetEnumerator();

				while (ie.MoveNext())
				{
					Type key = (Type)ie.Current;
					ComponentInfo ci = (ComponentInfo)_componentInfoTable[key];
					BarSlice bs = new BarSlice(ci.Count, ci.Color);

					bg.BarSliceCollection.Add(bs);

					LegendEntry le = new LegendEntry(ci.Color, ci.Type.Name.ToString().Trim());

					legend.LegendEntryCollection.Add(le);
				}

				return GraphRenderer.DrawGraphAndLegend(bg, legend, this.Size);
			}
 //Method to get the details of the tables module
 public Legend getLegendData(string strLegendName)
 {
     Legend leg = new Legend();
     StreamReader streamReader = new StreamReader(HttpRuntime.AppDomainAppPath + objSvcHandler.getLegendAttributes(strLegendName));
         string strLegendText = streamReader.ReadToEnd();
         streamReader.Close();
         leg.ModuleID = strLegendName;
         leg.HTMLString = strLegendText;
         return leg;
 }
Beispiel #40
0
        public override object ChartAdd(string testItem)
        {
            TabItem tim = doneTabControl.CreateTab(testItem);

            if (tim_Click != null)
            {
                tim.Click += tim_Click;
            }

            tim.Name = testItem;
            Chart chart = new Chart();

            // chart.Palette = ChartColorPalette.Bright;
            chart.Palette             = ChartColorPalette.None;
            chart.PaletteCustomColors = new Color[] { Color.Blue, Color.Green, Color.Black, Color.Brown, Color.Cyan, Color.Magenta,
                                                      Color.LightGreen, Color.Orange, Color.Peru, Color.DarkRed, Color.LightBlue, Color.SlateGray, Color.Red };
            chart.Name = testItem;
            chart.Dock = DockStyle.Fill;
            //chart.Width = 999;
            //chart.Height = 336;
            chart.Location = new Point(4, 0);
            if (testItem.StartsWith("T"))
            {
                chart.GetToolTipText += chart_GetToolTipTextTime;
            }
            else
            {
                chart.GetToolTipText += chart_GetToolTipTextFre;
            }



            ChartArea chartArea = new ChartArea("ChartArea1");

            chartArea.CursorX.IsUserEnabled          = true;
            chartArea.CursorX.IsUserSelectionEnabled = true;
            chartArea.CursorX.LineDashStyle          = ChartDashStyle.DashDotDot;
            chartArea.CursorY.IsUserEnabled          = true;
            chartArea.CursorY.IsUserSelectionEnabled = true;
            chartArea.CursorY.LineDashStyle          = ChartDashStyle.DashDotDot;
            //chartArea.Position.Auto = false;
            //chartArea.Position.Height = 98;
            //chartArea.Position.Width = 98;

            //chartArea.BackColor = Color.DarkGoldenrod;
            //chartArea.AxisX.MajorGrid.LineColor = Color.LawnGreen;
            //chartArea.AxisY.MajorGrid.LineColor = Color.LawnGreen;
            //chartArea.AxisX.MajorGrid.
            //chartArea.AxisX.MajorGrid.in
            chart.ChartAreas.Add(chartArea);

            Legend legend = new Legend("legend");

            legend.Title = "Legend";
            legend.Font  = new Font("Arial", 9F,
                                    System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            //legend.InsideChartArea = "ChartArea1";

            legend.CellColumns.Clear();

            legend.CellColumns.Add(new LegendCellColumn()
            {
                Name       = "chbx",
                ColumnType = LegendCellColumnType.Text,
                Text       = "#CUSTOMPROPERTY(CHECK)",
                Font       = new Font("Segoe UI", 9, FontStyle.Bold),
                BackColor  = Color.Transparent
            });

            legend.CellColumns.Add(new LegendCellColumn()
            {
                Name       = "symbol",
                ColumnType = LegendCellColumnType.SeriesSymbol,
                BackColor  = Color.Transparent
            });
            LegendCellColumn a = new LegendCellColumn();

            //a.BackColor = Color.Transparent;

            legend.CellColumns.Add(new LegendCellColumn()
            {
                Name       = "title",
                ColumnType = LegendCellColumnType.Text,
                Text       = "#LEGENDTEXT",
                Alignment  = ContentAlignment.MiddleLeft,
                BackColor  = Color.Transparent
            });
            chart.Legends.Add(legend);
            chart.MouseDown += chart_MouseDown;
            tim.AttachedControl.Controls.Add(chart);
            chart.ChartAreas[0].AxisY.IsStartedFromZero = false;
            chart.Series.Clear();


            return(chart);
        }
 /// <summary>
 /// Copy the properties of this <see cref="ZedGraphWebLegend"/> to the specified
 /// <see cref="ZedGraph.Legend"/> object.
 /// </summary>
 /// <param name="item">The destination <see cref="ZedGraph.Legend"/> object</param>
 internal void CopyTo( Legend item )
 {
     item.IsVisible = this.IsVisible;
     item.Position = this.Position;
     item.IsHStack = this.IsHStack;
     item.IsReverse = this.IsReverse;
     //this.Rect.CopyTo( item.Rect );
     this.FontSpec.CopyTo( item.FontSpec );
     this.Border.CopyTo( item.Border );
     this.Fill.CopyTo( item.Fill );
     this.Location.CopyTo( item.Location );
 }
Beispiel #42
0
        public void SetupXtraChartLegend(Legend legend)
        {
            legend.EnableAntialiasing = DefaultBoolean.True;

            legend.AlignmentHorizontal     = AlignmentHorizontal;
            legend.AlignmentVertical       = AlignmentVertical;
            legend.MarkerMode              = HideMarkers ? LegendMarkerMode.None : LegendMarkerMode.Marker;
            legend.MarkerOffset            = MarkerOffset;
            legend.MaxHorizontalPercentage = MaxHorizontalPercentage;
            legend.MaxVerticalPercentage   = MaxVerticalPercentage;

            if (Direction.HasValue)
            {
                legend.Direction = Direction.Value;
            }
            if (legend.Direction == LegendDirection.RightToLeft || legend.Direction == LegendDirection.LeftToRight)
            {
                legend.EquallySpacedItems = true;
            }

            if (HorizontalIndent.HasValue)
            {
                legend.HorizontalIndent = HorizontalIndent.Value;
            }
            if (MarkerSize.HasValue)
            {
                legend.MarkerSize = MarkerSize.Value;
            }
            if (TextOffset.HasValue)
            {
                legend.TextOffset = TextOffset.Value;
            }
            if (VerticalIndent.HasValue)
            {
                legend.VerticalIndent = VerticalIndent.Value;
            }

            if (Visibility.HasValue)
            {
                legend.Visibility = Visibility.Value ? DefaultBoolean.True : DefaultBoolean.False;
            }

            var backColor = Utils.ColorFromString(BackColor);

            if (backColor != Color.Empty)
            {
                legend.BackColor = backColor;
            }
            var borderColor = Utils.ColorFromString(BorderColor);

            if (borderColor != Color.Empty)
            {
                legend.Border.Color      = borderColor;
                legend.Border.Visibility = DefaultBoolean.True;
            }
            if (BorderThickness.HasValue)
            {
                legend.Border.Thickness  = BorderThickness.Value;
                legend.Border.Visibility = DefaultBoolean.True;
            }
            var font = Utils.StringToFont(Font, out Color fontColor);

            if (font != null)
            {
                legend.Font = font;
            }
            if (fontColor != Color.Empty)
            {
                legend.TextColor = fontColor;
            }
            var shadowColor = Utils.ColorFromString(ShadowColor);

            if (shadowColor != Color.Empty)
            {
                legend.Shadow.Color   = shadowColor;
                legend.Shadow.Visible = true;
            }
            if (ShadowSize.HasValue)
            {
                legend.Shadow.Size    = ShadowSize.Value;
                legend.Shadow.Visible = true;
            }

            if (FillMode.HasValue)
            {
                legend.FillStyle.FillMode = FillMode.Value;
                switch (FillMode.Value)
                {
                case DevExpress.XtraCharts.FillMode.Empty:
                    break;

                case DevExpress.XtraCharts.FillMode.Solid:
                    break;

                case DevExpress.XtraCharts.FillMode.Gradient:
                    if (legend.FillStyle.Options is RectangleGradientFillOptions gradientOptions)
                    {
                        var backColor2 = Utils.ColorFromString(BackColor2);
                        if (backColor2 != Color.Empty)
                        {
                            gradientOptions.Color2 = backColor2;
                        }
                        if (FillGradientMode.HasValue)
                        {
                            gradientOptions.GradientMode = FillGradientMode.Value;
                        }
                    }
                    break;

                case DevExpress.XtraCharts.FillMode.Hatch:
                    if (legend.FillStyle.Options is HatchFillOptions hatchOptions)
                    {
                        var backColor2 = Utils.ColorFromString(BackColor2);
                        if (backColor2 != Color.Empty)
                        {
                            hatchOptions.Color2 = backColor2;
                        }
                        if (FillHatchStyle.HasValue)
                        {
                            hatchOptions.HatchStyle = FillHatchStyle.Value;
                        }
                    }
                    break;
                }
            }

            if (TitleAlignment.HasValue)
            {
                legend.Title.Alignment = TitleAlignment.Value;
            }
            var titleFont = Utils.StringToFont(TitleFont, out Color titleColor);

            if (titleFont != null)
            {
                legend.Title.Font = titleFont;
            }
            if (titleColor != Color.Empty)
            {
                legend.Title.TextColor = titleColor;
            }
            legend.Title.WordWrap = TitleWordWrap;
            if (TitleMargins != null && TitleMargins.Length == 1)
            {
                legend.Title.Margins.All = TitleMargins[0];
            }
            else if (TitleMargins != null && TitleMargins.Length == 4)
            {
                legend.Title.Margins.Left   = TitleMargins[0];
                legend.Title.Margins.Top    = TitleMargins[1];
                legend.Title.Margins.Right  = TitleMargins[2];
                legend.Title.Margins.Bottom = TitleMargins[3];
            }
            if (!string.IsNullOrEmpty(TitleText))
            {
                legend.Title.Text    = TitleText;
                legend.Title.Visible = true;
            }

            if (Margins != null && Margins.Length == 1)
            {
                legend.Margins.All = Margins[0];
            }
            else if (Margins != null && Margins.Length == 4)
            {
                legend.Margins.Left   = Margins[0];
                legend.Margins.Top    = Margins[1];
                legend.Margins.Right  = Margins[2];
                legend.Margins.Bottom = Margins[3];
            }
            if (Padding != null && Padding.Length == 1)
            {
                legend.Padding.All = Padding[0];
            }
            else if (Padding != null && Padding.Length == 4)
            {
                legend.Padding.Left   = Padding[0];
                legend.Padding.Top    = Padding[1];
                legend.Padding.Right  = Padding[2];
                legend.Padding.Bottom = Padding[3];
            }
            else if (Padding != null)
            {
                throw new Exception("Invalid padding. Padding shall be an array with 1 or 4 integer values.");
            }
        }
        private Bitmap renderGlucoseChart(Color backColor, Color foreColor)
        {
            var w = this.Width;
            var h = this.Height;

            var chart = new Chart {
                Name = "chart2", Text = "chart2", Location = this.Location, TabIndex = 11, Visible = false
            };
            var chartArea1 = new ChartArea {
                Name = "ChartArea1"
            };
            var legend1 = new Legend {
                Name = "Legend1"
            };
            var series1 = new Series {
                ChartArea = "ChartArea1", Legend = "Legend1", Name = "Series1"
            };

            chart.ChartAreas.Add(chartArea1);

            chart.Legends.Add(legend1);
            chart.Series.Add(series1);
            chart.Size = new System.Drawing.Size(w, h);

            chart.BackColor = backColor;
            var area = chart.ChartAreas.ElementAt(0);

            area.BackColor = backColor;

            area.AxisX.MajorGrid.Enabled                      =
                area.AxisX.MinorGrid.Enabled                  =
                    area.AxisY.MajorGrid.Enabled              =
                        area.AxisY.MinorGrid.Enabled          =
                            area.AxisX.LabelStyle.Enabled     =
                                area.AxisY.LabelStyle.Enabled = false;

            area.AxisX.Enabled     =
                area.AxisY.Enabled = AxisEnabled.False;

            var dotseries = chart.Series.First();

            dotseries.MarkerSize        = 5;
            dotseries.MarkerStyle       = MarkerStyle.Circle;
            dotseries.IsVisibleInLegend = false;
            dotseries.ChartType         = SeriesChartType.Point;
            dotseries.Color             = foreColor;

            var lineseries = chart.Series.Add("Line");

            lineseries.ChartType         = SeriesChartType.Line;
            lineseries.IsVisibleInLegend = false;
            lineseries.Color             = foreColor;
            lineseries.MarkerSize        = 1;

            //datetime, glucose
            //draws line between dots first
            lineseries.Points.AddXY(1800, 9.5);
            lineseries.Points.AddXY(1807, 10.4);
            lineseries.Points.AddXY(1815, 10.2);
            lineseries.Points.AddXY(1830, 4.5);

            //draws dots ontop of line
            dotseries.Points.AddXY(1800, 9.5);
            dotseries.Points.AddXY(1807, 10.4);
            dotseries.Points.AddXY(1815, 10.2);
            dotseries.Points.AddXY(1830, 4.5);

            //add 30% to maximum value and show it as max in the graph
            area.AxisY.Maximum = (10.4 * 1.30);
            area.AxisX.Maximum = (1830);

            chart.Visible = true;

            var bmp = new Bitmap(w, h);

            chart.DrawToBitmap(bmp, new Rectangle(0, 0, w, h));
            return(bmp);
        }
Beispiel #44
0
        private void InitializeComponent()
        {
            var chartArea1 = this.ChartAreas.Add("ChartArea1");
            var legend1    = new Legend();
            var title1     = new Title();

            chartArea1.AxisX = new Axis(chartArea1, AxisName.X)
            {
                ArrowStyle              = AxisArrowStyle.Lines,
                Crossing                = 0D,
                InterlacedColor         = Color.White,
                IsLabelAutoFit          = false,
                LabelAutoFitMaxFontSize = 13,
                LabelStyle              = new LabelStyle()
                {
                    Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular,
                                    GraphicsUnit.Point, 238)
                },
                LineWidth = 2,
                MajorGrid = new Grid()
                {
                    LineDashStyle = ChartDashStyle.Dash
                },
                MajorTickMark = new TickMark()
                {
                    Size          = 2F,
                    TickMarkStyle = TickMarkStyle.AcrossAxis
                },
                MinorGrid = new Grid()
                {
                    Enabled       = true,
                    LineColor     = Color.DarkGray,
                    LineDashStyle = ChartDashStyle.Dot
                },
                MinorTickMark = new TickMark()
                {
                    Enabled       = true,
                    TickMarkStyle = TickMarkStyle.AcrossAxis
                },
                Title          = "X",
                TitleAlignment = StringAlignment.Far,
                TitleFont      = new Font("Microsoft Sans Serif", 18F, FontStyle.Bold, GraphicsUnit.Point, 238)
            };

            chartArea1.AxisY = new Axis(chartArea1, AxisName.Y)
            {
                ArrowStyle              = AxisArrowStyle.Lines,
                Crossing                = 0D,
                InterlacedColor         = Color.White,
                IsLabelAutoFit          = false,
                LabelAutoFitMaxFontSize = 13,
                LabelStyle              = new LabelStyle()
                {
                    Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular,
                                    GraphicsUnit.Point, 238)
                },
                LineWidth = 2,
                MajorGrid = new Grid()
                {
                    LineDashStyle = ChartDashStyle.Dash
                },
                MajorTickMark = new TickMark()
                {
                    Size          = 2F,
                    TickMarkStyle = TickMarkStyle.AcrossAxis
                },
                MinorGrid = new Grid()
                {
                    Enabled       = true,
                    LineColor     = Color.DarkGray,
                    LineDashStyle = ChartDashStyle.Dot
                },
                MinorTickMark = new TickMark()
                {
                    Enabled       = true,
                    TickMarkStyle = TickMarkStyle.AcrossAxis
                },
                TextOrientation = TextOrientation.Horizontal,
                Title           = "Y",
                TitleAlignment  = StringAlignment.Far,
                TitleFont       = new Font("Microsoft Sans Serif", 18F, FontStyle.Bold, GraphicsUnit.Point, 238)
            };

            //By default, if I select a rectangular area using the mouse, the chart will zoom to the selected area.
            //But this is quite annoying because it is prone to false operation
            chartArea1.CursorX = new System.Windows.Forms.DataVisualization.Charting.Cursor
            {
                IsUserEnabled          = false,
                IsUserSelectionEnabled = false
            };



            legend1.Font          = CustomFonts.GetMathFont(13.8F); //new Font("Cambria", 13.8F);
            legend1.IsTextAutoFit = false;
            legend1.Name          = "Legend1";

            Legends.Add(legend1);

            //this.N = 0D;
            Name        = "chart2d";
            title1.Font = new Font("Microsoft Sans Serif", 22.2F, FontStyle.Bold, GraphicsUnit.Point, 238);
            title1.Name = "Title1";
            Titles.Add(title1);
            Dock = DockStyle.Fill;


            ChartAreas[0].AxisX.ScaleView.MinSize = 0.1;
            ChartAreas[0].AxisY.ScaleView.MinSize = 0.1;


            Legends[0].Font = CustomFonts.GetMathFont(Legends[0].Font.Size);
            const float fontsize = 17.0F;

            Font = CustomFonts.GetMathFont(fontsize);
        }
Beispiel #45
0
        /// <summary>
        /// 重新设置是否显示chart控件的多条曲线
        /// </summary>
        /// <param name="_ChartObject">chart对象</param>
        /// <param name="_CheckBoxObject">checkBox对象</param>
        /// <param name="hs">存放颜色数组</param>
        /// <param name="al">存放图片的数组</param>
        public void SetChart(Dundas.Charting.WinControl.Chart _ChartObject,System.Windows.Forms.CheckBox _CheckBoxObject,ArrayList hs,ArrayList al)
        {
            LegendItem legendItem;
            LegendCell legendCell1;
            LegendCell legendCell2;
            LegendCell legendCell3;
            Legend legend = new Legend();
            legend.AutoFitText = false;
            if(al == null)
            {
                al = new ArrayList();
                AddIco(al);
            }
            if (_ChartObject != null && _CheckBoxObject != null)
            {
                for(int i = 0; i < _ChartObject.Series.Count; ++i)
                {
                    legendItem = new Dundas.Charting.WinControl.LegendItem();
                    legendCell1 = new Dundas.Charting.WinControl.LegendCell();
                    legendCell1.CellType = Dundas.Charting.WinControl.LegendCellType.Image;
                    legendCell1.Name = "Cell1";

                    legendCell2 = new Dundas.Charting.WinControl.LegendCell();
                    legendCell3 = new Dundas.Charting.WinControl.LegendCell();
                    legendCell3.CellType = Dundas.Charting.WinControl.LegendCellType.Image;
                    legendCell3.Name = "Cell3";
                    legendCell2.Name = "Cell2";
                    legendCell2.Alignment = System.Drawing.ContentAlignment.MiddleLeft;
                    legendCell2.Text = _ChartObject.Series[i].Name;
                    if(hs != null)
                    {
                        legendCell2.TextColor = (Color)hs[i];
                        _ChartObject.Series[i].Color = (Color)hs[i];
                    }

                    _ChartObject.Series[i].Name = (i + 1).ToString() + "." + _ChartObject.Series[i].Name;
                    _ChartObject.Series[i].Type = Dundas.Charting.WinControl.SeriesChartType.Line;
                    _ChartObject.Series[i].MarkerImage = al[i % 7].ToString();
                    _ChartObject.Series[i].MarkerSize = 7;
                    _ChartObject.Series[i].MarkerStyle = (Dundas.Charting.WinControl.MarkerStyle)(2);

                    _ChartObject.Series[i].ShowInLegend = false;

                    legendItem.Cells.Add(legendCell1);
                    legendItem.Cells.Add(legendCell2);
                    legendItem.Tag = _ChartObject.Series[i];

                    if (_CheckBoxObject.Checked)
                    {
                        legendItem.Cells[0].Image = string.Format(Application.StartupPath + @"/img/chk_checked.png");

                    }
                    else
                    {
                        legendItem.Cells[0].Image = string.Format(Application.StartupPath + @"/img/chk_unchecked.png");
                    }
                    legend.CustomItems.Add(legendItem);
                    _ChartObject.Series[i].Enabled = _CheckBoxObject.Checked;
                }

                _ChartObject.ChartAreas["Default"].AxisX.MinorGrid.Enabled = false;
                _ChartObject.ChartAreas["Default"].AxisY.MinorGrid.Enabled = true;
                _ChartObject.ChartAreas["Default"].AxisY.MinorGrid.LineStyle = ChartDashStyle.Dash;
                _ChartObject.ChartAreas["Default"].AxisY.MinorGrid.LineColor = Color.Gray;
                legend.Name = "Default";
                _ChartObject.Legends.Add(legend);
            }
        }
        public static XamDataChart CreateOneChart(
            AxisDataBindingObject bindingObj, ref FAChartModel faChartModel)
        {
            FAChartSubModel model = bindingObj.ToFAChartSubModel();

            if (faChartModel.SubModels.ContainsKey(bindingObj.ParameterID))
            {
                faChartModel.SubModels[bindingObj.ParameterID] = model;
            }
            else
            {
                faChartModel.SubModels.Add(bindingObj.ParameterID, model);
            }

            Infragistics.Controls.Charts.Legend legend = new Legend()
            {
                Margin = new Windows.UI.Xaml.Thickness(10),
                Opacity = 1,
                VerticalAlignment = Windows.UI.Xaml.VerticalAlignment.Top,
                HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Right
            };
            Infragistics.Controls.XamDock.SetEdge(legend, Infragistics.Controls.DockEdge.InsideRight);
            XamDataChart chart = new XamDataChart() { Margin = new Windows.UI.Xaml.Thickness(0, 25, 0, 25) };

            chart.Legend = legend;
            chart.DataContext = model;

            return bindingObj.AssignSimpleLineChart(model, chart);
        }
        private static PlotModel CreateSimpleModel(bool stacked, string title)
        {
            var model = new PlotModel
            {
                Title = title
            };

            var l = new Legend
            {
                LegendPlacement       = LegendPlacement.Outside,
                LegendPosition        = LegendPosition.BottomCenter,
                LegendOrientation     = LegendOrientation.Horizontal,
                LegendBorderThickness = 0
            };

            model.Legends.Add(l);

            var s1 = new BarSeries {
                Title = "Series 1", IsStacked = stacked, StrokeColor = OxyColors.Black, StrokeThickness = 1
            };

            s1.Items.Add(new BarItem {
                Value = 25
            });
            s1.Items.Add(new BarItem {
                Value = 137
            });
            s1.Items.Add(new BarItem {
                Value = 18
            });
            s1.Items.Add(new BarItem {
                Value = 40
            });

            var s2 = new BarSeries {
                Title = "Series 2", IsStacked = stacked, StrokeColor = OxyColors.Black, StrokeThickness = 1
            };

            s2.Items.Add(new BarItem {
                Value = 12
            });
            s2.Items.Add(new BarItem {
                Value = 14
            });
            s2.Items.Add(new BarItem {
                Value = 120
            });
            s2.Items.Add(new BarItem {
                Value = 26
            });

            var categoryAxis = new CategoryAxis {
                Position = AxisPosition.Left
            };

            categoryAxis.Labels.Add("Category A");
            categoryAxis.Labels.Add("Category B");
            categoryAxis.Labels.Add("Category C");
            categoryAxis.Labels.Add("Category D");
            var valueAxis = new LinearAxis {
                Position = AxisPosition.Bottom, MinimumPadding = 0, MaximumPadding = 0.06, AbsoluteMinimum = 0
            };

            model.Series.Add(s1);
            model.Series.Add(s2);
            model.Axes.Add(categoryAxis);
            model.Axes.Add(valueAxis);
            return(model);
        }
Beispiel #48
0
 public void TitleStyleChange()
 {
     Legend legend = new Legend();
     // Change Legend's Template because Silverlight only allows setting Style properties once.
     legend.Template = new ControlTemplate();
     Style style = new Style(typeof(Title));
     TestAsync(
         legend,
         () => legend.TitleStyle = style,
         () => Assert.AreSame(style, legend.TitleStyle));
 }
Beispiel #49
0
 public void TitleChangeObject()
 {
     Legend legend = new Legend();
     object title = new object();
     legend.Title = title;
     Assert.AreSame(title, legend.Title);
 }
Beispiel #50
0
 public void TitleChangeString()
 {
     Legend legend = new Legend();
     string title = "String Title";
     legend.Title = title;
     Assert.AreSame(title, legend.Title);
 }
Beispiel #51
0
 public void NewInstance()
 {
     Legend legend = new Legend();
     Assert.IsNotNull(legend);
 }
Beispiel #52
0
 public void TitleChangeButton()
 {
     Legend legend = new Legend();
     Button title = new Button { Content = "Button Title" };
     legend.Title = title;
     Assert.AreSame(title, legend.Title);
 }
Beispiel #53
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlWindow));
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.label78 = new System.Windows.Forms.Label();
     this.eOvershootHoldTextBox = new System.Windows.Forms.TextBox();
     this.label79 = new System.Windows.Forms.Label();
     this.eOvershootFactorTextBox = new System.Windows.Forms.TextBox();
     this.switchingLED = new NationalInstruments.UI.WindowsForms.Led();
     this.rampLED = new NationalInstruments.UI.WindowsForms.Led();
     this.label62 = new System.Windows.Forms.Label();
     this.eSwitchTimeTextBox = new System.Windows.Forms.TextBox();
     this.label61 = new System.Windows.Forms.Label();
     this.eBleedTimeTextBox = new System.Windows.Forms.TextBox();
     this.label60 = new System.Windows.Forms.Label();
     this.label57 = new System.Windows.Forms.Label();
     this.eRampUpDelayTextBox = new System.Windows.Forms.TextBox();
     this.label58 = new System.Windows.Forms.Label();
     this.eRampDownDelayTextBox = new System.Windows.Forms.TextBox();
     this.label59 = new System.Windows.Forms.Label();
     this.eRampDownTimeTextBox = new System.Windows.Forms.TextBox();
     this.eRampUpTimeTextBox = new System.Windows.Forms.TextBox();
     this.fieldsOffButton = new System.Windows.Forms.Button();
     this.switchEButton = new System.Windows.Forms.Button();
     this.eBleedCheck = new System.Windows.Forms.CheckBox();
     this.ePolarityCheck = new System.Windows.Forms.CheckBox();
     this.eOnCheck = new System.Windows.Forms.CheckBox();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.label1 = new System.Windows.Forms.Label();
     this.greenDCFMBox = new System.Windows.Forms.TextBox();
     this.greenOnCheck = new System.Windows.Forms.CheckBox();
     this.label7 = new System.Windows.Forms.Label();
     this.greenOnAmpBox = new System.Windows.Forms.TextBox();
     this.label8 = new System.Windows.Forms.Label();
     this.greenOnFreqBox = new System.Windows.Forms.TextBox();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.updateFieldButton = new System.Windows.Forms.Button();
     this.label10 = new System.Windows.Forms.Label();
     this.label11 = new System.Windows.Forms.Label();
     this.label9 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.cPlusOffTextBox = new System.Windows.Forms.TextBox();
     this.cMinusOffTextBox = new System.Windows.Forms.TextBox();
     this.cMinusTextBox = new System.Windows.Forms.TextBox();
     this.cPlusTextBox = new System.Windows.Forms.TextBox();
     this.groupBox5 = new System.Windows.Forms.GroupBox();
     this.calFlipCheck = new System.Windows.Forms.CheckBox();
     this.bFlipCheck = new System.Windows.Forms.CheckBox();
     this.tabControl = new System.Windows.Forms.TabControl();
     this.tabPage1 = new System.Windows.Forms.TabPage();
     this.groupBox21 = new System.Windows.Forms.GroupBox();
     this.eManualStateCheckBox = new System.Windows.Forms.CheckBox();
     this.groupBox13 = new System.Windows.Forms.GroupBox();
     this.eFieldAsymmetryCheckBox = new System.Windows.Forms.CheckBox();
     this.label37 = new System.Windows.Forms.Label();
     this.label38 = new System.Windows.Forms.Label();
     this.zeroPlusOneMinusBoostTextBox = new System.Windows.Forms.TextBox();
     this.zeroPlusBoostTextBox = new System.Windows.Forms.TextBox();
     this.groupBox6 = new System.Windows.Forms.GroupBox();
     this.gMinusVMonitorTextBox = new System.Windows.Forms.TextBox();
     this.cPlusVMonitorTextBox = new System.Windows.Forms.TextBox();
     this.gPlusVMonitorTextBox = new System.Windows.Forms.TextBox();
     this.updateVMonitorButton = new System.Windows.Forms.Button();
     this.label12 = new System.Windows.Forms.Label();
     this.label13 = new System.Windows.Forms.Label();
     this.label14 = new System.Windows.Forms.Label();
     this.label15 = new System.Windows.Forms.Label();
     this.cMinusVMonitorTextBox = new System.Windows.Forms.TextBox();
     this.groupBox7 = new System.Windows.Forms.GroupBox();
     this.label85 = new System.Windows.Forms.Label();
     this.label84 = new System.Windows.Forms.Label();
     this.southV2FSlopeTextBox = new System.Windows.Forms.TextBox();
     this.northV2FSlopeTextBox = new System.Windows.Forms.TextBox();
     this.leakageMonitorSlopeTextBox = new System.Windows.Forms.TextBox();
     this.label64 = new System.Windows.Forms.Label();
     this.stopIMonitorPollButton = new System.Windows.Forms.Button();
     this.saveToFile = new System.Windows.Forms.Button();
     this.stopIRecordButton = new System.Windows.Forms.Button();
     this.startIRecordButton = new System.Windows.Forms.Button();
     this.legend1 = new NationalInstruments.UI.WindowsForms.Legend();
     this.NorthLegendItem = new NationalInstruments.UI.LegendItem();
     this.northLeakagePlot = new NationalInstruments.UI.WaveformPlot();
     this.xAxis1 = new NationalInstruments.UI.XAxis();
     this.yAxis1 = new NationalInstruments.UI.YAxis();
     this.SouthLegendItem = new NationalInstruments.UI.LegendItem();
     this.southLeakagePlot = new NationalInstruments.UI.WaveformPlot();
     this.label63 = new System.Windows.Forms.Label();
     this.iMonitorPollPeriod = new System.Windows.Forms.TextBox();
     this.startIMonitorPollButton = new System.Windows.Forms.Button();
     this.leakageGraph = new NationalInstruments.UI.WindowsForms.WaveformGraph();
     this.IMonitorMeasurementLengthTextBox = new System.Windows.Forms.TextBox();
     this.label35 = new System.Windows.Forms.Label();
     this.label17 = new System.Windows.Forms.Label();
     this.northOffsetIMonitorTextBox = new System.Windows.Forms.TextBox();
     this.label16 = new System.Windows.Forms.Label();
     this.southOffsetIMonitorTextBox = new System.Windows.Forms.TextBox();
     this.zeroIMonitorButton = new System.Windows.Forms.Button();
     this.southIMonitorTextBox = new System.Windows.Forms.TextBox();
     this.northIMonitorTextBox = new System.Windows.Forms.TextBox();
     this.updateIMonitorButton = new System.Windows.Forms.Button();
     this.label18 = new System.Windows.Forms.Label();
     this.label19 = new System.Windows.Forms.Label();
     this.tabPage2 = new System.Windows.Forms.TabPage();
     this.groupBox24 = new System.Windows.Forms.GroupBox();
     this.piMonitor2TextBox = new System.Windows.Forms.TextBox();
     this.updatePiMonitorButton = new System.Windows.Forms.Button();
     this.label82 = new System.Windows.Forms.Label();
     this.piMonitor1TextBox = new System.Windows.Forms.TextBox();
     this.groupBox22 = new System.Windows.Forms.GroupBox();
     this.rfManualStateCheckBox = new System.Windows.Forms.CheckBox();
     this.groupBox4 = new System.Windows.Forms.GroupBox();
     this.rf2StepPowerMon = new System.Windows.Forms.TextBox();
     this.rf2StepFreqMon = new System.Windows.Forms.TextBox();
     this.rf1StepPowerMon = new System.Windows.Forms.TextBox();
     this.rf1StepFreqMon = new System.Windows.Forms.TextBox();
     this.rf2CentrePowerMon = new System.Windows.Forms.TextBox();
     this.rf2CentreFreqMon = new System.Windows.Forms.TextBox();
     this.rf1CentrePowerMon = new System.Windows.Forms.TextBox();
     this.rf1CentreFreqMon = new System.Windows.Forms.TextBox();
     this.label56 = new System.Windows.Forms.Label();
     this.label48 = new System.Windows.Forms.Label();
     this.label55 = new System.Windows.Forms.Label();
     this.label40 = new System.Windows.Forms.Label();
     this.label54 = new System.Windows.Forms.Label();
     this.label47 = new System.Windows.Forms.Label();
     this.label53 = new System.Windows.Forms.Label();
     this.label42 = new System.Windows.Forms.Label();
     this.rf2MinusPowerMon = new System.Windows.Forms.TextBox();
     this.rf2MinusFreqMon = new System.Windows.Forms.TextBox();
     this.rf1MinusPowerMon = new System.Windows.Forms.TextBox();
     this.rf1MinusFreqMon = new System.Windows.Forms.TextBox();
     this.rf2PlusPowerMon = new System.Windows.Forms.TextBox();
     this.rf2PlusFreqMon = new System.Windows.Forms.TextBox();
     this.rf1PlusPowerMon = new System.Windows.Forms.TextBox();
     this.rf1PlusFreqMon = new System.Windows.Forms.TextBox();
     this.rfPowerUpdateButton = new System.Windows.Forms.Button();
     this.label52 = new System.Windows.Forms.Label();
     this.rfFrequencyUpdateButton = new System.Windows.Forms.Button();
     this.label51 = new System.Windows.Forms.Label();
     this.label46 = new System.Windows.Forms.Label();
     this.label50 = new System.Windows.Forms.Label();
     this.label43 = new System.Windows.Forms.Label();
     this.label49 = new System.Windows.Forms.Label();
     this.label45 = new System.Windows.Forms.Label();
     this.label44 = new System.Windows.Forms.Label();
     this.groupBox16 = new System.Windows.Forms.GroupBox();
     this.scramblerCheckBox = new System.Windows.Forms.CheckBox();
     this.attenuatorSelectCheck = new System.Windows.Forms.CheckBox();
     this.phaseFlip2CheckBox = new System.Windows.Forms.CheckBox();
     this.phaseFlip1CheckBox = new System.Windows.Forms.CheckBox();
     this.fmSelectCheck = new System.Windows.Forms.CheckBox();
     this.rfSwitchEnableCheck = new System.Windows.Forms.CheckBox();
     this.groupBox14 = new System.Windows.Forms.GroupBox();
     this.setScramblerVoltageButton = new System.Windows.Forms.Button();
     this.panel4 = new System.Windows.Forms.Panel();
     this.rf2FMZeroRB = new System.Windows.Forms.RadioButton();
     this.rf2FMPlusRB = new System.Windows.Forms.RadioButton();
     this.rf2FMMinusRB = new System.Windows.Forms.RadioButton();
     this.label74 = new System.Windows.Forms.Label();
     this.scramblerVoltageTextBox = new System.Windows.Forms.TextBox();
     this.panel3 = new System.Windows.Forms.Panel();
     this.rf1FMZeroRB = new System.Windows.Forms.RadioButton();
     this.rf1FMPlusRB = new System.Windows.Forms.RadioButton();
     this.rf1FMMinusRB = new System.Windows.Forms.RadioButton();
     this.panel2 = new System.Windows.Forms.Panel();
     this.rf2AttZeroRB = new System.Windows.Forms.RadioButton();
     this.rf2AttPlusRB = new System.Windows.Forms.RadioButton();
     this.rf2AttMinusRB = new System.Windows.Forms.RadioButton();
     this.panel1 = new System.Windows.Forms.Panel();
     this.rf1AttZeroRB = new System.Windows.Forms.RadioButton();
     this.rf1AttPlusRB = new System.Windows.Forms.RadioButton();
     this.rf1AttMinusRB = new System.Windows.Forms.RadioButton();
     this.rf2FMIncTextBox = new System.Windows.Forms.TextBox();
     this.label24 = new System.Windows.Forms.Label();
     this.rf1FMIncTextBox = new System.Windows.Forms.TextBox();
     this.label28 = new System.Windows.Forms.Label();
     this.rf2AttIncTextBox = new System.Windows.Forms.TextBox();
     this.label6 = new System.Windows.Forms.Label();
     this.rf1AttIncTextBox = new System.Windows.Forms.TextBox();
     this.label4 = new System.Windows.Forms.Label();
     this.setFMVoltagesButton = new System.Windows.Forms.Button();
     this.label2 = new System.Windows.Forms.Label();
     this.rf2FMVoltage = new System.Windows.Forms.TextBox();
     this.label3 = new System.Windows.Forms.Label();
     this.rf1FMVoltage = new System.Windows.Forms.TextBox();
     this.setAttenuatorsButton = new System.Windows.Forms.Button();
     this.label36 = new System.Windows.Forms.Label();
     this.rf2AttenuatorVoltageTextBox = new System.Windows.Forms.TextBox();
     this.label39 = new System.Windows.Forms.Label();
     this.rf1AttenuatorVoltageTextBox = new System.Windows.Forms.TextBox();
     this.tabPage3 = new System.Windows.Forms.TabPage();
     this.groupBox23 = new System.Windows.Forms.GroupBox();
     this.bManualStateCheckBox = new System.Windows.Forms.CheckBox();
     this.groupBox20 = new System.Windows.Forms.GroupBox();
     this.miniFlux2TextBox = new System.Windows.Forms.TextBox();
     this.miniFlux3TextBox = new System.Windows.Forms.TextBox();
     this.label77 = new System.Windows.Forms.Label();
     this.label76 = new System.Windows.Forms.Label();
     this.miniFlux1TextBox = new System.Windows.Forms.TextBox();
     this.updateMiniFluxgatesButton = new System.Windows.Forms.Button();
     this.label75 = new System.Windows.Forms.Label();
     this.groupBox9 = new System.Windows.Forms.GroupBox();
     this.automaticBiasCalcButton = new System.Windows.Forms.Button();
     this.steppingBBoxBiasTextBox = new System.Windows.Forms.TextBox();
     this.SteppingBBoxBiasUpdateButton = new System.Windows.Forms.Button();
     this.label65 = new System.Windows.Forms.Label();
     this.groupBox12 = new System.Windows.Forms.GroupBox();
     this.scanningBVoltageBox = new System.Windows.Forms.TextBox();
     this.scanningBFSButton = new System.Windows.Forms.Button();
     this.scanningBZeroButton = new System.Windows.Forms.Button();
     this.scanningBUpdateButton = new System.Windows.Forms.Button();
     this.label41 = new System.Windows.Forms.Label();
     this.groupBox8 = new System.Windows.Forms.GroupBox();
     this.bCurrentCalStepTextBox = new System.Windows.Forms.TextBox();
     this.bCurrentFlipStepTextBox = new System.Windows.Forms.TextBox();
     this.bCurrentBiasTextBox = new System.Windows.Forms.TextBox();
     this.label25 = new System.Windows.Forms.Label();
     this.label26 = new System.Windows.Forms.Label();
     this.label27 = new System.Windows.Forms.Label();
     this.bCurrent01TextBox = new System.Windows.Forms.TextBox();
     this.bCurrent11TextBox = new System.Windows.Forms.TextBox();
     this.bCurrent10TextBox = new System.Windows.Forms.TextBox();
     this.bCurrent00TextBox = new System.Windows.Forms.TextBox();
     this.updateBCurrentMonitorButton = new System.Windows.Forms.Button();
     this.label20 = new System.Windows.Forms.Label();
     this.label21 = new System.Windows.Forms.Label();
     this.label22 = new System.Windows.Forms.Label();
     this.label23 = new System.Windows.Forms.Label();
     this.tabPage4 = new System.Windows.Forms.TabPage();
     this.UpdateVCOConversionFractionButton = new System.Windows.Forms.Button();
     this.vcoConversionFractionTextBox = new System.Windows.Forms.TextBox();
     this.label83 = new System.Windows.Forms.Label();
     this.groupBox25 = new System.Windows.Forms.GroupBox();
     this.pumpAOMTrackBar = new System.Windows.Forms.TrackBar();
     this.panel7 = new System.Windows.Forms.Panel();
     this.pumpAOMStepZeroButton = new System.Windows.Forms.RadioButton();
     this.pumpAOMStepPlusButton = new System.Windows.Forms.RadioButton();
     this.pumpAOMStepMinusButton = new System.Windows.Forms.RadioButton();
     this.pumpAOMStepTextBox = new System.Windows.Forms.TextBox();
     this.label99 = new System.Windows.Forms.Label();
     this.pumpAOMVoltageTextBox = new System.Windows.Forms.TextBox();
     this.updatePumpAOMButton = new System.Windows.Forms.Button();
     this.label100 = new System.Windows.Forms.Label();
     this.pumpAOMFreqStepTextBox = new System.Windows.Forms.TextBox();
     this.label88 = new System.Windows.Forms.Label();
     this.pumpAOMFreqPlusTextBox = new System.Windows.Forms.TextBox();
     this.pumpAOMFreqCentreTextBox = new System.Windows.Forms.TextBox();
     this.label95 = new System.Windows.Forms.Label();
     this.pumpAOMFreqMinusTextBox = new System.Windows.Forms.TextBox();
     this.label96 = new System.Windows.Forms.Label();
     this.pumpAOMFreqUpdateButton = new System.Windows.Forms.Button();
     this.label98 = new System.Windows.Forms.Label();
     this.groupBox19 = new System.Windows.Forms.GroupBox();
     this.I2AOMFreqStepTextBox = new System.Windows.Forms.TextBox();
     this.label73 = new System.Windows.Forms.Label();
     this.I2AOMFreqMinusTextBox = new System.Windows.Forms.TextBox();
     this.I2AOMFreqCentreTextBox = new System.Windows.Forms.TextBox();
     this.label71 = new System.Windows.Forms.Label();
     this.I2AOMFreqPlusTextBox = new System.Windows.Forms.TextBox();
     this.label72 = new System.Windows.Forms.Label();
     this.I2AOMFreqUpdateButton = new System.Windows.Forms.Button();
     this.label69 = new System.Windows.Forms.Label();
     this.groupBox18 = new System.Windows.Forms.GroupBox();
     this.FLPZTVtrackBar = new System.Windows.Forms.TrackBar();
     this.panel5 = new System.Windows.Forms.Panel();
     this.FLPZTStepZeroButton = new System.Windows.Forms.RadioButton();
     this.FLPZTStepPlusButton = new System.Windows.Forms.RadioButton();
     this.FLPZTStepMinusButton = new System.Windows.Forms.RadioButton();
     this.FLPZTStepTextBox = new System.Windows.Forms.TextBox();
     this.label70 = new System.Windows.Forms.Label();
     this.FLPZTVTextBox = new System.Windows.Forms.TextBox();
     this.UpdateFLPZTVButton = new System.Windows.Forms.Button();
     this.label68 = new System.Windows.Forms.Label();
     this.groupBox11 = new System.Windows.Forms.GroupBox();
     this.updateLaserPhotodiodesButton = new System.Windows.Forms.Button();
     this.pumpMonitorTextBox = new System.Windows.Forms.TextBox();
     this.pump2MonitorTextBox = new System.Windows.Forms.TextBox();
     this.probeMonitorTextBox = new System.Windows.Forms.TextBox();
     this.label29 = new System.Windows.Forms.Label();
     this.label30 = new System.Windows.Forms.Label();
     this.label31 = new System.Windows.Forms.Label();
     this.groupBox10 = new System.Windows.Forms.GroupBox();
     this.argonShutterCheckBox = new System.Windows.Forms.CheckBox();
     this.label32 = new System.Windows.Forms.Label();
     this.probeShutterCheck = new System.Windows.Forms.CheckBox();
     this.pumpShutterCheck = new System.Windows.Forms.CheckBox();
     this.tabPage8 = new System.Windows.Forms.TabPage();
     this.groupBox36 = new System.Windows.Forms.GroupBox();
     this.flAOMFreqStepTextBox = new System.Windows.Forms.TextBox();
     this.label119 = new System.Windows.Forms.Label();
     this.flAOMFreqPlusTextBox = new System.Windows.Forms.TextBox();
     this.flAOMFreqCentreTextBox = new System.Windows.Forms.TextBox();
     this.label120 = new System.Windows.Forms.Label();
     this.flAOMFreqMinusTextBox = new System.Windows.Forms.TextBox();
     this.label121 = new System.Windows.Forms.Label();
     this.flAOMFreqUpdateButton = new System.Windows.Forms.Button();
     this.label122 = new System.Windows.Forms.Label();
     this.panel8 = new System.Windows.Forms.Panel();
     this.flAOMStepZeroButton = new System.Windows.Forms.RadioButton();
     this.flAOMStepPlusButton = new System.Windows.Forms.RadioButton();
     this.flAOMStepMinusButton = new System.Windows.Forms.RadioButton();
     this.flAOMStepTextBox = new System.Windows.Forms.TextBox();
     this.label117 = new System.Windows.Forms.Label();
     this.flAOMVoltageTextBox = new System.Windows.Forms.TextBox();
     this.UpdateFLAOMButton = new System.Windows.Forms.Button();
     this.label118 = new System.Windows.Forms.Label();
     this.groupBox28 = new System.Windows.Forms.GroupBox();
     this.groupBox30 = new System.Windows.Forms.GroupBox();
     this.fibreAmpEnableLED = new NationalInstruments.UI.WindowsForms.Led();
     this.fibreAmpEnableSwitch = new NationalInstruments.UI.WindowsForms.Switch();
     this.groupBox31 = new System.Windows.Forms.GroupBox();
     this.updateFibreAmpPwrButton = new System.Windows.Forms.Button();
     this.fibreAmpPwrTextBox = new System.Windows.Forms.TextBox();
     this.groupBox29 = new System.Windows.Forms.GroupBox();
     this.fibreAmpPowerFaultLED = new NationalInstruments.UI.WindowsForms.Led();
     this.fibreAmpTempFaultLED = new NationalInstruments.UI.WindowsForms.Led();
     this.fibreAmpBackReflectFaultLED = new NationalInstruments.UI.WindowsForms.Led();
     this.fibreAmpSeedFaultLED = new NationalInstruments.UI.WindowsForms.Led();
     this.fibreAmpMasterFaultLED = new NationalInstruments.UI.WindowsForms.Led();
     this.faultCheckButton = new System.Windows.Forms.Button();
     this.label93 = new System.Windows.Forms.Label();
     this.label92 = new System.Windows.Forms.Label();
     this.label91 = new System.Windows.Forms.Label();
     this.label90 = new System.Windows.Forms.Label();
     this.label89 = new System.Windows.Forms.Label();
     this.groupBox27 = new System.Windows.Forms.GroupBox();
     this.flPZT2TempCurButton = new System.Windows.Forms.Button();
     this.flPZT2CurTextBox = new System.Windows.Forms.TextBox();
     this.flPZT2TempUpdateButton = new System.Windows.Forms.Button();
     this.label116 = new System.Windows.Forms.Label();
     this.flPZT2TempTextBox = new System.Windows.Forms.TextBox();
     this.label115 = new System.Windows.Forms.Label();
     this.flPZT2TrackBar = new System.Windows.Forms.TrackBar();
     this.label94 = new System.Windows.Forms.Label();
     this.flPZT2StepTextBox = new System.Windows.Forms.TextBox();
     this.panel6 = new System.Windows.Forms.Panel();
     this.flPZT2StepZeroButton = new System.Windows.Forms.RadioButton();
     this.flPZT2StepPlusButton = new System.Windows.Forms.RadioButton();
     this.flPZT2StepMinusButton = new System.Windows.Forms.RadioButton();
     this.updateflPZTButton = new System.Windows.Forms.Button();
     this.flPZT2TextBox = new System.Windows.Forms.TextBox();
     this.label87 = new System.Windows.Forms.Label();
     this.groupBox26 = new System.Windows.Forms.GroupBox();
     this.updateDiodeCurrentMonButton = new System.Windows.Forms.Button();
     this.diodeCurrentTextBox = new System.Windows.Forms.TextBox();
     this.stopDiodeCurrentPollButton = new System.Windows.Forms.Button();
     this.startDiodeCurrentPollButton = new System.Windows.Forms.Button();
     this.diodeCurrentPollTextBox = new System.Windows.Forms.TextBox();
     this.label86 = new System.Windows.Forms.Label();
     this.diodeCurrentGraph = new NationalInstruments.UI.WindowsForms.WaveformGraph();
     this.diodeCurrentPlot = new NationalInstruments.UI.WaveformPlot();
     this.xAxis2 = new NationalInstruments.UI.XAxis();
     this.yAxis2 = new NationalInstruments.UI.YAxis();
     this.tabPage5 = new System.Windows.Forms.TabPage();
     this.groupBox17 = new System.Windows.Forms.GroupBox();
     this.TargetStepButton = new System.Windows.Forms.Button();
     this.label66 = new System.Windows.Forms.Label();
     this.TargetNumStepsTextBox = new System.Windows.Forms.TextBox();
     this.groupBox15 = new System.Windows.Forms.GroupBox();
     this.label33 = new System.Windows.Forms.Label();
     this.checkYagInterlockButton = new System.Windows.Forms.Button();
     this.yagFlashlampVTextBox = new System.Windows.Forms.TextBox();
     this.interlockStatusTextBox = new System.Windows.Forms.TextBox();
     this.updateFlashlampVButton = new System.Windows.Forms.Button();
     this.label34 = new System.Windows.Forms.Label();
     this.startYAGFlashlampsButton = new System.Windows.Forms.Button();
     this.yagQDisableButton = new System.Windows.Forms.Button();
     this.stopYagFlashlampsButton = new System.Windows.Forms.Button();
     this.yagQEnableButton = new System.Windows.Forms.Button();
     this.tabPage6 = new System.Windows.Forms.TabPage();
     this.groupBox34 = new System.Windows.Forms.GroupBox();
     this.label108 = new System.Windows.Forms.Label();
     this.label109 = new System.Windows.Forms.Label();
     this.pumpPolMesAngle = new System.Windows.Forms.TextBox();
     this.updatePumpPolMesAngle = new System.Windows.Forms.Button();
     this.zeroPumpPol = new System.Windows.Forms.Button();
     this.label110 = new System.Windows.Forms.Label();
     this.groupBox35 = new System.Windows.Forms.GroupBox();
     this.label124 = new System.Windows.Forms.Label();
     this.pumpBacklashTextBox = new System.Windows.Forms.TextBox();
     this.pumpPolVoltStopButton = new System.Windows.Forms.Button();
     this.pumpPolVoltTrackBar = new System.Windows.Forms.TrackBar();
     this.label111 = new System.Windows.Forms.Label();
     this.label112 = new System.Windows.Forms.Label();
     this.pumpPolSetAngle = new System.Windows.Forms.TextBox();
     this.label113 = new System.Windows.Forms.Label();
     this.label114 = new System.Windows.Forms.Label();
     this.setPumpPolAngle = new System.Windows.Forms.Button();
     this.pumpPolModeSelectSwitch = new NationalInstruments.UI.WindowsForms.Switch();
     this.groupBox32 = new System.Windows.Forms.GroupBox();
     this.label106 = new System.Windows.Forms.Label();
     this.label105 = new System.Windows.Forms.Label();
     this.probePolMesAngle = new System.Windows.Forms.TextBox();
     this.updateProbePolMesAngle = new System.Windows.Forms.Button();
     this.zeroProbePol = new System.Windows.Forms.Button();
     this.label101 = new System.Windows.Forms.Label();
     this.groupBox33 = new System.Windows.Forms.GroupBox();
     this.label123 = new System.Windows.Forms.Label();
     this.probeBacklashTextBox = new System.Windows.Forms.TextBox();
     this.probePolVoltStopButton = new System.Windows.Forms.Button();
     this.probePolVoltTrackBar = new System.Windows.Forms.TrackBar();
     this.label107 = new System.Windows.Forms.Label();
     this.label102 = new System.Windows.Forms.Label();
     this.probePolSetAngle = new System.Windows.Forms.TextBox();
     this.label103 = new System.Windows.Forms.Label();
     this.label104 = new System.Windows.Forms.Label();
     this.setProbePolAngle = new System.Windows.Forms.Button();
     this.probePolModeSelectSwitch = new NationalInstruments.UI.WindowsForms.Switch();
     this.label81 = new System.Windows.Forms.Label();
     this.pumpPolarizerUpdateButton = new System.Windows.Forms.Button();
     this.pumpPolarizerAngleTextBox = new System.Windows.Forms.TextBox();
     this.label80 = new System.Windows.Forms.Label();
     this.probePolarizerUpdateButton = new System.Windows.Forms.Button();
     this.probePolarizerAngleTextBox = new System.Windows.Forms.TextBox();
     this.tabPage7 = new System.Windows.Forms.TabPage();
     this.clearAlertButton = new System.Windows.Forms.Button();
     this.alertTextBox = new System.Windows.Forms.TextBox();
     this.tabPage9 = new System.Windows.Forms.TabPage();
     this.switchScanTTLSwitch = new NationalInstruments.UI.WindowsForms.Switch();
     this.label97 = new System.Windows.Forms.Label();
     this.textBox1 = new System.Windows.Forms.TextBox();
     this.button1 = new System.Windows.Forms.Button();
     this.label67 = new System.Windows.Forms.Label();
     this.menuStrip1 = new System.Windows.Forms.MenuStrip();
     this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.loadParametersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.saveParametersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.radioButton1 = new System.Windows.Forms.RadioButton();
     this.radioButton2 = new System.Windows.Forms.RadioButton();
     this.radioButton3 = new System.Windows.Forms.RadioButton();
     this.checkBox1 = new System.Windows.Forms.CheckBox();
     this.radioButton4 = new System.Windows.Forms.RadioButton();
     this.radioButton5 = new System.Windows.Forms.RadioButton();
     this.radioButton6 = new System.Windows.Forms.RadioButton();
     this.motorController2 = new AxMG17MotorLib.AxMG17Motor();
     this.axMG17Logger1 = new AxMG17LoggerLib.AxMG17Logger();
     this.motorController1 = new AxMG17MotorLib.AxMG17Motor();
     this.groupBox2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.switchingLED)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.rampLED)).BeginInit();
     this.groupBox3.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.groupBox5.SuspendLayout();
     this.tabControl.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.groupBox21.SuspendLayout();
     this.groupBox13.SuspendLayout();
     this.groupBox6.SuspendLayout();
     this.groupBox7.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.legend1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.leakageGraph)).BeginInit();
     this.tabPage2.SuspendLayout();
     this.groupBox24.SuspendLayout();
     this.groupBox22.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.groupBox16.SuspendLayout();
     this.groupBox14.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel3.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel1.SuspendLayout();
     this.tabPage3.SuspendLayout();
     this.groupBox23.SuspendLayout();
     this.groupBox20.SuspendLayout();
     this.groupBox9.SuspendLayout();
     this.groupBox12.SuspendLayout();
     this.groupBox8.SuspendLayout();
     this.tabPage4.SuspendLayout();
     this.groupBox25.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pumpAOMTrackBar)).BeginInit();
     this.panel7.SuspendLayout();
     this.groupBox19.SuspendLayout();
     this.groupBox18.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.FLPZTVtrackBar)).BeginInit();
     this.panel5.SuspendLayout();
     this.groupBox11.SuspendLayout();
     this.groupBox10.SuspendLayout();
     this.tabPage8.SuspendLayout();
     this.groupBox36.SuspendLayout();
     this.panel8.SuspendLayout();
     this.groupBox28.SuspendLayout();
     this.groupBox30.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpEnableLED)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpEnableSwitch)).BeginInit();
     this.groupBox31.SuspendLayout();
     this.groupBox29.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpPowerFaultLED)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpTempFaultLED)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpBackReflectFaultLED)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpSeedFaultLED)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpMasterFaultLED)).BeginInit();
     this.groupBox27.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.flPZT2TrackBar)).BeginInit();
     this.panel6.SuspendLayout();
     this.groupBox26.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.diodeCurrentGraph)).BeginInit();
     this.tabPage5.SuspendLayout();
     this.groupBox17.SuspendLayout();
     this.groupBox15.SuspendLayout();
     this.tabPage6.SuspendLayout();
     this.groupBox34.SuspendLayout();
     this.groupBox35.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pumpPolVoltTrackBar)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pumpPolModeSelectSwitch)).BeginInit();
     this.groupBox32.SuspendLayout();
     this.groupBox33.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.probePolVoltTrackBar)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.probePolModeSelectSwitch)).BeginInit();
     this.tabPage7.SuspendLayout();
     this.tabPage9.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.switchScanTTLSwitch)).BeginInit();
     this.menuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.motorController2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.axMG17Logger1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.motorController1)).BeginInit();
     this.SuspendLayout();
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.label78);
     this.groupBox2.Controls.Add(this.eOvershootHoldTextBox);
     this.groupBox2.Controls.Add(this.label79);
     this.groupBox2.Controls.Add(this.eOvershootFactorTextBox);
     this.groupBox2.Controls.Add(this.switchingLED);
     this.groupBox2.Controls.Add(this.rampLED);
     this.groupBox2.Controls.Add(this.label62);
     this.groupBox2.Controls.Add(this.eSwitchTimeTextBox);
     this.groupBox2.Controls.Add(this.label61);
     this.groupBox2.Controls.Add(this.eBleedTimeTextBox);
     this.groupBox2.Controls.Add(this.label60);
     this.groupBox2.Controls.Add(this.label57);
     this.groupBox2.Controls.Add(this.eRampUpDelayTextBox);
     this.groupBox2.Controls.Add(this.label58);
     this.groupBox2.Controls.Add(this.eRampDownDelayTextBox);
     this.groupBox2.Controls.Add(this.label59);
     this.groupBox2.Controls.Add(this.eRampDownTimeTextBox);
     this.groupBox2.Controls.Add(this.eRampUpTimeTextBox);
     this.groupBox2.Controls.Add(this.fieldsOffButton);
     this.groupBox2.Controls.Add(this.switchEButton);
     this.groupBox2.Controls.Add(this.eBleedCheck);
     this.groupBox2.Controls.Add(this.ePolarityCheck);
     this.groupBox2.Controls.Add(this.eOnCheck);
     this.groupBox2.Location = new System.Drawing.Point(207, 16);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(280, 276);
     this.groupBox2.TabIndex = 11;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Switch";
     //
     // label78
     //
     this.label78.Location = new System.Drawing.Point(25, 215);
     this.label78.Name = "label78";
     this.label78.Size = new System.Drawing.Size(115, 23);
     this.label78.TabIndex = 52;
     this.label78.Text = "Ramp up delay (s)";
     //
     // eOvershootHoldTextBox
     //
     this.eOvershootHoldTextBox.Location = new System.Drawing.Point(145, 170);
     this.eOvershootHoldTextBox.Name = "eOvershootHoldTextBox";
     this.eOvershootHoldTextBox.Size = new System.Drawing.Size(64, 20);
     this.eOvershootHoldTextBox.TabIndex = 50;
     this.eOvershootHoldTextBox.Text = "1";
     //
     // label79
     //
     this.label79.Location = new System.Drawing.Point(25, 194);
     this.label79.Name = "label79";
     this.label79.Size = new System.Drawing.Size(115, 23);
     this.label79.TabIndex = 51;
     this.label79.Text = "Overshoot factor";
     //
     // eOvershootFactorTextBox
     //
     this.eOvershootFactorTextBox.Location = new System.Drawing.Point(145, 191);
     this.eOvershootFactorTextBox.Name = "eOvershootFactorTextBox";
     this.eOvershootFactorTextBox.Size = new System.Drawing.Size(64, 20);
     this.eOvershootFactorTextBox.TabIndex = 49;
     this.eOvershootFactorTextBox.Text = "2";
     //
     // switchingLED
     //
     this.switchingLED.LedStyle = NationalInstruments.UI.LedStyle.Round3D;
     this.switchingLED.Location = new System.Drawing.Point(253, 19);
     this.switchingLED.Name = "switchingLED";
     this.switchingLED.OffColor = System.Drawing.Color.Maroon;
     this.switchingLED.OnColor = System.Drawing.Color.Red;
     this.switchingLED.Size = new System.Drawing.Size(21, 22);
     this.switchingLED.TabIndex = 48;
     //
     // rampLED
     //
     this.rampLED.LedStyle = NationalInstruments.UI.LedStyle.Round3D;
     this.rampLED.Location = new System.Drawing.Point(253, 40);
     this.rampLED.Name = "rampLED";
     this.rampLED.Size = new System.Drawing.Size(21, 22);
     this.rampLED.TabIndex = 48;
     //
     // label62
     //
     this.label62.Location = new System.Drawing.Point(25, 131);
     this.label62.Name = "label62";
     this.label62.Size = new System.Drawing.Size(115, 23);
     this.label62.TabIndex = 47;
     this.label62.Text = "Switch time (s)";
     //
     // eSwitchTimeTextBox
     //
     this.eSwitchTimeTextBox.Location = new System.Drawing.Point(145, 128);
     this.eSwitchTimeTextBox.Name = "eSwitchTimeTextBox";
     this.eSwitchTimeTextBox.Size = new System.Drawing.Size(64, 20);
     this.eSwitchTimeTextBox.TabIndex = 3;
     this.eSwitchTimeTextBox.Text = "1";
     //
     // label61
     //
     this.label61.Location = new System.Drawing.Point(25, 110);
     this.label61.Name = "label61";
     this.label61.Size = new System.Drawing.Size(115, 23);
     this.label61.TabIndex = 45;
     this.label61.Text = "Bleed time (s)";
     //
     // eBleedTimeTextBox
     //
     this.eBleedTimeTextBox.Location = new System.Drawing.Point(145, 107);
     this.eBleedTimeTextBox.Name = "eBleedTimeTextBox";
     this.eBleedTimeTextBox.Size = new System.Drawing.Size(64, 20);
     this.eBleedTimeTextBox.TabIndex = 2;
     this.eBleedTimeTextBox.Text = "0.01";
     //
     // label60
     //
     this.label60.Location = new System.Drawing.Point(25, 173);
     this.label60.Name = "label60";
     this.label60.Size = new System.Drawing.Size(115, 23);
     this.label60.TabIndex = 45;
     this.label60.Text = "Overshoot hold (s)";
     //
     // label57
     //
     this.label57.Location = new System.Drawing.Point(25, 89);
     this.label57.Name = "label57";
     this.label57.Size = new System.Drawing.Size(115, 23);
     this.label57.TabIndex = 41;
     this.label57.Text = "Ramp down delay (s)";
     //
     // eRampUpDelayTextBox
     //
     this.eRampUpDelayTextBox.Location = new System.Drawing.Point(145, 212);
     this.eRampUpDelayTextBox.Name = "eRampUpDelayTextBox";
     this.eRampUpDelayTextBox.Size = new System.Drawing.Size(64, 20);
     this.eRampUpDelayTextBox.TabIndex = 5;
     this.eRampUpDelayTextBox.Text = "1";
     //
     // label58
     //
     this.label58.Location = new System.Drawing.Point(25, 68);
     this.label58.Name = "label58";
     this.label58.Size = new System.Drawing.Size(115, 23);
     this.label58.TabIndex = 40;
     this.label58.Text = "Ramp down time (s)";
     //
     // eRampDownDelayTextBox
     //
     this.eRampDownDelayTextBox.Location = new System.Drawing.Point(145, 86);
     this.eRampDownDelayTextBox.Name = "eRampDownDelayTextBox";
     this.eRampDownDelayTextBox.Size = new System.Drawing.Size(64, 20);
     this.eRampDownDelayTextBox.TabIndex = 1;
     this.eRampDownDelayTextBox.Text = "3";
     //
     // label59
     //
     this.label59.Location = new System.Drawing.Point(25, 152);
     this.label59.Name = "label59";
     this.label59.Size = new System.Drawing.Size(115, 23);
     this.label59.TabIndex = 43;
     this.label59.Text = "Ramp up time (s)";
     //
     // eRampDownTimeTextBox
     //
     this.eRampDownTimeTextBox.Location = new System.Drawing.Point(145, 65);
     this.eRampDownTimeTextBox.Name = "eRampDownTimeTextBox";
     this.eRampDownTimeTextBox.Size = new System.Drawing.Size(64, 20);
     this.eRampDownTimeTextBox.TabIndex = 0;
     this.eRampDownTimeTextBox.Text = "2";
     //
     // eRampUpTimeTextBox
     //
     this.eRampUpTimeTextBox.Location = new System.Drawing.Point(145, 149);
     this.eRampUpTimeTextBox.Name = "eRampUpTimeTextBox";
     this.eRampUpTimeTextBox.Size = new System.Drawing.Size(64, 20);
     this.eRampUpTimeTextBox.TabIndex = 4;
     this.eRampUpTimeTextBox.Text = "2";
     //
     // fieldsOffButton
     //
     this.fieldsOffButton.Enabled = false;
     this.fieldsOffButton.Location = new System.Drawing.Point(24, 241);
     this.fieldsOffButton.Name = "fieldsOffButton";
     this.fieldsOffButton.Size = new System.Drawing.Size(96, 23);
     this.fieldsOffButton.TabIndex = 23;
     this.fieldsOffButton.Text = "Zero E fields";
     this.fieldsOffButton.Click += new System.EventHandler(this.fieldsOffButton_Click);
     //
     // switchEButton
     //
     this.switchEButton.Location = new System.Drawing.Point(136, 241);
     this.switchEButton.Name = "switchEButton";
     this.switchEButton.Size = new System.Drawing.Size(96, 23);
     this.switchEButton.TabIndex = 22;
     this.switchEButton.Text = "Switch E";
     this.switchEButton.Click += new System.EventHandler(this.switchEButton_Click);
     //
     // eBleedCheck
     //
     this.eBleedCheck.Location = new System.Drawing.Point(96, 19);
     this.eBleedCheck.Name = "eBleedCheck";
     this.eBleedCheck.Size = new System.Drawing.Size(72, 24);
     this.eBleedCheck.TabIndex = 21;
     this.eBleedCheck.Text = "Bleed on";
     this.eBleedCheck.CheckedChanged += new System.EventHandler(this.eBleedCheck_CheckedChanged);
     //
     // ePolarityCheck
     //
     this.ePolarityCheck.Location = new System.Drawing.Point(24, 40);
     this.ePolarityCheck.Name = "ePolarityCheck";
     this.ePolarityCheck.Size = new System.Drawing.Size(136, 24);
     this.ePolarityCheck.TabIndex = 20;
     this.ePolarityCheck.Text = "Polarity (1 is checked)";
     this.ePolarityCheck.CheckedChanged += new System.EventHandler(this.ePolarityCheck_CheckedChanged);
     //
     // eOnCheck
     //
     this.eOnCheck.Location = new System.Drawing.Point(24, 19);
     this.eOnCheck.Name = "eOnCheck";
     this.eOnCheck.Size = new System.Drawing.Size(72, 24);
     this.eOnCheck.TabIndex = 19;
     this.eOnCheck.Text = "Field on";
     this.eOnCheck.CheckedChanged += new System.EventHandler(this.eOnCheck_CheckedChanged);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.label1);
     this.groupBox3.Controls.Add(this.greenDCFMBox);
     this.groupBox3.Controls.Add(this.greenOnCheck);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Controls.Add(this.greenOnAmpBox);
     this.groupBox3.Controls.Add(this.label8);
     this.groupBox3.Controls.Add(this.greenOnFreqBox);
     this.groupBox3.Location = new System.Drawing.Point(8, 16);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(296, 160);
     this.groupBox3.TabIndex = 21;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Direct synth control";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(6, 88);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(133, 23);
     this.label1.TabIndex = 23;
     this.label1.Text = "Green synth DC FM (kHz)";
     //
     // greenDCFMBox
     //
     this.greenDCFMBox.Location = new System.Drawing.Point(168, 85);
     this.greenDCFMBox.Name = "greenDCFMBox";
     this.greenDCFMBox.Size = new System.Drawing.Size(64, 20);
     this.greenDCFMBox.TabIndex = 2;
     this.greenDCFMBox.Text = "0";
     //
     // greenOnCheck
     //
     this.greenOnCheck.Location = new System.Drawing.Point(24, 114);
     this.greenOnCheck.Name = "greenOnCheck";
     this.greenOnCheck.Size = new System.Drawing.Size(104, 24);
     this.greenOnCheck.TabIndex = 18;
     this.greenOnCheck.Text = "Green on";
     this.greenOnCheck.CheckedChanged += new System.EventHandler(this.greenOnCheck_CheckedChanged);
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(6, 56);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(122, 23);
     this.label7.TabIndex = 13;
     this.label7.Text = "Green synth amplitude";
     //
     // greenOnAmpBox
     //
     this.greenOnAmpBox.Location = new System.Drawing.Point(168, 53);
     this.greenOnAmpBox.Name = "greenOnAmpBox";
     this.greenOnAmpBox.Size = new System.Drawing.Size(64, 20);
     this.greenOnAmpBox.TabIndex = 1;
     this.greenOnAmpBox.Text = "-6";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(6, 24);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(122, 23);
     this.label8.TabIndex = 11;
     this.label8.Text = "Green synth frequency";
     //
     // greenOnFreqBox
     //
     this.greenOnFreqBox.Location = new System.Drawing.Point(168, 21);
     this.greenOnFreqBox.Name = "greenOnFreqBox";
     this.greenOnFreqBox.Size = new System.Drawing.Size(64, 20);
     this.greenOnFreqBox.TabIndex = 0;
     this.greenOnFreqBox.Text = "170.800";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.updateFieldButton);
     this.groupBox1.Controls.Add(this.label10);
     this.groupBox1.Controls.Add(this.label11);
     this.groupBox1.Controls.Add(this.label9);
     this.groupBox1.Controls.Add(this.label5);
     this.groupBox1.Controls.Add(this.cPlusOffTextBox);
     this.groupBox1.Controls.Add(this.cMinusOffTextBox);
     this.groupBox1.Controls.Add(this.cMinusTextBox);
     this.groupBox1.Controls.Add(this.cPlusTextBox);
     this.groupBox1.Location = new System.Drawing.Point(17, 16);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(184, 208);
     this.groupBox1.TabIndex = 23;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Supplies";
     //
     // updateFieldButton
     //
     this.updateFieldButton.Location = new System.Drawing.Point(48, 168);
     this.updateFieldButton.Name = "updateFieldButton";
     this.updateFieldButton.Size = new System.Drawing.Size(75, 23);
     this.updateFieldButton.TabIndex = 40;
     this.updateFieldButton.Text = "Update";
     this.updateFieldButton.Click += new System.EventHandler(this.updateFieldButton_Click);
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(16, 128);
     this.label10.Name = "label10";
     this.label10.Size = new System.Drawing.Size(80, 23);
     this.label10.TabIndex = 39;
     this.label10.Text = "C minus off (V)";
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(16, 96);
     this.label11.Name = "label11";
     this.label11.Size = new System.Drawing.Size(80, 23);
     this.label11.TabIndex = 38;
     this.label11.Text = "C plus off (V)";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(16, 56);
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size(80, 23);
     this.label9.TabIndex = 1;
     this.label9.Text = "C minus (V)";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(16, 24);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(80, 23);
     this.label5.TabIndex = 0;
     this.label5.Text = "C plus (V)";
     //
     // cPlusOffTextBox
     //
     this.cPlusOffTextBox.Location = new System.Drawing.Point(104, 96);
     this.cPlusOffTextBox.Name = "cPlusOffTextBox";
     this.cPlusOffTextBox.Size = new System.Drawing.Size(64, 20);
     this.cPlusOffTextBox.TabIndex = 2;
     this.cPlusOffTextBox.Text = "0";
     //
     // cMinusOffTextBox
     //
     this.cMinusOffTextBox.Location = new System.Drawing.Point(104, 128);
     this.cMinusOffTextBox.Name = "cMinusOffTextBox";
     this.cMinusOffTextBox.Size = new System.Drawing.Size(64, 20);
     this.cMinusOffTextBox.TabIndex = 3;
     this.cMinusOffTextBox.Text = "0";
     //
     // cMinusTextBox
     //
     this.cMinusTextBox.Location = new System.Drawing.Point(104, 56);
     this.cMinusTextBox.Name = "cMinusTextBox";
     this.cMinusTextBox.Size = new System.Drawing.Size(64, 20);
     this.cMinusTextBox.TabIndex = 1;
     this.cMinusTextBox.Text = "0";
     //
     // cPlusTextBox
     //
     this.cPlusTextBox.Location = new System.Drawing.Point(104, 24);
     this.cPlusTextBox.Name = "cPlusTextBox";
     this.cPlusTextBox.Size = new System.Drawing.Size(64, 20);
     this.cPlusTextBox.TabIndex = 0;
     this.cPlusTextBox.Text = "0";
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.calFlipCheck);
     this.groupBox5.Controls.Add(this.bFlipCheck);
     this.groupBox5.Location = new System.Drawing.Point(8, 16);
     this.groupBox5.Name = "groupBox5";
     this.groupBox5.Size = new System.Drawing.Size(376, 56);
     this.groupBox5.TabIndex = 24;
     this.groupBox5.TabStop = false;
     this.groupBox5.Text = "Manual B-flip";
     //
     // calFlipCheck
     //
     this.calFlipCheck.Location = new System.Drawing.Point(152, 24);
     this.calFlipCheck.Name = "calFlipCheck";
     this.calFlipCheck.Size = new System.Drawing.Size(40, 24);
     this.calFlipCheck.TabIndex = 1;
     this.calFlipCheck.Text = "dB";
     this.calFlipCheck.CheckedChanged += new System.EventHandler(this.calFlipCheck_CheckedChanged);
     //
     // bFlipCheck
     //
     this.bFlipCheck.Location = new System.Drawing.Point(16, 24);
     this.bFlipCheck.Name = "bFlipCheck";
     this.bFlipCheck.Size = new System.Drawing.Size(61, 24);
     this.bFlipCheck.TabIndex = 0;
     this.bFlipCheck.Text = "DB";
     this.bFlipCheck.CheckedChanged += new System.EventHandler(this.bFlipCheck_CheckedChanged);
     //
     // tabControl
     //
     this.tabControl.Controls.Add(this.tabPage1);
     this.tabControl.Controls.Add(this.tabPage2);
     this.tabControl.Controls.Add(this.tabPage3);
     this.tabControl.Controls.Add(this.tabPage4);
     this.tabControl.Controls.Add(this.tabPage8);
     this.tabControl.Controls.Add(this.tabPage5);
     this.tabControl.Controls.Add(this.tabPage6);
     this.tabControl.Controls.Add(this.tabPage7);
     this.tabControl.Controls.Add(this.tabPage9);
     this.tabControl.Location = new System.Drawing.Point(12, 27);
     this.tabControl.Name = "tabControl";
     this.tabControl.SelectedIndex = 0;
     this.tabControl.Size = new System.Drawing.Size(705, 601);
     this.tabControl.TabIndex = 25;
     //
     // tabPage1
     //
     this.tabPage1.BackColor = System.Drawing.Color.Transparent;
     this.tabPage1.Controls.Add(this.groupBox21);
     this.tabPage1.Controls.Add(this.groupBox13);
     this.tabPage1.Controls.Add(this.groupBox6);
     this.tabPage1.Controls.Add(this.groupBox2);
     this.tabPage1.Controls.Add(this.groupBox1);
     this.tabPage1.Controls.Add(this.groupBox7);
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Size = new System.Drawing.Size(697, 575);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text = "E-field";
     //
     // groupBox21
     //
     this.groupBox21.Controls.Add(this.eManualStateCheckBox);
     this.groupBox21.Location = new System.Drawing.Point(17, 231);
     this.groupBox21.Name = "groupBox21";
     this.groupBox21.Size = new System.Drawing.Size(184, 61);
     this.groupBox21.TabIndex = 27;
     this.groupBox21.TabStop = false;
     this.groupBox21.Text = "Manual state";
     //
     // eManualStateCheckBox
     //
     this.eManualStateCheckBox.Location = new System.Drawing.Point(6, 23);
     this.eManualStateCheckBox.Name = "eManualStateCheckBox";
     this.eManualStateCheckBox.Size = new System.Drawing.Size(167, 24);
     this.eManualStateCheckBox.TabIndex = 53;
     this.eManualStateCheckBox.Text = "State (Checked is 0=>N+)";
     //
     // groupBox13
     //
     this.groupBox13.Controls.Add(this.eFieldAsymmetryCheckBox);
     this.groupBox13.Controls.Add(this.label37);
     this.groupBox13.Controls.Add(this.label38);
     this.groupBox13.Controls.Add(this.zeroPlusOneMinusBoostTextBox);
     this.groupBox13.Controls.Add(this.zeroPlusBoostTextBox);
     this.groupBox13.Location = new System.Drawing.Point(493, 179);
     this.groupBox13.Name = "groupBox13";
     this.groupBox13.Size = new System.Drawing.Size(184, 113);
     this.groupBox13.TabIndex = 41;
     this.groupBox13.TabStop = false;
     this.groupBox13.Text = "Supply asymmetry";
     //
     // eFieldAsymmetryCheckBox
     //
     this.eFieldAsymmetryCheckBox.Location = new System.Drawing.Point(19, 19);
     this.eFieldAsymmetryCheckBox.Name = "eFieldAsymmetryCheckBox";
     this.eFieldAsymmetryCheckBox.Size = new System.Drawing.Size(72, 24);
     this.eFieldAsymmetryCheckBox.TabIndex = 38;
     this.eFieldAsymmetryCheckBox.Text = "Enable";
     //
     // label37
     //
     this.label37.Location = new System.Drawing.Point(6, 83);
     this.label37.Name = "label37";
     this.label37.Size = new System.Drawing.Size(84, 23);
     this.label37.TabIndex = 37;
     this.label37.Text = "0+1- boost (V)";
     //
     // label38
     //
     this.label38.Location = new System.Drawing.Point(6, 51);
     this.label38.Name = "label38";
     this.label38.Size = new System.Drawing.Size(89, 23);
     this.label38.TabIndex = 36;
     this.label38.Text = "0+ boost (V)";
     //
     // zeroPlusOneMinusBoostTextBox
     //
     this.zeroPlusOneMinusBoostTextBox.Location = new System.Drawing.Point(101, 79);
     this.zeroPlusOneMinusBoostTextBox.Name = "zeroPlusOneMinusBoostTextBox";
     this.zeroPlusOneMinusBoostTextBox.Size = new System.Drawing.Size(64, 20);
     this.zeroPlusOneMinusBoostTextBox.TabIndex = 1;
     this.zeroPlusOneMinusBoostTextBox.Text = "0";
     //
     // zeroPlusBoostTextBox
     //
     this.zeroPlusBoostTextBox.Location = new System.Drawing.Point(102, 51);
     this.zeroPlusBoostTextBox.Name = "zeroPlusBoostTextBox";
     this.zeroPlusBoostTextBox.Size = new System.Drawing.Size(64, 20);
     this.zeroPlusBoostTextBox.TabIndex = 0;
     this.zeroPlusBoostTextBox.Text = "0";
     //
     // groupBox6
     //
     this.groupBox6.Controls.Add(this.gMinusVMonitorTextBox);
     this.groupBox6.Controls.Add(this.cPlusVMonitorTextBox);
     this.groupBox6.Controls.Add(this.gPlusVMonitorTextBox);
     this.groupBox6.Controls.Add(this.updateVMonitorButton);
     this.groupBox6.Controls.Add(this.label12);
     this.groupBox6.Controls.Add(this.label13);
     this.groupBox6.Controls.Add(this.label14);
     this.groupBox6.Controls.Add(this.label15);
     this.groupBox6.Controls.Add(this.cMinusVMonitorTextBox);
     this.groupBox6.Location = new System.Drawing.Point(493, 16);
     this.groupBox6.Name = "groupBox6";
     this.groupBox6.Size = new System.Drawing.Size(184, 153);
     this.groupBox6.TabIndex = 24;
     this.groupBox6.TabStop = false;
     this.groupBox6.Text = "Voltage monitors";
     //
     // gMinusVMonitorTextBox
     //
     this.gMinusVMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.gMinusVMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.gMinusVMonitorTextBox.Location = new System.Drawing.Point(104, 95);
     this.gMinusVMonitorTextBox.Name = "gMinusVMonitorTextBox";
     this.gMinusVMonitorTextBox.ReadOnly = true;
     this.gMinusVMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.gMinusVMonitorTextBox.TabIndex = 43;
     this.gMinusVMonitorTextBox.Text = "0";
     //
     // cPlusVMonitorTextBox
     //
     this.cPlusVMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.cPlusVMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.cPlusVMonitorTextBox.Location = new System.Drawing.Point(104, 24);
     this.cPlusVMonitorTextBox.Name = "cPlusVMonitorTextBox";
     this.cPlusVMonitorTextBox.ReadOnly = true;
     this.cPlusVMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.cPlusVMonitorTextBox.TabIndex = 42;
     this.cPlusVMonitorTextBox.Text = "0";
     //
     // gPlusVMonitorTextBox
     //
     this.gPlusVMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.gPlusVMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.gPlusVMonitorTextBox.Location = new System.Drawing.Point(104, 71);
     this.gPlusVMonitorTextBox.Name = "gPlusVMonitorTextBox";
     this.gPlusVMonitorTextBox.ReadOnly = true;
     this.gPlusVMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.gPlusVMonitorTextBox.TabIndex = 41;
     this.gPlusVMonitorTextBox.Text = "0";
     //
     // updateVMonitorButton
     //
     this.updateVMonitorButton.Location = new System.Drawing.Point(56, 121);
     this.updateVMonitorButton.Name = "updateVMonitorButton";
     this.updateVMonitorButton.Size = new System.Drawing.Size(75, 23);
     this.updateVMonitorButton.TabIndex = 40;
     this.updateVMonitorButton.Text = "Update";
     this.updateVMonitorButton.Click += new System.EventHandler(this.updateVMonitorButton_Click);
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(16, 95);
     this.label12.Name = "label12";
     this.label12.Size = new System.Drawing.Size(80, 23);
     this.label12.TabIndex = 39;
     this.label12.Text = "G minus (V)";
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(16, 71);
     this.label13.Name = "label13";
     this.label13.Size = new System.Drawing.Size(80, 23);
     this.label13.TabIndex = 38;
     this.label13.Text = "G plus (V)";
     //
     // label14
     //
     this.label14.Location = new System.Drawing.Point(16, 48);
     this.label14.Name = "label14";
     this.label14.Size = new System.Drawing.Size(80, 23);
     this.label14.TabIndex = 37;
     this.label14.Text = "C minus (V)";
     //
     // label15
     //
     this.label15.Location = new System.Drawing.Point(16, 24);
     this.label15.Name = "label15";
     this.label15.Size = new System.Drawing.Size(80, 23);
     this.label15.TabIndex = 36;
     this.label15.Text = "C plus (V)";
     //
     // cMinusVMonitorTextBox
     //
     this.cMinusVMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.cMinusVMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.cMinusVMonitorTextBox.Location = new System.Drawing.Point(104, 48);
     this.cMinusVMonitorTextBox.Name = "cMinusVMonitorTextBox";
     this.cMinusVMonitorTextBox.ReadOnly = true;
     this.cMinusVMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.cMinusVMonitorTextBox.TabIndex = 33;
     this.cMinusVMonitorTextBox.Text = "0";
     //
     // groupBox7
     //
     this.groupBox7.Controls.Add(this.label85);
     this.groupBox7.Controls.Add(this.label84);
     this.groupBox7.Controls.Add(this.southV2FSlopeTextBox);
     this.groupBox7.Controls.Add(this.northV2FSlopeTextBox);
     this.groupBox7.Controls.Add(this.leakageMonitorSlopeTextBox);
     this.groupBox7.Controls.Add(this.label64);
     this.groupBox7.Controls.Add(this.stopIMonitorPollButton);
     this.groupBox7.Controls.Add(this.saveToFile);
     this.groupBox7.Controls.Add(this.stopIRecordButton);
     this.groupBox7.Controls.Add(this.startIRecordButton);
     this.groupBox7.Controls.Add(this.legend1);
     this.groupBox7.Controls.Add(this.label63);
     this.groupBox7.Controls.Add(this.iMonitorPollPeriod);
     this.groupBox7.Controls.Add(this.startIMonitorPollButton);
     this.groupBox7.Controls.Add(this.leakageGraph);
     this.groupBox7.Controls.Add(this.IMonitorMeasurementLengthTextBox);
     this.groupBox7.Controls.Add(this.label35);
     this.groupBox7.Controls.Add(this.label17);
     this.groupBox7.Controls.Add(this.northOffsetIMonitorTextBox);
     this.groupBox7.Controls.Add(this.label16);
     this.groupBox7.Controls.Add(this.southOffsetIMonitorTextBox);
     this.groupBox7.Controls.Add(this.zeroIMonitorButton);
     this.groupBox7.Controls.Add(this.southIMonitorTextBox);
     this.groupBox7.Controls.Add(this.northIMonitorTextBox);
     this.groupBox7.Controls.Add(this.updateIMonitorButton);
     this.groupBox7.Controls.Add(this.label18);
     this.groupBox7.Controls.Add(this.label19);
     this.groupBox7.Location = new System.Drawing.Point(17, 298);
     this.groupBox7.Name = "groupBox7";
     this.groupBox7.Size = new System.Drawing.Size(660, 274);
     this.groupBox7.TabIndex = 44;
     this.groupBox7.TabStop = false;
     this.groupBox7.Text = "Current monitors";
     //
     // label85
     //
     this.label85.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label85.Location = new System.Drawing.Point(317, 41);
     this.label85.Name = "label85";
     this.label85.Size = new System.Drawing.Size(82, 28);
     this.label85.TabIndex = 66;
     this.label85.Text = "South monitor (V/kHz)";
     //
     // label84
     //
     this.label84.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label84.Location = new System.Drawing.Point(317, 13);
     this.label84.Name = "label84";
     this.label84.Size = new System.Drawing.Size(82, 28);
     this.label84.TabIndex = 65;
     this.label84.Text = "North monitor (V/kHz)";
     //
     // southV2FSlopeTextBox
     //
     this.southV2FSlopeTextBox.Location = new System.Drawing.Point(405, 38);
     this.southV2FSlopeTextBox.Name = "southV2FSlopeTextBox";
     this.southV2FSlopeTextBox.Size = new System.Drawing.Size(65, 20);
     this.southV2FSlopeTextBox.TabIndex = 64;
     this.southV2FSlopeTextBox.Text = "0.0255023";
     //
     // northV2FSlopeTextBox
     //
     this.northV2FSlopeTextBox.Location = new System.Drawing.Point(405, 10);
     this.northV2FSlopeTextBox.Name = "northV2FSlopeTextBox";
     this.northV2FSlopeTextBox.Size = new System.Drawing.Size(65, 20);
     this.northV2FSlopeTextBox.TabIndex = 63;
     this.northV2FSlopeTextBox.Text = "0.025425";
     //
     // leakageMonitorSlopeTextBox
     //
     this.leakageMonitorSlopeTextBox.Location = new System.Drawing.Point(405, 84);
     this.leakageMonitorSlopeTextBox.Name = "leakageMonitorSlopeTextBox";
     this.leakageMonitorSlopeTextBox.Size = new System.Drawing.Size(65, 20);
     this.leakageMonitorSlopeTextBox.TabIndex = 2;
     this.leakageMonitorSlopeTextBox.Text = "0.200";
     //
     // label64
     //
     this.label64.Location = new System.Drawing.Point(317, 68);
     this.label64.Name = "label64";
     this.label64.Size = new System.Drawing.Size(149, 43);
     this.label64.TabIndex = 58;
     this.label64.Text = "Frequency to Current (kHz/I)\r\n 0.2 kHz/nA hi\r\n~2 kHz/uA lo";
     //
     // stopIMonitorPollButton
     //
     this.stopIMonitorPollButton.Enabled = false;
     this.stopIMonitorPollButton.Location = new System.Drawing.Point(579, 76);
     this.stopIMonitorPollButton.Name = "stopIMonitorPollButton";
     this.stopIMonitorPollButton.Size = new System.Drawing.Size(75, 23);
     this.stopIMonitorPollButton.TabIndex = 55;
     this.stopIMonitorPollButton.Text = "Stop poll";
     this.stopIMonitorPollButton.UseVisualStyleBackColor = true;
     this.stopIMonitorPollButton.Click += new System.EventHandler(this.stopIMonitorPollButton_Click);
     //
     // saveToFile
     //
     this.saveToFile.Enabled = false;
     this.saveToFile.Location = new System.Drawing.Point(476, 63);
     this.saveToFile.Name = "saveToFile";
     this.saveToFile.Size = new System.Drawing.Size(90, 23);
     this.saveToFile.TabIndex = 62;
     this.saveToFile.Text = "Save";
     this.saveToFile.UseVisualStyleBackColor = true;
     this.saveToFile.Click += new System.EventHandler(this.saveToFile_Click);
     //
     // stopIRecordButton
     //
     this.stopIRecordButton.Enabled = false;
     this.stopIRecordButton.Location = new System.Drawing.Point(528, 34);
     this.stopIRecordButton.Name = "stopIRecordButton";
     this.stopIRecordButton.Size = new System.Drawing.Size(39, 23);
     this.stopIRecordButton.TabIndex = 61;
     this.stopIRecordButton.Text = "Stop";
     this.stopIRecordButton.UseVisualStyleBackColor = true;
     this.stopIRecordButton.Click += new System.EventHandler(this.stopIRecordButton_Click);
     //
     // startIRecordButton
     //
     this.startIRecordButton.Location = new System.Drawing.Point(476, 34);
     this.startIRecordButton.Name = "startIRecordButton";
     this.startIRecordButton.Size = new System.Drawing.Size(42, 23);
     this.startIRecordButton.TabIndex = 60;
     this.startIRecordButton.Text = "Rec";
     this.startIRecordButton.UseVisualStyleBackColor = true;
     this.startIRecordButton.Click += new System.EventHandler(this.startIRecordButton_Click);
     //
     // legend1
     //
     this.legend1.Items.AddRange(new NationalInstruments.UI.LegendItem[] {
     this.NorthLegendItem,
     this.SouthLegendItem});
     this.legend1.ItemSize = new System.Drawing.Size(12, 12);
     this.legend1.Location = new System.Drawing.Point(472, 86);
     this.legend1.Name = "legend1";
     this.legend1.Size = new System.Drawing.Size(115, 22);
     this.legend1.TabIndex = 59;
     //
     // NorthLegendItem
     //
     this.NorthLegendItem.Source = this.northLeakagePlot;
     this.NorthLegendItem.Text = "North";
     //
     // northLeakagePlot
     //
     this.northLeakagePlot.AntiAliased = true;
     this.northLeakagePlot.HistoryCapacity = 10000;
     this.northLeakagePlot.LineColor = System.Drawing.Color.Crimson;
     this.northLeakagePlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor;
     this.northLeakagePlot.LineWidth = 2F;
     this.northLeakagePlot.XAxis = this.xAxis1;
     this.northLeakagePlot.YAxis = this.yAxis1;
     //
     // xAxis1
     //
     this.xAxis1.Mode = NationalInstruments.UI.AxisMode.StripChart;
     this.xAxis1.Range = new NationalInstruments.UI.Range(0D, 500D);
     //
     // yAxis1
     //
     this.yAxis1.Mode = NationalInstruments.UI.AxisMode.Fixed;
     this.yAxis1.OriginLineVisible = true;
     this.yAxis1.Range = new NationalInstruments.UI.Range(-20D, 20D);
     //
     // SouthLegendItem
     //
     this.SouthLegendItem.Source = this.southLeakagePlot;
     this.SouthLegendItem.Text = "South";
     //
     // southLeakagePlot
     //
     this.southLeakagePlot.HistoryCapacity = 10000;
     this.southLeakagePlot.LineColor = System.Drawing.Color.DodgerBlue;
     this.southLeakagePlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor;
     this.southLeakagePlot.LineWidth = 2F;
     this.southLeakagePlot.XAxis = this.xAxis1;
     this.southLeakagePlot.YAxis = this.yAxis1;
     //
     // label63
     //
     this.label63.Location = new System.Drawing.Point(479, 15);
     this.label63.Name = "label63";
     this.label63.Size = new System.Drawing.Size(108, 23);
     this.label63.TabIndex = 56;
     this.label63.Text = "Poll period (ms)";
     //
     // iMonitorPollPeriod
     //
     this.iMonitorPollPeriod.Location = new System.Drawing.Point(590, 13);
     this.iMonitorPollPeriod.Name = "iMonitorPollPeriod";
     this.iMonitorPollPeriod.Size = new System.Drawing.Size(64, 20);
     this.iMonitorPollPeriod.TabIndex = 0;
     this.iMonitorPollPeriod.Text = "100";
     //
     // startIMonitorPollButton
     //
     this.startIMonitorPollButton.Location = new System.Drawing.Point(579, 45);
     this.startIMonitorPollButton.Name = "startIMonitorPollButton";
     this.startIMonitorPollButton.Size = new System.Drawing.Size(75, 23);
     this.startIMonitorPollButton.TabIndex = 53;
     this.startIMonitorPollButton.Text = "Start poll";
     this.startIMonitorPollButton.UseVisualStyleBackColor = true;
     this.startIMonitorPollButton.Click += new System.EventHandler(this.startIMonitorPollButton_Click);
     //
     // leakageGraph
     //
     this.leakageGraph.InteractionMode = ((NationalInstruments.UI.GraphInteractionModes)((((((((NationalInstruments.UI.GraphInteractionModes.ZoomX | NationalInstruments.UI.GraphInteractionModes.ZoomY)
     | NationalInstruments.UI.GraphInteractionModes.ZoomAroundPoint)
     | NationalInstruments.UI.GraphInteractionModes.PanX)
     | NationalInstruments.UI.GraphInteractionModes.PanY)
     | NationalInstruments.UI.GraphInteractionModes.DragCursor)
     | NationalInstruments.UI.GraphInteractionModes.DragAnnotationCaption)
     | NationalInstruments.UI.GraphInteractionModes.EditRange)));
     this.leakageGraph.Location = new System.Drawing.Point(9, 114);
     this.leakageGraph.Name = "leakageGraph";
     this.leakageGraph.Plots.AddRange(new NationalInstruments.UI.WaveformPlot[] {
     this.northLeakagePlot,
     this.southLeakagePlot});
     this.leakageGraph.Size = new System.Drawing.Size(645, 153);
     this.leakageGraph.TabIndex = 45;
     this.leakageGraph.XAxes.AddRange(new NationalInstruments.UI.XAxis[] {
     this.xAxis1});
     this.leakageGraph.YAxes.AddRange(new NationalInstruments.UI.YAxis[] {
     this.yAxis1});
     //
     // IMonitorMeasurementLengthTextBox
     //
     this.IMonitorMeasurementLengthTextBox.Location = new System.Drawing.Point(244, 76);
     this.IMonitorMeasurementLengthTextBox.Name = "IMonitorMeasurementLengthTextBox";
     this.IMonitorMeasurementLengthTextBox.Size = new System.Drawing.Size(64, 20);
     this.IMonitorMeasurementLengthTextBox.TabIndex = 1;
     this.IMonitorMeasurementLengthTextBox.Text = "200";
     //
     // label35
     //
     this.label35.Location = new System.Drawing.Point(163, 73);
     this.label35.Name = "label35";
     this.label35.Size = new System.Drawing.Size(80, 31);
     this.label35.TabIndex = 51;
     this.label35.Text = "Measurement Length (S)";
     //
     // label17
     //
     this.label17.Location = new System.Drawing.Point(146, 24);
     this.label17.Name = "label17";
     this.label17.Size = new System.Drawing.Size(92, 23);
     this.label17.TabIndex = 50;
     this.label17.Text = "North offset (Hz)";
     //
     // northOffsetIMonitorTextBox
     //
     this.northOffsetIMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.northOffsetIMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.northOffsetIMonitorTextBox.Location = new System.Drawing.Point(244, 21);
     this.northOffsetIMonitorTextBox.Name = "northOffsetIMonitorTextBox";
     this.northOffsetIMonitorTextBox.ReadOnly = true;
     this.northOffsetIMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.northOffsetIMonitorTextBox.TabIndex = 49;
     this.northOffsetIMonitorTextBox.Text = "0";
     //
     // label16
     //
     this.label16.Location = new System.Drawing.Point(146, 50);
     this.label16.Name = "label16";
     this.label16.Size = new System.Drawing.Size(97, 23);
     this.label16.TabIndex = 48;
     this.label16.Text = "South offset (Hz)";
     //
     // southOffsetIMonitorTextBox
     //
     this.southOffsetIMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.southOffsetIMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.southOffsetIMonitorTextBox.Location = new System.Drawing.Point(244, 47);
     this.southOffsetIMonitorTextBox.Name = "southOffsetIMonitorTextBox";
     this.southOffsetIMonitorTextBox.ReadOnly = true;
     this.southOffsetIMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.southOffsetIMonitorTextBox.TabIndex = 47;
     this.southOffsetIMonitorTextBox.Text = "0";
     //
     // zeroIMonitorButton
     //
     this.zeroIMonitorButton.Location = new System.Drawing.Point(82, 76);
     this.zeroIMonitorButton.Name = "zeroIMonitorButton";
     this.zeroIMonitorButton.Size = new System.Drawing.Size(75, 23);
     this.zeroIMonitorButton.TabIndex = 46;
     this.zeroIMonitorButton.Text = "Zero";
     this.zeroIMonitorButton.UseVisualStyleBackColor = true;
     this.zeroIMonitorButton.Click += new System.EventHandler(this.calibrateIMonitorButton_Click);
     //
     // southIMonitorTextBox
     //
     this.southIMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.southIMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.southIMonitorTextBox.Location = new System.Drawing.Point(76, 47);
     this.southIMonitorTextBox.Name = "southIMonitorTextBox";
     this.southIMonitorTextBox.ReadOnly = true;
     this.southIMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.southIMonitorTextBox.TabIndex = 45;
     this.southIMonitorTextBox.Text = "0";
     //
     // northIMonitorTextBox
     //
     this.northIMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.northIMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.northIMonitorTextBox.Location = new System.Drawing.Point(76, 21);
     this.northIMonitorTextBox.Name = "northIMonitorTextBox";
     this.northIMonitorTextBox.ReadOnly = true;
     this.northIMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.northIMonitorTextBox.TabIndex = 42;
     this.northIMonitorTextBox.Text = "0";
     //
     // updateIMonitorButton
     //
     this.updateIMonitorButton.Location = new System.Drawing.Point(9, 76);
     this.updateIMonitorButton.Name = "updateIMonitorButton";
     this.updateIMonitorButton.Size = new System.Drawing.Size(72, 23);
     this.updateIMonitorButton.TabIndex = 40;
     this.updateIMonitorButton.Text = "Update";
     this.updateIMonitorButton.Click += new System.EventHandler(this.updateIMonitorButton_Click);
     //
     // label18
     //
     this.label18.Location = new System.Drawing.Point(6, 50);
     this.label18.Name = "label18";
     this.label18.Size = new System.Drawing.Size(80, 23);
     this.label18.TabIndex = 37;
     this.label18.Text = "South C (nA)";
     //
     // label19
     //
     this.label19.Location = new System.Drawing.Point(6, 24);
     this.label19.Name = "label19";
     this.label19.Size = new System.Drawing.Size(80, 23);
     this.label19.TabIndex = 36;
     this.label19.Text = "North C (nA)";
     //
     // tabPage2
     //
     this.tabPage2.BackColor = System.Drawing.Color.Transparent;
     this.tabPage2.Controls.Add(this.groupBox24);
     this.tabPage2.Controls.Add(this.groupBox22);
     this.tabPage2.Controls.Add(this.groupBox4);
     this.tabPage2.Controls.Add(this.groupBox16);
     this.tabPage2.Controls.Add(this.groupBox14);
     this.tabPage2.Controls.Add(this.groupBox3);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name = "tabPage2";
     this.tabPage2.Size = new System.Drawing.Size(697, 575);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text = "Synths";
     //
     // groupBox24
     //
     this.groupBox24.Controls.Add(this.piMonitor2TextBox);
     this.groupBox24.Controls.Add(this.updatePiMonitorButton);
     this.groupBox24.Controls.Add(this.label82);
     this.groupBox24.Controls.Add(this.piMonitor1TextBox);
     this.groupBox24.Location = new System.Drawing.Point(8, 518);
     this.groupBox24.Name = "groupBox24";
     this.groupBox24.Size = new System.Drawing.Size(382, 50);
     this.groupBox24.TabIndex = 65;
     this.groupBox24.TabStop = false;
     this.groupBox24.Text = "pi monitor";
     //
     // piMonitor2TextBox
     //
     this.piMonitor2TextBox.BackColor = System.Drawing.Color.Black;
     this.piMonitor2TextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.piMonitor2TextBox.Location = new System.Drawing.Point(214, 22);
     this.piMonitor2TextBox.Name = "piMonitor2TextBox";
     this.piMonitor2TextBox.ReadOnly = true;
     this.piMonitor2TextBox.Size = new System.Drawing.Size(64, 20);
     this.piMonitor2TextBox.TabIndex = 65;
     this.piMonitor2TextBox.Text = "0";
     //
     // updatePiMonitorButton
     //
     this.updatePiMonitorButton.Location = new System.Drawing.Point(301, 20);
     this.updatePiMonitorButton.Name = "updatePiMonitorButton";
     this.updatePiMonitorButton.Size = new System.Drawing.Size(75, 23);
     this.updatePiMonitorButton.TabIndex = 63;
     this.updatePiMonitorButton.Text = "Update";
     this.updatePiMonitorButton.Click += new System.EventHandler(this.updatePiMonitorButton_Click);
     //
     // label82
     //
     this.label82.Location = new System.Drawing.Point(17, 24);
     this.label82.Name = "label82";
     this.label82.Size = new System.Drawing.Size(108, 23);
     this.label82.TabIndex = 64;
     this.label82.Text = "Monitor voltages (V)";
     //
     // piMonitor1TextBox
     //
     this.piMonitor1TextBox.BackColor = System.Drawing.Color.Black;
     this.piMonitor1TextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.piMonitor1TextBox.Location = new System.Drawing.Point(131, 22);
     this.piMonitor1TextBox.Name = "piMonitor1TextBox";
     this.piMonitor1TextBox.ReadOnly = true;
     this.piMonitor1TextBox.Size = new System.Drawing.Size(64, 20);
     this.piMonitor1TextBox.TabIndex = 62;
     this.piMonitor1TextBox.Text = "0";
     //
     // groupBox22
     //
     this.groupBox22.Controls.Add(this.rfManualStateCheckBox);
     this.groupBox22.Location = new System.Drawing.Point(320, 263);
     this.groupBox22.Name = "groupBox22";
     this.groupBox22.Size = new System.Drawing.Size(363, 52);
     this.groupBox22.TabIndex = 33;
     this.groupBox22.TabStop = false;
     this.groupBox22.Text = "Manual state";
     //
     // rfManualStateCheckBox
     //
     this.rfManualStateCheckBox.Location = new System.Drawing.Point(29, 19);
     this.rfManualStateCheckBox.Name = "rfManualStateCheckBox";
     this.rfManualStateCheckBox.Size = new System.Drawing.Size(257, 24);
     this.rfManualStateCheckBox.TabIndex = 53;
     this.rfManualStateCheckBox.Text = "State (Checked is rf in bottom)";
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.rf2StepPowerMon);
     this.groupBox4.Controls.Add(this.rf2StepFreqMon);
     this.groupBox4.Controls.Add(this.rf1StepPowerMon);
     this.groupBox4.Controls.Add(this.rf1StepFreqMon);
     this.groupBox4.Controls.Add(this.rf2CentrePowerMon);
     this.groupBox4.Controls.Add(this.rf2CentreFreqMon);
     this.groupBox4.Controls.Add(this.rf1CentrePowerMon);
     this.groupBox4.Controls.Add(this.rf1CentreFreqMon);
     this.groupBox4.Controls.Add(this.label56);
     this.groupBox4.Controls.Add(this.label48);
     this.groupBox4.Controls.Add(this.label55);
     this.groupBox4.Controls.Add(this.label40);
     this.groupBox4.Controls.Add(this.label54);
     this.groupBox4.Controls.Add(this.label47);
     this.groupBox4.Controls.Add(this.label53);
     this.groupBox4.Controls.Add(this.label42);
     this.groupBox4.Controls.Add(this.rf2MinusPowerMon);
     this.groupBox4.Controls.Add(this.rf2MinusFreqMon);
     this.groupBox4.Controls.Add(this.rf1MinusPowerMon);
     this.groupBox4.Controls.Add(this.rf1MinusFreqMon);
     this.groupBox4.Controls.Add(this.rf2PlusPowerMon);
     this.groupBox4.Controls.Add(this.rf2PlusFreqMon);
     this.groupBox4.Controls.Add(this.rf1PlusPowerMon);
     this.groupBox4.Controls.Add(this.rf1PlusFreqMon);
     this.groupBox4.Controls.Add(this.rfPowerUpdateButton);
     this.groupBox4.Controls.Add(this.label52);
     this.groupBox4.Controls.Add(this.rfFrequencyUpdateButton);
     this.groupBox4.Controls.Add(this.label51);
     this.groupBox4.Controls.Add(this.label46);
     this.groupBox4.Controls.Add(this.label50);
     this.groupBox4.Controls.Add(this.label43);
     this.groupBox4.Controls.Add(this.label49);
     this.groupBox4.Controls.Add(this.label45);
     this.groupBox4.Controls.Add(this.label44);
     this.groupBox4.Location = new System.Drawing.Point(8, 373);
     this.groupBox4.Name = "groupBox4";
     this.groupBox4.Size = new System.Drawing.Size(675, 139);
     this.groupBox4.TabIndex = 27;
     this.groupBox4.TabStop = false;
     this.groupBox4.Text = "rf measurement";
     //
     // rf2StepPowerMon
     //
     this.rf2StepPowerMon.BackColor = System.Drawing.Color.Black;
     this.rf2StepPowerMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf2StepPowerMon.Location = new System.Drawing.Point(592, 81);
     this.rf2StepPowerMon.Name = "rf2StepPowerMon";
     this.rf2StepPowerMon.ReadOnly = true;
     this.rf2StepPowerMon.Size = new System.Drawing.Size(64, 20);
     this.rf2StepPowerMon.TabIndex = 58;
     this.rf2StepPowerMon.Text = "0";
     //
     // rf2StepFreqMon
     //
     this.rf2StepFreqMon.BackColor = System.Drawing.Color.Black;
     this.rf2StepFreqMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf2StepFreqMon.Location = new System.Drawing.Point(258, 81);
     this.rf2StepFreqMon.Name = "rf2StepFreqMon";
     this.rf2StepFreqMon.ReadOnly = true;
     this.rf2StepFreqMon.Size = new System.Drawing.Size(64, 20);
     this.rf2StepFreqMon.TabIndex = 58;
     this.rf2StepFreqMon.Text = "0";
     //
     // rf1StepPowerMon
     //
     this.rf1StepPowerMon.BackColor = System.Drawing.Color.Black;
     this.rf1StepPowerMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf1StepPowerMon.Location = new System.Drawing.Point(431, 81);
     this.rf1StepPowerMon.Name = "rf1StepPowerMon";
     this.rf1StepPowerMon.ReadOnly = true;
     this.rf1StepPowerMon.Size = new System.Drawing.Size(64, 20);
     this.rf1StepPowerMon.TabIndex = 58;
     this.rf1StepPowerMon.Text = "0";
     //
     // rf1StepFreqMon
     //
     this.rf1StepFreqMon.BackColor = System.Drawing.Color.Black;
     this.rf1StepFreqMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf1StepFreqMon.Location = new System.Drawing.Point(98, 81);
     this.rf1StepFreqMon.Name = "rf1StepFreqMon";
     this.rf1StepFreqMon.ReadOnly = true;
     this.rf1StepFreqMon.Size = new System.Drawing.Size(64, 20);
     this.rf1StepFreqMon.TabIndex = 58;
     this.rf1StepFreqMon.Text = "0";
     //
     // rf2CentrePowerMon
     //
     this.rf2CentrePowerMon.BackColor = System.Drawing.Color.Black;
     this.rf2CentrePowerMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf2CentrePowerMon.Location = new System.Drawing.Point(521, 81);
     this.rf2CentrePowerMon.Name = "rf2CentrePowerMon";
     this.rf2CentrePowerMon.ReadOnly = true;
     this.rf2CentrePowerMon.Size = new System.Drawing.Size(64, 20);
     this.rf2CentrePowerMon.TabIndex = 57;
     this.rf2CentrePowerMon.Text = "0";
     //
     // rf2CentreFreqMon
     //
     this.rf2CentreFreqMon.BackColor = System.Drawing.Color.Black;
     this.rf2CentreFreqMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf2CentreFreqMon.Location = new System.Drawing.Point(187, 81);
     this.rf2CentreFreqMon.Name = "rf2CentreFreqMon";
     this.rf2CentreFreqMon.ReadOnly = true;
     this.rf2CentreFreqMon.Size = new System.Drawing.Size(64, 20);
     this.rf2CentreFreqMon.TabIndex = 57;
     this.rf2CentreFreqMon.Text = "0";
     //
     // rf1CentrePowerMon
     //
     this.rf1CentrePowerMon.BackColor = System.Drawing.Color.Black;
     this.rf1CentrePowerMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf1CentrePowerMon.Location = new System.Drawing.Point(360, 81);
     this.rf1CentrePowerMon.Name = "rf1CentrePowerMon";
     this.rf1CentrePowerMon.ReadOnly = true;
     this.rf1CentrePowerMon.Size = new System.Drawing.Size(64, 20);
     this.rf1CentrePowerMon.TabIndex = 57;
     this.rf1CentrePowerMon.Text = "0";
     //
     // rf1CentreFreqMon
     //
     this.rf1CentreFreqMon.BackColor = System.Drawing.Color.Black;
     this.rf1CentreFreqMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf1CentreFreqMon.Location = new System.Drawing.Point(27, 81);
     this.rf1CentreFreqMon.Name = "rf1CentreFreqMon";
     this.rf1CentreFreqMon.ReadOnly = true;
     this.rf1CentreFreqMon.Size = new System.Drawing.Size(64, 20);
     this.rf1CentreFreqMon.TabIndex = 57;
     this.rf1CentreFreqMon.Text = "0";
     //
     // label56
     //
     this.label56.Location = new System.Drawing.Point(589, 64);
     this.label56.Name = "label56";
     this.label56.Size = new System.Drawing.Size(80, 23);
     this.label56.TabIndex = 56;
     this.label56.Text = "Step";
     //
     // label48
     //
     this.label48.Location = new System.Drawing.Point(255, 64);
     this.label48.Name = "label48";
     this.label48.Size = new System.Drawing.Size(80, 23);
     this.label48.TabIndex = 56;
     this.label48.Text = "Step";
     //
     // label55
     //
     this.label55.Location = new System.Drawing.Point(428, 64);
     this.label55.Name = "label55";
     this.label55.Size = new System.Drawing.Size(80, 23);
     this.label55.TabIndex = 56;
     this.label55.Text = "Step";
     //
     // label40
     //
     this.label40.Location = new System.Drawing.Point(95, 64);
     this.label40.Name = "label40";
     this.label40.Size = new System.Drawing.Size(80, 23);
     this.label40.TabIndex = 56;
     this.label40.Text = "Step";
     //
     // label54
     //
     this.label54.Location = new System.Drawing.Point(518, 64);
     this.label54.Name = "label54";
     this.label54.Size = new System.Drawing.Size(80, 23);
     this.label54.TabIndex = 55;
     this.label54.Text = "Centre";
     //
     // label47
     //
     this.label47.Location = new System.Drawing.Point(184, 64);
     this.label47.Name = "label47";
     this.label47.Size = new System.Drawing.Size(80, 23);
     this.label47.TabIndex = 55;
     this.label47.Text = "Centre";
     //
     // label53
     //
     this.label53.Location = new System.Drawing.Point(357, 64);
     this.label53.Name = "label53";
     this.label53.Size = new System.Drawing.Size(80, 23);
     this.label53.TabIndex = 55;
     this.label53.Text = "Centre";
     //
     // label42
     //
     this.label42.Location = new System.Drawing.Point(24, 64);
     this.label42.Name = "label42";
     this.label42.Size = new System.Drawing.Size(80, 23);
     this.label42.TabIndex = 55;
     this.label42.Text = "Centre";
     //
     // rf2MinusPowerMon
     //
     this.rf2MinusPowerMon.BackColor = System.Drawing.Color.Black;
     this.rf2MinusPowerMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf2MinusPowerMon.Location = new System.Drawing.Point(592, 44);
     this.rf2MinusPowerMon.Name = "rf2MinusPowerMon";
     this.rf2MinusPowerMon.ReadOnly = true;
     this.rf2MinusPowerMon.Size = new System.Drawing.Size(64, 20);
     this.rf2MinusPowerMon.TabIndex = 54;
     this.rf2MinusPowerMon.Text = "0";
     //
     // rf2MinusFreqMon
     //
     this.rf2MinusFreqMon.BackColor = System.Drawing.Color.Black;
     this.rf2MinusFreqMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf2MinusFreqMon.Location = new System.Drawing.Point(258, 44);
     this.rf2MinusFreqMon.Name = "rf2MinusFreqMon";
     this.rf2MinusFreqMon.ReadOnly = true;
     this.rf2MinusFreqMon.Size = new System.Drawing.Size(64, 20);
     this.rf2MinusFreqMon.TabIndex = 54;
     this.rf2MinusFreqMon.Text = "0";
     //
     // rf1MinusPowerMon
     //
     this.rf1MinusPowerMon.BackColor = System.Drawing.Color.Black;
     this.rf1MinusPowerMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf1MinusPowerMon.Location = new System.Drawing.Point(431, 44);
     this.rf1MinusPowerMon.Name = "rf1MinusPowerMon";
     this.rf1MinusPowerMon.ReadOnly = true;
     this.rf1MinusPowerMon.Size = new System.Drawing.Size(64, 20);
     this.rf1MinusPowerMon.TabIndex = 54;
     this.rf1MinusPowerMon.Text = "0";
     //
     // rf1MinusFreqMon
     //
     this.rf1MinusFreqMon.BackColor = System.Drawing.Color.Black;
     this.rf1MinusFreqMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf1MinusFreqMon.Location = new System.Drawing.Point(98, 44);
     this.rf1MinusFreqMon.Name = "rf1MinusFreqMon";
     this.rf1MinusFreqMon.ReadOnly = true;
     this.rf1MinusFreqMon.Size = new System.Drawing.Size(64, 20);
     this.rf1MinusFreqMon.TabIndex = 54;
     this.rf1MinusFreqMon.Text = "0";
     //
     // rf2PlusPowerMon
     //
     this.rf2PlusPowerMon.BackColor = System.Drawing.Color.Black;
     this.rf2PlusPowerMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf2PlusPowerMon.Location = new System.Drawing.Point(521, 44);
     this.rf2PlusPowerMon.Name = "rf2PlusPowerMon";
     this.rf2PlusPowerMon.ReadOnly = true;
     this.rf2PlusPowerMon.Size = new System.Drawing.Size(64, 20);
     this.rf2PlusPowerMon.TabIndex = 51;
     this.rf2PlusPowerMon.Text = "0";
     //
     // rf2PlusFreqMon
     //
     this.rf2PlusFreqMon.BackColor = System.Drawing.Color.Black;
     this.rf2PlusFreqMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf2PlusFreqMon.Location = new System.Drawing.Point(187, 44);
     this.rf2PlusFreqMon.Name = "rf2PlusFreqMon";
     this.rf2PlusFreqMon.ReadOnly = true;
     this.rf2PlusFreqMon.Size = new System.Drawing.Size(64, 20);
     this.rf2PlusFreqMon.TabIndex = 51;
     this.rf2PlusFreqMon.Text = "0";
     //
     // rf1PlusPowerMon
     //
     this.rf1PlusPowerMon.BackColor = System.Drawing.Color.Black;
     this.rf1PlusPowerMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf1PlusPowerMon.Location = new System.Drawing.Point(360, 44);
     this.rf1PlusPowerMon.Name = "rf1PlusPowerMon";
     this.rf1PlusPowerMon.ReadOnly = true;
     this.rf1PlusPowerMon.Size = new System.Drawing.Size(64, 20);
     this.rf1PlusPowerMon.TabIndex = 51;
     this.rf1PlusPowerMon.Text = "0";
     //
     // rf1PlusFreqMon
     //
     this.rf1PlusFreqMon.BackColor = System.Drawing.Color.Black;
     this.rf1PlusFreqMon.ForeColor = System.Drawing.Color.Chartreuse;
     this.rf1PlusFreqMon.Location = new System.Drawing.Point(27, 44);
     this.rf1PlusFreqMon.Name = "rf1PlusFreqMon";
     this.rf1PlusFreqMon.ReadOnly = true;
     this.rf1PlusFreqMon.Size = new System.Drawing.Size(64, 20);
     this.rf1PlusFreqMon.TabIndex = 51;
     this.rf1PlusFreqMon.Text = "0";
     //
     // rfPowerUpdateButton
     //
     this.rfPowerUpdateButton.Location = new System.Drawing.Point(469, 107);
     this.rfPowerUpdateButton.Name = "rfPowerUpdateButton";
     this.rfPowerUpdateButton.Size = new System.Drawing.Size(75, 23);
     this.rfPowerUpdateButton.TabIndex = 50;
     this.rfPowerUpdateButton.Text = "Update";
     this.rfPowerUpdateButton.Click += new System.EventHandler(this.rfPowerUpdateButton_Click);
     //
     // label52
     //
     this.label52.Location = new System.Drawing.Point(589, 25);
     this.label52.Name = "label52";
     this.label52.Size = new System.Drawing.Size(80, 23);
     this.label52.TabIndex = 47;
     this.label52.Text = "rf2 ap - (dBm)";
     //
     // rfFrequencyUpdateButton
     //
     this.rfFrequencyUpdateButton.Location = new System.Drawing.Point(139, 107);
     this.rfFrequencyUpdateButton.Name = "rfFrequencyUpdateButton";
     this.rfFrequencyUpdateButton.Size = new System.Drawing.Size(75, 23);
     this.rfFrequencyUpdateButton.TabIndex = 50;
     this.rfFrequencyUpdateButton.Text = "Update";
     this.rfFrequencyUpdateButton.Click += new System.EventHandler(this.rfFrequencyUpdateButton_Click);
     //
     // label51
     //
     this.label51.Location = new System.Drawing.Point(428, 25);
     this.label51.Name = "label51";
     this.label51.Size = new System.Drawing.Size(80, 23);
     this.label51.TabIndex = 47;
     this.label51.Text = "rf1 ap - (dBm)";
     //
     // label46
     //
     this.label46.Location = new System.Drawing.Point(255, 25);
     this.label46.Name = "label46";
     this.label46.Size = new System.Drawing.Size(80, 23);
     this.label46.TabIndex = 47;
     this.label46.Text = "rf2 fr - (Hz)";
     //
     // label50
     //
     this.label50.Location = new System.Drawing.Point(518, 25);
     this.label50.Name = "label50";
     this.label50.Size = new System.Drawing.Size(80, 23);
     this.label50.TabIndex = 46;
     this.label50.Text = "rf2 ap + (dBm)";
     //
     // label43
     //
     this.label43.Location = new System.Drawing.Point(95, 25);
     this.label43.Name = "label43";
     this.label43.Size = new System.Drawing.Size(80, 23);
     this.label43.TabIndex = 47;
     this.label43.Text = "rf1 fr - (Hz)";
     //
     // label49
     //
     this.label49.Location = new System.Drawing.Point(357, 25);
     this.label49.Name = "label49";
     this.label49.Size = new System.Drawing.Size(80, 23);
     this.label49.TabIndex = 46;
     this.label49.Text = "rf1ap + (dBm)";
     //
     // label45
     //
     this.label45.Location = new System.Drawing.Point(184, 25);
     this.label45.Name = "label45";
     this.label45.Size = new System.Drawing.Size(80, 23);
     this.label45.TabIndex = 46;
     this.label45.Text = "rf2 fr + (Hz)";
     //
     // label44
     //
     this.label44.Location = new System.Drawing.Point(24, 25);
     this.label44.Name = "label44";
     this.label44.Size = new System.Drawing.Size(80, 23);
     this.label44.TabIndex = 46;
     this.label44.Text = "rf1 fr + (Hz)";
     //
     // groupBox16
     //
     this.groupBox16.Controls.Add(this.scramblerCheckBox);
     this.groupBox16.Controls.Add(this.attenuatorSelectCheck);
     this.groupBox16.Controls.Add(this.phaseFlip2CheckBox);
     this.groupBox16.Controls.Add(this.phaseFlip1CheckBox);
     this.groupBox16.Controls.Add(this.fmSelectCheck);
     this.groupBox16.Controls.Add(this.rfSwitchEnableCheck);
     this.groupBox16.Location = new System.Drawing.Point(8, 184);
     this.groupBox16.Name = "groupBox16";
     this.groupBox16.Size = new System.Drawing.Size(296, 183);
     this.groupBox16.TabIndex = 26;
     this.groupBox16.TabStop = false;
     this.groupBox16.Text = "TTL controls";
     //
     // scramblerCheckBox
     //
     this.scramblerCheckBox.Location = new System.Drawing.Point(156, 142);
     this.scramblerCheckBox.Name = "scramblerCheckBox";
     this.scramblerCheckBox.Size = new System.Drawing.Size(122, 24);
     this.scramblerCheckBox.TabIndex = 31;
     this.scramblerCheckBox.Text = "scrambler TTL";
     this.scramblerCheckBox.CheckedChanged += new System.EventHandler(this.scramblerCheckBox_CheckedChanged);
     //
     // attenuatorSelectCheck
     //
     this.attenuatorSelectCheck.Location = new System.Drawing.Point(24, 82);
     this.attenuatorSelectCheck.Name = "attenuatorSelectCheck";
     this.attenuatorSelectCheck.Size = new System.Drawing.Size(208, 24);
     this.attenuatorSelectCheck.TabIndex = 30;
     this.attenuatorSelectCheck.Text = "Attenuator select (check rf1)";
     this.attenuatorSelectCheck.CheckedChanged += new System.EventHandler(this.attenuatorSelectCheck_CheckedChanged);
     //
     // phaseFlip2CheckBox
     //
     this.phaseFlip2CheckBox.Location = new System.Drawing.Point(24, 142);
     this.phaseFlip2CheckBox.Name = "phaseFlip2CheckBox";
     this.phaseFlip2CheckBox.Size = new System.Drawing.Size(152, 24);
     this.phaseFlip2CheckBox.TabIndex = 29;
     this.phaseFlip2CheckBox.Text = "phase flip TTL 2";
     this.phaseFlip2CheckBox.CheckedChanged += new System.EventHandler(this.phaseFlip2CheckBox_CheckedChanged);
     //
     // phaseFlip1CheckBox
     //
     this.phaseFlip1CheckBox.Location = new System.Drawing.Point(24, 112);
     this.phaseFlip1CheckBox.Name = "phaseFlip1CheckBox";
     this.phaseFlip1CheckBox.Size = new System.Drawing.Size(152, 24);
     this.phaseFlip1CheckBox.TabIndex = 28;
     this.phaseFlip1CheckBox.Text = "phase flip TTL 1";
     this.phaseFlip1CheckBox.CheckedChanged += new System.EventHandler(this.phaseFlip1CheckBox_CheckedChanged);
     //
     // fmSelectCheck
     //
     this.fmSelectCheck.Location = new System.Drawing.Point(24, 52);
     this.fmSelectCheck.Name = "fmSelectCheck";
     this.fmSelectCheck.Size = new System.Drawing.Size(208, 24);
     this.fmSelectCheck.TabIndex = 27;
     this.fmSelectCheck.Text = "DC FM select (check rf1)";
     this.fmSelectCheck.CheckedChanged += new System.EventHandler(this.greenFMSelectCheck_CheckedChanged);
     //
     // rfSwitchEnableCheck
     //
     this.rfSwitchEnableCheck.Location = new System.Drawing.Point(24, 22);
     this.rfSwitchEnableCheck.Name = "rfSwitchEnableCheck";
     this.rfSwitchEnableCheck.Size = new System.Drawing.Size(208, 24);
     this.rfSwitchEnableCheck.TabIndex = 22;
     this.rfSwitchEnableCheck.Text = "Enable rf1 switch (check on)";
     this.rfSwitchEnableCheck.CheckedChanged += new System.EventHandler(this.rfSwitchEnableCheck_CheckedChanged);
     //
     // groupBox14
     //
     this.groupBox14.Controls.Add(this.setScramblerVoltageButton);
     this.groupBox14.Controls.Add(this.panel4);
     this.groupBox14.Controls.Add(this.label74);
     this.groupBox14.Controls.Add(this.scramblerVoltageTextBox);
     this.groupBox14.Controls.Add(this.panel3);
     this.groupBox14.Controls.Add(this.panel2);
     this.groupBox14.Controls.Add(this.panel1);
     this.groupBox14.Controls.Add(this.rf2FMIncTextBox);
     this.groupBox14.Controls.Add(this.label24);
     this.groupBox14.Controls.Add(this.rf1FMIncTextBox);
     this.groupBox14.Controls.Add(this.label28);
     this.groupBox14.Controls.Add(this.rf2AttIncTextBox);
     this.groupBox14.Controls.Add(this.label6);
     this.groupBox14.Controls.Add(this.rf1AttIncTextBox);
     this.groupBox14.Controls.Add(this.label4);
     this.groupBox14.Controls.Add(this.setFMVoltagesButton);
     this.groupBox14.Controls.Add(this.label2);
     this.groupBox14.Controls.Add(this.rf2FMVoltage);
     this.groupBox14.Controls.Add(this.label3);
     this.groupBox14.Controls.Add(this.rf1FMVoltage);
     this.groupBox14.Controls.Add(this.setAttenuatorsButton);
     this.groupBox14.Controls.Add(this.label36);
     this.groupBox14.Controls.Add(this.rf2AttenuatorVoltageTextBox);
     this.groupBox14.Controls.Add(this.label39);
     this.groupBox14.Controls.Add(this.rf1AttenuatorVoltageTextBox);
     this.groupBox14.Location = new System.Drawing.Point(320, 16);
     this.groupBox14.Name = "groupBox14";
     this.groupBox14.Size = new System.Drawing.Size(363, 244);
     this.groupBox14.TabIndex = 24;
     this.groupBox14.TabStop = false;
     this.groupBox14.Text = "fast rf control";
     //
     // setScramblerVoltageButton
     //
     this.setScramblerVoltageButton.Location = new System.Drawing.Point(125, 218);
     this.setScramblerVoltageButton.Name = "setScramblerVoltageButton";
     this.setScramblerVoltageButton.Size = new System.Drawing.Size(131, 23);
     this.setScramblerVoltageButton.TabIndex = 33;
     this.setScramblerVoltageButton.Text = "Set scrambler voltage";
     this.setScramblerVoltageButton.Click += new System.EventHandler(this.setScramblerVoltageButton_Click);
     //
     // panel4
     //
     this.panel4.Controls.Add(this.rf2FMZeroRB);
     this.panel4.Controls.Add(this.rf2FMPlusRB);
     this.panel4.Controls.Add(this.rf2FMMinusRB);
     this.panel4.Location = new System.Drawing.Point(249, 134);
     this.panel4.Name = "panel4";
     this.panel4.Size = new System.Drawing.Size(108, 32);
     this.panel4.TabIndex = 0;
     //
     // rf2FMZeroRB
     //
     this.rf2FMZeroRB.AutoSize = true;
     this.rf2FMZeroRB.Checked = true;
     this.rf2FMZeroRB.Location = new System.Drawing.Point(77, 7);
     this.rf2FMZeroRB.Name = "rf2FMZeroRB";
     this.rf2FMZeroRB.Size = new System.Drawing.Size(31, 17);
     this.rf2FMZeroRB.TabIndex = 32;
     this.rf2FMZeroRB.TabStop = true;
     this.rf2FMZeroRB.Text = "0";
     this.rf2FMZeroRB.UseVisualStyleBackColor = true;
     //
     // rf2FMPlusRB
     //
     this.rf2FMPlusRB.AutoSize = true;
     this.rf2FMPlusRB.Location = new System.Drawing.Point(3, 6);
     this.rf2FMPlusRB.Name = "rf2FMPlusRB";
     this.rf2FMPlusRB.Size = new System.Drawing.Size(31, 17);
     this.rf2FMPlusRB.TabIndex = 32;
     this.rf2FMPlusRB.Text = "+";
     this.rf2FMPlusRB.UseVisualStyleBackColor = true;
     //
     // rf2FMMinusRB
     //
     this.rf2FMMinusRB.AutoSize = true;
     this.rf2FMMinusRB.Location = new System.Drawing.Point(42, 7);
     this.rf2FMMinusRB.Name = "rf2FMMinusRB";
     this.rf2FMMinusRB.Size = new System.Drawing.Size(28, 17);
     this.rf2FMMinusRB.TabIndex = 32;
     this.rf2FMMinusRB.Text = "-";
     this.rf2FMMinusRB.UseVisualStyleBackColor = true;
     //
     // label74
     //
     this.label74.Location = new System.Drawing.Point(6, 195);
     this.label74.Name = "label74";
     this.label74.Size = new System.Drawing.Size(114, 23);
     this.label74.TabIndex = 32;
     this.label74.Text = "Scrambler voltage (V)";
     //
     // scramblerVoltageTextBox
     //
     this.scramblerVoltageTextBox.Location = new System.Drawing.Point(128, 192);
     this.scramblerVoltageTextBox.Name = "scramblerVoltageTextBox";
     this.scramblerVoltageTextBox.Size = new System.Drawing.Size(34, 20);
     this.scramblerVoltageTextBox.TabIndex = 31;
     this.scramblerVoltageTextBox.Text = "0";
     //
     // panel3
     //
     this.panel3.Controls.Add(this.rf1FMZeroRB);
     this.panel3.Controls.Add(this.rf1FMPlusRB);
     this.panel3.Controls.Add(this.rf1FMMinusRB);
     this.panel3.Location = new System.Drawing.Point(249, 106);
     this.panel3.Name = "panel3";
     this.panel3.Size = new System.Drawing.Size(108, 32);
     this.panel3.TabIndex = 0;
     //
     // rf1FMZeroRB
     //
     this.rf1FMZeroRB.AutoSize = true;
     this.rf1FMZeroRB.Checked = true;
     this.rf1FMZeroRB.Location = new System.Drawing.Point(77, 7);
     this.rf1FMZeroRB.Name = "rf1FMZeroRB";
     this.rf1FMZeroRB.Size = new System.Drawing.Size(31, 17);
     this.rf1FMZeroRB.TabIndex = 32;
     this.rf1FMZeroRB.TabStop = true;
     this.rf1FMZeroRB.Text = "0";
     this.rf1FMZeroRB.UseVisualStyleBackColor = true;
     //
     // rf1FMPlusRB
     //
     this.rf1FMPlusRB.AutoSize = true;
     this.rf1FMPlusRB.Location = new System.Drawing.Point(3, 6);
     this.rf1FMPlusRB.Name = "rf1FMPlusRB";
     this.rf1FMPlusRB.Size = new System.Drawing.Size(31, 17);
     this.rf1FMPlusRB.TabIndex = 32;
     this.rf1FMPlusRB.Text = "+";
     this.rf1FMPlusRB.UseVisualStyleBackColor = true;
     //
     // rf1FMMinusRB
     //
     this.rf1FMMinusRB.AutoSize = true;
     this.rf1FMMinusRB.Location = new System.Drawing.Point(42, 7);
     this.rf1FMMinusRB.Name = "rf1FMMinusRB";
     this.rf1FMMinusRB.Size = new System.Drawing.Size(28, 17);
     this.rf1FMMinusRB.TabIndex = 32;
     this.rf1FMMinusRB.Text = "-";
     this.rf1FMMinusRB.UseVisualStyleBackColor = true;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.rf2AttZeroRB);
     this.panel2.Controls.Add(this.rf2AttPlusRB);
     this.panel2.Controls.Add(this.rf2AttMinusRB);
     this.panel2.Location = new System.Drawing.Point(249, 47);
     this.panel2.Name = "panel2";
     this.panel2.Size = new System.Drawing.Size(108, 32);
     this.panel2.TabIndex = 0;
     //
     // rf2AttZeroRB
     //
     this.rf2AttZeroRB.AutoSize = true;
     this.rf2AttZeroRB.Checked = true;
     this.rf2AttZeroRB.Location = new System.Drawing.Point(77, 7);
     this.rf2AttZeroRB.Name = "rf2AttZeroRB";
     this.rf2AttZeroRB.Size = new System.Drawing.Size(31, 17);
     this.rf2AttZeroRB.TabIndex = 32;
     this.rf2AttZeroRB.TabStop = true;
     this.rf2AttZeroRB.Text = "0";
     this.rf2AttZeroRB.UseVisualStyleBackColor = true;
     //
     // rf2AttPlusRB
     //
     this.rf2AttPlusRB.AutoSize = true;
     this.rf2AttPlusRB.Location = new System.Drawing.Point(3, 6);
     this.rf2AttPlusRB.Name = "rf2AttPlusRB";
     this.rf2AttPlusRB.Size = new System.Drawing.Size(31, 17);
     this.rf2AttPlusRB.TabIndex = 32;
     this.rf2AttPlusRB.Text = "+";
     this.rf2AttPlusRB.UseVisualStyleBackColor = true;
     //
     // rf2AttMinusRB
     //
     this.rf2AttMinusRB.AutoSize = true;
     this.rf2AttMinusRB.Location = new System.Drawing.Point(42, 7);
     this.rf2AttMinusRB.Name = "rf2AttMinusRB";
     this.rf2AttMinusRB.Size = new System.Drawing.Size(28, 17);
     this.rf2AttMinusRB.TabIndex = 32;
     this.rf2AttMinusRB.Text = "-";
     this.rf2AttMinusRB.UseVisualStyleBackColor = true;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.rf1AttZeroRB);
     this.panel1.Controls.Add(this.rf1AttPlusRB);
     this.panel1.Controls.Add(this.rf1AttMinusRB);
     this.panel1.Location = new System.Drawing.Point(249, 19);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(108, 32);
     this.panel1.TabIndex = 0;
     //
     // rf1AttZeroRB
     //
     this.rf1AttZeroRB.AutoSize = true;
     this.rf1AttZeroRB.Checked = true;
     this.rf1AttZeroRB.Location = new System.Drawing.Point(77, 7);
     this.rf1AttZeroRB.Name = "rf1AttZeroRB";
     this.rf1AttZeroRB.Size = new System.Drawing.Size(31, 17);
     this.rf1AttZeroRB.TabIndex = 32;
     this.rf1AttZeroRB.TabStop = true;
     this.rf1AttZeroRB.Text = "0";
     this.rf1AttZeroRB.UseVisualStyleBackColor = true;
     //
     // rf1AttPlusRB
     //
     this.rf1AttPlusRB.AutoSize = true;
     this.rf1AttPlusRB.Location = new System.Drawing.Point(3, 6);
     this.rf1AttPlusRB.Name = "rf1AttPlusRB";
     this.rf1AttPlusRB.Size = new System.Drawing.Size(31, 17);
     this.rf1AttPlusRB.TabIndex = 32;
     this.rf1AttPlusRB.Text = "+";
     this.rf1AttPlusRB.UseVisualStyleBackColor = true;
     //
     // rf1AttMinusRB
     //
     this.rf1AttMinusRB.AutoSize = true;
     this.rf1AttMinusRB.Location = new System.Drawing.Point(42, 7);
     this.rf1AttMinusRB.Name = "rf1AttMinusRB";
     this.rf1AttMinusRB.Size = new System.Drawing.Size(28, 17);
     this.rf1AttMinusRB.TabIndex = 32;
     this.rf1AttMinusRB.Text = "-";
     this.rf1AttMinusRB.UseVisualStyleBackColor = true;
     //
     // rf2FMIncTextBox
     //
     this.rf2FMIncTextBox.Location = new System.Drawing.Point(198, 136);
     this.rf2FMIncTextBox.Name = "rf2FMIncTextBox";
     this.rf2FMIncTextBox.Size = new System.Drawing.Size(34, 20);
     this.rf2FMIncTextBox.TabIndex = 7;
     this.rf2FMIncTextBox.Text = "0";
     //
     // label24
     //
     this.label24.Location = new System.Drawing.Point(168, 136);
     this.label24.Name = "label24";
     this.label24.Size = new System.Drawing.Size(24, 23);
     this.label24.TabIndex = 30;
     this.label24.Text = "+-";
     //
     // rf1FMIncTextBox
     //
     this.rf1FMIncTextBox.Location = new System.Drawing.Point(198, 110);
     this.rf1FMIncTextBox.Name = "rf1FMIncTextBox";
     this.rf1FMIncTextBox.Size = new System.Drawing.Size(34, 20);
     this.rf1FMIncTextBox.TabIndex = 5;
     this.rf1FMIncTextBox.Text = "0";
     //
     // label28
     //
     this.label28.Location = new System.Drawing.Point(168, 110);
     this.label28.Name = "label28";
     this.label28.Size = new System.Drawing.Size(24, 23);
     this.label28.TabIndex = 28;
     this.label28.Text = "+-";
     //
     // rf2AttIncTextBox
     //
     this.rf2AttIncTextBox.Location = new System.Drawing.Point(198, 50);
     this.rf2AttIncTextBox.Name = "rf2AttIncTextBox";
     this.rf2AttIncTextBox.Size = new System.Drawing.Size(34, 20);
     this.rf2AttIncTextBox.TabIndex = 3;
     this.rf2AttIncTextBox.Text = "0";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(168, 50);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(24, 23);
     this.label6.TabIndex = 2;
     this.label6.Text = "+-";
     //
     // rf1AttIncTextBox
     //
     this.rf1AttIncTextBox.Location = new System.Drawing.Point(198, 24);
     this.rf1AttIncTextBox.Name = "rf1AttIncTextBox";
     this.rf1AttIncTextBox.Size = new System.Drawing.Size(34, 20);
     this.rf1AttIncTextBox.TabIndex = 1;
     this.rf1AttIncTextBox.Text = "0";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(168, 24);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(24, 23);
     this.label4.TabIndex = 0;
     this.label4.Text = "+-";
     //
     // setFMVoltagesButton
     //
     this.setFMVoltagesButton.Location = new System.Drawing.Point(125, 166);
     this.setFMVoltagesButton.Name = "setFMVoltagesButton";
     this.setFMVoltagesButton.Size = new System.Drawing.Size(131, 23);
     this.setFMVoltagesButton.TabIndex = 23;
     this.setFMVoltagesButton.Text = "Set fm voltages";
     this.setFMVoltagesButton.Click += new System.EventHandler(this.setFMVoltagesButton_Click);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(59, 140);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(61, 23);
     this.label2.TabIndex = 22;
     this.label2.Text = "rf2 fm (V)";
     //
     // rf2FMVoltage
     //
     this.rf2FMVoltage.Location = new System.Drawing.Point(128, 136);
     this.rf2FMVoltage.Name = "rf2FMVoltage";
     this.rf2FMVoltage.Size = new System.Drawing.Size(34, 20);
     this.rf2FMVoltage.TabIndex = 6;
     this.rf2FMVoltage.Text = "0";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(59, 114);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(61, 23);
     this.label3.TabIndex = 20;
     this.label3.Text = "rf1 fm (V)";
     //
     // rf1FMVoltage
     //
     this.rf1FMVoltage.Location = new System.Drawing.Point(128, 110);
     this.rf1FMVoltage.Name = "rf1FMVoltage";
     this.rf1FMVoltage.Size = new System.Drawing.Size(34, 20);
     this.rf1FMVoltage.TabIndex = 4;
     this.rf1FMVoltage.Text = "0";
     //
     // setAttenuatorsButton
     //
     this.setAttenuatorsButton.Location = new System.Drawing.Point(125, 79);
     this.setAttenuatorsButton.Name = "setAttenuatorsButton";
     this.setAttenuatorsButton.Size = new System.Drawing.Size(131, 23);
     this.setAttenuatorsButton.TabIndex = 18;
     this.setAttenuatorsButton.Text = "Set attenuator voltages";
     this.setAttenuatorsButton.Click += new System.EventHandler(this.setAttenuatorsButton_Click);
     //
     // label36
     //
     this.label36.Location = new System.Drawing.Point(24, 54);
     this.label36.Name = "label36";
     this.label36.Size = new System.Drawing.Size(96, 23);
     this.label36.TabIndex = 15;
     this.label36.Text = "rf2 att. voltage (V)";
     //
     // rf2AttenuatorVoltageTextBox
     //
     this.rf2AttenuatorVoltageTextBox.Location = new System.Drawing.Point(128, 50);
     this.rf2AttenuatorVoltageTextBox.Name = "rf2AttenuatorVoltageTextBox";
     this.rf2AttenuatorVoltageTextBox.Size = new System.Drawing.Size(34, 20);
     this.rf2AttenuatorVoltageTextBox.TabIndex = 2;
     this.rf2AttenuatorVoltageTextBox.Text = "5";
     //
     // label39
     //
     this.label39.Location = new System.Drawing.Point(24, 28);
     this.label39.Name = "label39";
     this.label39.Size = new System.Drawing.Size(96, 23);
     this.label39.TabIndex = 13;
     this.label39.Text = "rf1 att. voltage (V)";
     //
     // rf1AttenuatorVoltageTextBox
     //
     this.rf1AttenuatorVoltageTextBox.Location = new System.Drawing.Point(128, 24);
     this.rf1AttenuatorVoltageTextBox.Name = "rf1AttenuatorVoltageTextBox";
     this.rf1AttenuatorVoltageTextBox.Size = new System.Drawing.Size(34, 20);
     this.rf1AttenuatorVoltageTextBox.TabIndex = 0;
     this.rf1AttenuatorVoltageTextBox.Text = "5";
     //
     // tabPage3
     //
     this.tabPage3.BackColor = System.Drawing.Color.Transparent;
     this.tabPage3.Controls.Add(this.groupBox23);
     this.tabPage3.Controls.Add(this.groupBox20);
     this.tabPage3.Controls.Add(this.groupBox9);
     this.tabPage3.Controls.Add(this.groupBox12);
     this.tabPage3.Controls.Add(this.groupBox8);
     this.tabPage3.Controls.Add(this.groupBox5);
     this.tabPage3.Location = new System.Drawing.Point(4, 22);
     this.tabPage3.Name = "tabPage3";
     this.tabPage3.Size = new System.Drawing.Size(697, 575);
     this.tabPage3.TabIndex = 2;
     this.tabPage3.Text = "B-field";
     //
     // groupBox23
     //
     this.groupBox23.Controls.Add(this.bManualStateCheckBox);
     this.groupBox23.Location = new System.Drawing.Point(390, 16);
     this.groupBox23.Name = "groupBox23";
     this.groupBox23.Size = new System.Drawing.Size(233, 61);
     this.groupBox23.TabIndex = 49;
     this.groupBox23.TabStop = false;
     this.groupBox23.Text = "Manual state";
     //
     // bManualStateCheckBox
     //
     this.bManualStateCheckBox.Location = new System.Drawing.Point(6, 23);
     this.bManualStateCheckBox.Name = "bManualStateCheckBox";
     this.bManualStateCheckBox.Size = new System.Drawing.Size(221, 24);
     this.bManualStateCheckBox.TabIndex = 53;
     this.bManualStateCheckBox.Text = "State (Checked is Red=>+Iz)";
     //
     // groupBox20
     //
     this.groupBox20.Controls.Add(this.miniFlux2TextBox);
     this.groupBox20.Controls.Add(this.miniFlux3TextBox);
     this.groupBox20.Controls.Add(this.label77);
     this.groupBox20.Controls.Add(this.label76);
     this.groupBox20.Controls.Add(this.miniFlux1TextBox);
     this.groupBox20.Controls.Add(this.updateMiniFluxgatesButton);
     this.groupBox20.Controls.Add(this.label75);
     this.groupBox20.Location = new System.Drawing.Point(390, 78);
     this.groupBox20.Name = "groupBox20";
     this.groupBox20.Size = new System.Drawing.Size(233, 192);
     this.groupBox20.TabIndex = 48;
     this.groupBox20.TabStop = false;
     this.groupBox20.Text = "Mini-Fluxgate Monitor";
     //
     // miniFlux2TextBox
     //
     this.miniFlux2TextBox.BackColor = System.Drawing.Color.Black;
     this.miniFlux2TextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.miniFlux2TextBox.Location = new System.Drawing.Point(140, 50);
     this.miniFlux2TextBox.Name = "miniFlux2TextBox";
     this.miniFlux2TextBox.ReadOnly = true;
     this.miniFlux2TextBox.Size = new System.Drawing.Size(64, 20);
     this.miniFlux2TextBox.TabIndex = 49;
     this.miniFlux2TextBox.Text = "0";
     //
     // miniFlux3TextBox
     //
     this.miniFlux3TextBox.BackColor = System.Drawing.Color.Black;
     this.miniFlux3TextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.miniFlux3TextBox.Location = new System.Drawing.Point(140, 79);
     this.miniFlux3TextBox.Name = "miniFlux3TextBox";
     this.miniFlux3TextBox.ReadOnly = true;
     this.miniFlux3TextBox.Size = new System.Drawing.Size(64, 20);
     this.miniFlux3TextBox.TabIndex = 48;
     this.miniFlux3TextBox.Text = "0";
     //
     // label77
     //
     this.label77.Location = new System.Drawing.Point(16, 82);
     this.label77.Name = "label77";
     this.label77.Size = new System.Drawing.Size(101, 23);
     this.label77.TabIndex = 47;
     this.label77.Text = "Computer Rack (V)";
     //
     // label76
     //
     this.label76.Location = new System.Drawing.Point(16, 53);
     this.label76.Name = "label76";
     this.label76.Size = new System.Drawing.Size(80, 23);
     this.label76.TabIndex = 46;
     this.label76.Text = "Optic Table (V)";
     //
     // miniFlux1TextBox
     //
     this.miniFlux1TextBox.BackColor = System.Drawing.Color.Black;
     this.miniFlux1TextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.miniFlux1TextBox.Location = new System.Drawing.Point(140, 21);
     this.miniFlux1TextBox.Name = "miniFlux1TextBox";
     this.miniFlux1TextBox.ReadOnly = true;
     this.miniFlux1TextBox.Size = new System.Drawing.Size(64, 20);
     this.miniFlux1TextBox.TabIndex = 45;
     this.miniFlux1TextBox.Text = "0";
     //
     // updateMiniFluxgatesButton
     //
     this.updateMiniFluxgatesButton.Location = new System.Drawing.Point(16, 120);
     this.updateMiniFluxgatesButton.Name = "updateMiniFluxgatesButton";
     this.updateMiniFluxgatesButton.Size = new System.Drawing.Size(75, 23);
     this.updateMiniFluxgatesButton.TabIndex = 40;
     this.updateMiniFluxgatesButton.Text = "Update";
     this.updateMiniFluxgatesButton.Click += new System.EventHandler(this.updateMiniFluxgatesButton_Click);
     //
     // label75
     //
     this.label75.Location = new System.Drawing.Point(16, 24);
     this.label75.Name = "label75";
     this.label75.Size = new System.Drawing.Size(80, 23);
     this.label75.TabIndex = 36;
     this.label75.Text = "Supplies (V)";
     //
     // groupBox9
     //
     this.groupBox9.Controls.Add(this.automaticBiasCalcButton);
     this.groupBox9.Controls.Add(this.steppingBBoxBiasTextBox);
     this.groupBox9.Controls.Add(this.SteppingBBoxBiasUpdateButton);
     this.groupBox9.Controls.Add(this.label65);
     this.groupBox9.Location = new System.Drawing.Point(310, 276);
     this.groupBox9.Name = "groupBox9";
     this.groupBox9.Size = new System.Drawing.Size(296, 96);
     this.groupBox9.TabIndex = 47;
     this.groupBox9.TabStop = false;
     this.groupBox9.Text = "Stepping B box bias";
     //
     // automaticBiasCalcButton
     //
     this.automaticBiasCalcButton.Location = new System.Drawing.Point(96, 56);
     this.automaticBiasCalcButton.Name = "automaticBiasCalcButton";
     this.automaticBiasCalcButton.Size = new System.Drawing.Size(163, 23);
     this.automaticBiasCalcButton.TabIndex = 46;
     this.automaticBiasCalcButton.Text = "Set to measured Bias";
     this.automaticBiasCalcButton.Click += new System.EventHandler(this.automaticBiasCalcButton_Click);
     //
     // steppingBBoxBiasTextBox
     //
     this.steppingBBoxBiasTextBox.Location = new System.Drawing.Point(96, 24);
     this.steppingBBoxBiasTextBox.Name = "steppingBBoxBiasTextBox";
     this.steppingBBoxBiasTextBox.Size = new System.Drawing.Size(64, 20);
     this.steppingBBoxBiasTextBox.TabIndex = 45;
     this.steppingBBoxBiasTextBox.Text = "0";
     //
     // SteppingBBoxBiasUpdateButton
     //
     this.SteppingBBoxBiasUpdateButton.Location = new System.Drawing.Point(184, 24);
     this.SteppingBBoxBiasUpdateButton.Name = "SteppingBBoxBiasUpdateButton";
     this.SteppingBBoxBiasUpdateButton.Size = new System.Drawing.Size(75, 23);
     this.SteppingBBoxBiasUpdateButton.TabIndex = 40;
     this.SteppingBBoxBiasUpdateButton.Text = "Update";
     this.SteppingBBoxBiasUpdateButton.Click += new System.EventHandler(this.SteppingBBoxBiasUpdateButton_Click);
     //
     // label65
     //
     this.label65.Location = new System.Drawing.Point(16, 24);
     this.label65.Name = "label65";
     this.label65.Size = new System.Drawing.Size(80, 23);
     this.label65.TabIndex = 36;
     this.label65.Text = "Voltage (V)";
     //
     // groupBox12
     //
     this.groupBox12.Controls.Add(this.scanningBVoltageBox);
     this.groupBox12.Controls.Add(this.scanningBFSButton);
     this.groupBox12.Controls.Add(this.scanningBZeroButton);
     this.groupBox12.Controls.Add(this.scanningBUpdateButton);
     this.groupBox12.Controls.Add(this.label41);
     this.groupBox12.Location = new System.Drawing.Point(8, 276);
     this.groupBox12.Name = "groupBox12";
     this.groupBox12.Size = new System.Drawing.Size(296, 96);
     this.groupBox12.TabIndex = 46;
     this.groupBox12.TabStop = false;
     this.groupBox12.Text = "Scanning B box";
     //
     // scanningBVoltageBox
     //
     this.scanningBVoltageBox.Location = new System.Drawing.Point(96, 24);
     this.scanningBVoltageBox.Name = "scanningBVoltageBox";
     this.scanningBVoltageBox.Size = new System.Drawing.Size(64, 20);
     this.scanningBVoltageBox.TabIndex = 45;
     this.scanningBVoltageBox.Text = "0";
     //
     // scanningBFSButton
     //
     this.scanningBFSButton.Location = new System.Drawing.Point(184, 56);
     this.scanningBFSButton.Name = "scanningBFSButton";
     this.scanningBFSButton.Size = new System.Drawing.Size(75, 23);
     this.scanningBFSButton.TabIndex = 44;
     this.scanningBFSButton.Text = "Max";
     this.scanningBFSButton.Click += new System.EventHandler(this.scanningBFSButton_Click);
     //
     // scanningBZeroButton
     //
     this.scanningBZeroButton.Location = new System.Drawing.Point(85, 56);
     this.scanningBZeroButton.Name = "scanningBZeroButton";
     this.scanningBZeroButton.Size = new System.Drawing.Size(75, 23);
     this.scanningBZeroButton.TabIndex = 43;
     this.scanningBZeroButton.Text = "Zero";
     this.scanningBZeroButton.Click += new System.EventHandler(this.scanningBZeroButton_Click);
     //
     // scanningBUpdateButton
     //
     this.scanningBUpdateButton.Location = new System.Drawing.Point(184, 24);
     this.scanningBUpdateButton.Name = "scanningBUpdateButton";
     this.scanningBUpdateButton.Size = new System.Drawing.Size(75, 23);
     this.scanningBUpdateButton.TabIndex = 40;
     this.scanningBUpdateButton.Text = "Update";
     this.scanningBUpdateButton.Click += new System.EventHandler(this.scanningBUpdateButton_Click);
     //
     // label41
     //
     this.label41.Location = new System.Drawing.Point(16, 24);
     this.label41.Name = "label41";
     this.label41.Size = new System.Drawing.Size(80, 23);
     this.label41.TabIndex = 36;
     this.label41.Text = "Voltage (V)";
     //
     // groupBox8
     //
     this.groupBox8.Controls.Add(this.bCurrentCalStepTextBox);
     this.groupBox8.Controls.Add(this.bCurrentFlipStepTextBox);
     this.groupBox8.Controls.Add(this.bCurrentBiasTextBox);
     this.groupBox8.Controls.Add(this.label25);
     this.groupBox8.Controls.Add(this.label26);
     this.groupBox8.Controls.Add(this.label27);
     this.groupBox8.Controls.Add(this.bCurrent01TextBox);
     this.groupBox8.Controls.Add(this.bCurrent11TextBox);
     this.groupBox8.Controls.Add(this.bCurrent10TextBox);
     this.groupBox8.Controls.Add(this.bCurrent00TextBox);
     this.groupBox8.Controls.Add(this.updateBCurrentMonitorButton);
     this.groupBox8.Controls.Add(this.label20);
     this.groupBox8.Controls.Add(this.label21);
     this.groupBox8.Controls.Add(this.label22);
     this.groupBox8.Controls.Add(this.label23);
     this.groupBox8.Location = new System.Drawing.Point(8, 78);
     this.groupBox8.Name = "groupBox8";
     this.groupBox8.Size = new System.Drawing.Size(376, 192);
     this.groupBox8.TabIndex = 45;
     this.groupBox8.TabStop = false;
     this.groupBox8.Text = "Current monitor";
     //
     // bCurrentCalStepTextBox
     //
     this.bCurrentCalStepTextBox.BackColor = System.Drawing.Color.Black;
     this.bCurrentCalStepTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.bCurrentCalStepTextBox.Location = new System.Drawing.Point(288, 56);
     this.bCurrentCalStepTextBox.Name = "bCurrentCalStepTextBox";
     this.bCurrentCalStepTextBox.ReadOnly = true;
     this.bCurrentCalStepTextBox.Size = new System.Drawing.Size(64, 20);
     this.bCurrentCalStepTextBox.TabIndex = 53;
     this.bCurrentCalStepTextBox.Text = "0";
     //
     // bCurrentFlipStepTextBox
     //
     this.bCurrentFlipStepTextBox.BackColor = System.Drawing.Color.Black;
     this.bCurrentFlipStepTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.bCurrentFlipStepTextBox.Location = new System.Drawing.Point(288, 88);
     this.bCurrentFlipStepTextBox.Name = "bCurrentFlipStepTextBox";
     this.bCurrentFlipStepTextBox.ReadOnly = true;
     this.bCurrentFlipStepTextBox.Size = new System.Drawing.Size(64, 20);
     this.bCurrentFlipStepTextBox.TabIndex = 51;
     this.bCurrentFlipStepTextBox.Text = "0";
     //
     // bCurrentBiasTextBox
     //
     this.bCurrentBiasTextBox.BackColor = System.Drawing.Color.Black;
     this.bCurrentBiasTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.bCurrentBiasTextBox.Location = new System.Drawing.Point(288, 24);
     this.bCurrentBiasTextBox.Name = "bCurrentBiasTextBox";
     this.bCurrentBiasTextBox.ReadOnly = true;
     this.bCurrentBiasTextBox.Size = new System.Drawing.Size(64, 20);
     this.bCurrentBiasTextBox.TabIndex = 50;
     this.bCurrentBiasTextBox.Text = "0";
     //
     // label25
     //
     this.label25.Location = new System.Drawing.Point(200, 88);
     this.label25.Name = "label25";
     this.label25.Size = new System.Drawing.Size(80, 23);
     this.label25.TabIndex = 48;
     this.label25.Text = "DB (uA)";
     //
     // label26
     //
     this.label26.Location = new System.Drawing.Point(200, 56);
     this.label26.Name = "label26";
     this.label26.Size = new System.Drawing.Size(80, 23);
     this.label26.TabIndex = 47;
     this.label26.Text = "dB (uA)";
     //
     // label27
     //
     this.label27.Location = new System.Drawing.Point(200, 24);
     this.label27.Name = "label27";
     this.label27.Size = new System.Drawing.Size(80, 23);
     this.label27.TabIndex = 46;
     this.label27.Text = "Bias (uA)";
     //
     // bCurrent01TextBox
     //
     this.bCurrent01TextBox.BackColor = System.Drawing.Color.Black;
     this.bCurrent01TextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.bCurrent01TextBox.Location = new System.Drawing.Point(104, 56);
     this.bCurrent01TextBox.Name = "bCurrent01TextBox";
     this.bCurrent01TextBox.ReadOnly = true;
     this.bCurrent01TextBox.Size = new System.Drawing.Size(64, 20);
     this.bCurrent01TextBox.TabIndex = 45;
     this.bCurrent01TextBox.Text = "0";
     //
     // bCurrent11TextBox
     //
     this.bCurrent11TextBox.BackColor = System.Drawing.Color.Black;
     this.bCurrent11TextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.bCurrent11TextBox.Location = new System.Drawing.Point(104, 120);
     this.bCurrent11TextBox.Name = "bCurrent11TextBox";
     this.bCurrent11TextBox.ReadOnly = true;
     this.bCurrent11TextBox.Size = new System.Drawing.Size(64, 20);
     this.bCurrent11TextBox.TabIndex = 44;
     this.bCurrent11TextBox.Text = "0";
     //
     // bCurrent10TextBox
     //
     this.bCurrent10TextBox.BackColor = System.Drawing.Color.Black;
     this.bCurrent10TextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.bCurrent10TextBox.Location = new System.Drawing.Point(104, 88);
     this.bCurrent10TextBox.Name = "bCurrent10TextBox";
     this.bCurrent10TextBox.ReadOnly = true;
     this.bCurrent10TextBox.Size = new System.Drawing.Size(64, 20);
     this.bCurrent10TextBox.TabIndex = 43;
     this.bCurrent10TextBox.Text = "0";
     //
     // bCurrent00TextBox
     //
     this.bCurrent00TextBox.BackColor = System.Drawing.Color.Black;
     this.bCurrent00TextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.bCurrent00TextBox.Location = new System.Drawing.Point(104, 24);
     this.bCurrent00TextBox.Name = "bCurrent00TextBox";
     this.bCurrent00TextBox.ReadOnly = true;
     this.bCurrent00TextBox.Size = new System.Drawing.Size(64, 20);
     this.bCurrent00TextBox.TabIndex = 42;
     this.bCurrent00TextBox.Text = "0";
     //
     // updateBCurrentMonitorButton
     //
     this.updateBCurrentMonitorButton.Location = new System.Drawing.Point(152, 152);
     this.updateBCurrentMonitorButton.Name = "updateBCurrentMonitorButton";
     this.updateBCurrentMonitorButton.Size = new System.Drawing.Size(75, 23);
     this.updateBCurrentMonitorButton.TabIndex = 40;
     this.updateBCurrentMonitorButton.Text = "Update";
     this.updateBCurrentMonitorButton.Click += new System.EventHandler(this.updateBCurrentMonitorButton_Click);
     //
     // label20
     //
     this.label20.Location = new System.Drawing.Point(16, 120);
     this.label20.Name = "label20";
     this.label20.Size = new System.Drawing.Size(80, 23);
     this.label20.TabIndex = 39;
     this.label20.Text = "DB1 dB1 (uA)";
     //
     // label21
     //
     this.label21.Location = new System.Drawing.Point(16, 88);
     this.label21.Name = "label21";
     this.label21.Size = new System.Drawing.Size(80, 23);
     this.label21.TabIndex = 38;
     this.label21.Text = "DB1 dB0 (uA)";
     //
     // label22
     //
     this.label22.Location = new System.Drawing.Point(16, 56);
     this.label22.Name = "label22";
     this.label22.Size = new System.Drawing.Size(80, 23);
     this.label22.TabIndex = 37;
     this.label22.Text = "DB0 dB1 (uA)";
     //
     // label23
     //
     this.label23.Location = new System.Drawing.Point(16, 24);
     this.label23.Name = "label23";
     this.label23.Size = new System.Drawing.Size(80, 23);
     this.label23.TabIndex = 36;
     this.label23.Text = "DB0 dB0 (uA)";
     //
     // tabPage4
     //
     this.tabPage4.BackColor = System.Drawing.Color.Transparent;
     this.tabPage4.Controls.Add(this.UpdateVCOConversionFractionButton);
     this.tabPage4.Controls.Add(this.vcoConversionFractionTextBox);
     this.tabPage4.Controls.Add(this.label83);
     this.tabPage4.Controls.Add(this.groupBox25);
     this.tabPage4.Controls.Add(this.groupBox19);
     this.tabPage4.Controls.Add(this.groupBox18);
     this.tabPage4.Controls.Add(this.groupBox11);
     this.tabPage4.Controls.Add(this.groupBox10);
     this.tabPage4.Location = new System.Drawing.Point(4, 22);
     this.tabPage4.Name = "tabPage4";
     this.tabPage4.Size = new System.Drawing.Size(697, 575);
     this.tabPage4.TabIndex = 3;
     this.tabPage4.Text = "Dye Laser";
     //
     // UpdateVCOConversionFractionButton
     //
     this.UpdateVCOConversionFractionButton.Location = new System.Drawing.Point(290, 531);
     this.UpdateVCOConversionFractionButton.Name = "UpdateVCOConversionFractionButton";
     this.UpdateVCOConversionFractionButton.Size = new System.Drawing.Size(75, 23);
     this.UpdateVCOConversionFractionButton.TabIndex = 65;
     this.UpdateVCOConversionFractionButton.Text = "Update";
     this.UpdateVCOConversionFractionButton.Click += new System.EventHandler(this.UpdateVCOConversionFractionButton_Click);
     //
     // vcoConversionFractionTextBox
     //
     this.vcoConversionFractionTextBox.BackColor = System.Drawing.Color.Black;
     this.vcoConversionFractionTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.vcoConversionFractionTextBox.Location = new System.Drawing.Point(142, 533);
     this.vcoConversionFractionTextBox.Name = "vcoConversionFractionTextBox";
     this.vcoConversionFractionTextBox.ReadOnly = true;
     this.vcoConversionFractionTextBox.Size = new System.Drawing.Size(136, 20);
     this.vcoConversionFractionTextBox.TabIndex = 64;
     this.vcoConversionFractionTextBox.Text = "0";
     //
     // label83
     //
     this.label83.Location = new System.Drawing.Point(9, 536);
     this.label83.Name = "label83";
     this.label83.Size = new System.Drawing.Size(127, 23);
     this.label83.TabIndex = 63;
     this.label83.Text = "VCO conversion fraction";
     //
     // groupBox25
     //
     this.groupBox25.Controls.Add(this.pumpAOMTrackBar);
     this.groupBox25.Controls.Add(this.panel7);
     this.groupBox25.Controls.Add(this.pumpAOMStepTextBox);
     this.groupBox25.Controls.Add(this.label99);
     this.groupBox25.Controls.Add(this.pumpAOMVoltageTextBox);
     this.groupBox25.Controls.Add(this.updatePumpAOMButton);
     this.groupBox25.Controls.Add(this.label100);
     this.groupBox25.Controls.Add(this.pumpAOMFreqStepTextBox);
     this.groupBox25.Controls.Add(this.label88);
     this.groupBox25.Controls.Add(this.pumpAOMFreqPlusTextBox);
     this.groupBox25.Controls.Add(this.pumpAOMFreqCentreTextBox);
     this.groupBox25.Controls.Add(this.label95);
     this.groupBox25.Controls.Add(this.pumpAOMFreqMinusTextBox);
     this.groupBox25.Controls.Add(this.label96);
     this.groupBox25.Controls.Add(this.pumpAOMFreqUpdateButton);
     this.groupBox25.Controls.Add(this.label98);
     this.groupBox25.Location = new System.Drawing.Point(8, 353);
     this.groupBox25.Name = "groupBox25";
     this.groupBox25.Size = new System.Drawing.Size(529, 174);
     this.groupBox25.TabIndex = 56;
     this.groupBox25.TabStop = false;
     this.groupBox25.Text = "Pump AOM";
     //
     // pumpAOMTrackBar
     //
     this.pumpAOMTrackBar.Location = new System.Drawing.Point(9, 128);
     this.pumpAOMTrackBar.Maximum = 500;
     this.pumpAOMTrackBar.Name = "pumpAOMTrackBar";
     this.pumpAOMTrackBar.Size = new System.Drawing.Size(215, 45);
     this.pumpAOMTrackBar.TabIndex = 73;
     this.pumpAOMTrackBar.Scroll += new System.EventHandler(this.pumpAOMTrackBar_Scroll);
     //
     // panel7
     //
     this.panel7.Controls.Add(this.pumpAOMStepZeroButton);
     this.panel7.Controls.Add(this.pumpAOMStepPlusButton);
     this.panel7.Controls.Add(this.pumpAOMStepMinusButton);
     this.panel7.Location = new System.Drawing.Point(9, 76);
     this.panel7.Name = "panel7";
     this.panel7.Size = new System.Drawing.Size(116, 32);
     this.panel7.TabIndex = 72;
     //
     // pumpAOMStepZeroButton
     //
     this.pumpAOMStepZeroButton.AutoSize = true;
     this.pumpAOMStepZeroButton.Checked = true;
     this.pumpAOMStepZeroButton.Location = new System.Drawing.Point(77, 7);
     this.pumpAOMStepZeroButton.Name = "pumpAOMStepZeroButton";
     this.pumpAOMStepZeroButton.Size = new System.Drawing.Size(31, 17);
     this.pumpAOMStepZeroButton.TabIndex = 32;
     this.pumpAOMStepZeroButton.TabStop = true;
     this.pumpAOMStepZeroButton.Text = "0";
     this.pumpAOMStepZeroButton.UseVisualStyleBackColor = true;
     //
     // pumpAOMStepPlusButton
     //
     this.pumpAOMStepPlusButton.AutoSize = true;
     this.pumpAOMStepPlusButton.Location = new System.Drawing.Point(3, 6);
     this.pumpAOMStepPlusButton.Name = "pumpAOMStepPlusButton";
     this.pumpAOMStepPlusButton.Size = new System.Drawing.Size(31, 17);
     this.pumpAOMStepPlusButton.TabIndex = 32;
     this.pumpAOMStepPlusButton.Text = "+";
     this.pumpAOMStepPlusButton.UseVisualStyleBackColor = true;
     //
     // pumpAOMStepMinusButton
     //
     this.pumpAOMStepMinusButton.AutoSize = true;
     this.pumpAOMStepMinusButton.Location = new System.Drawing.Point(42, 7);
     this.pumpAOMStepMinusButton.Name = "pumpAOMStepMinusButton";
     this.pumpAOMStepMinusButton.Size = new System.Drawing.Size(28, 17);
     this.pumpAOMStepMinusButton.TabIndex = 32;
     this.pumpAOMStepMinusButton.Text = "-";
     this.pumpAOMStepMinusButton.UseVisualStyleBackColor = true;
     //
     // pumpAOMStepTextBox
     //
     this.pumpAOMStepTextBox.Location = new System.Drawing.Point(131, 45);
     this.pumpAOMStepTextBox.Name = "pumpAOMStepTextBox";
     this.pumpAOMStepTextBox.Size = new System.Drawing.Size(64, 20);
     this.pumpAOMStepTextBox.TabIndex = 71;
     this.pumpAOMStepTextBox.Text = "0";
     //
     // label99
     //
     this.label99.Location = new System.Drawing.Point(48, 48);
     this.label99.Name = "label99";
     this.label99.Size = new System.Drawing.Size(80, 23);
     this.label99.TabIndex = 70;
     this.label99.Text = "Step (V)";
     //
     // pumpAOMVoltageTextBox
     //
     this.pumpAOMVoltageTextBox.Location = new System.Drawing.Point(131, 22);
     this.pumpAOMVoltageTextBox.Name = "pumpAOMVoltageTextBox";
     this.pumpAOMVoltageTextBox.Size = new System.Drawing.Size(64, 20);
     this.pumpAOMVoltageTextBox.TabIndex = 69;
     this.pumpAOMVoltageTextBox.Text = "0";
     //
     // updatePumpAOMButton
     //
     this.updatePumpAOMButton.Location = new System.Drawing.Point(131, 79);
     this.updatePumpAOMButton.Name = "updatePumpAOMButton";
     this.updatePumpAOMButton.Size = new System.Drawing.Size(75, 23);
     this.updatePumpAOMButton.TabIndex = 68;
     this.updatePumpAOMButton.Text = "Update";
     this.updatePumpAOMButton.Click += new System.EventHandler(this.updatePumpAOMButton_Click);
     //
     // label100
     //
     this.label100.Location = new System.Drawing.Point(48, 25);
     this.label100.Name = "label100";
     this.label100.Size = new System.Drawing.Size(80, 23);
     this.label100.TabIndex = 67;
     this.label100.Text = "Voltage (V)";
     //
     // pumpAOMFreqStepTextBox
     //
     this.pumpAOMFreqStepTextBox.BackColor = System.Drawing.Color.Black;
     this.pumpAOMFreqStepTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.pumpAOMFreqStepTextBox.Location = new System.Drawing.Point(375, 99);
     this.pumpAOMFreqStepTextBox.Name = "pumpAOMFreqStepTextBox";
     this.pumpAOMFreqStepTextBox.ReadOnly = true;
     this.pumpAOMFreqStepTextBox.Size = new System.Drawing.Size(126, 20);
     this.pumpAOMFreqStepTextBox.TabIndex = 65;
     this.pumpAOMFreqStepTextBox.Text = "0";
     //
     // label88
     //
     this.label88.Location = new System.Drawing.Point(246, 102);
     this.label88.Name = "label88";
     this.label88.Size = new System.Drawing.Size(111, 23);
     this.label88.TabIndex = 63;
     this.label88.Text = "Step (Hz)";
     //
     // pumpAOMFreqPlusTextBox
     //
     this.pumpAOMFreqPlusTextBox.BackColor = System.Drawing.Color.Black;
     this.pumpAOMFreqPlusTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.pumpAOMFreqPlusTextBox.Location = new System.Drawing.Point(375, 45);
     this.pumpAOMFreqPlusTextBox.Name = "pumpAOMFreqPlusTextBox";
     this.pumpAOMFreqPlusTextBox.ReadOnly = true;
     this.pumpAOMFreqPlusTextBox.Size = new System.Drawing.Size(126, 20);
     this.pumpAOMFreqPlusTextBox.TabIndex = 66;
     this.pumpAOMFreqPlusTextBox.Text = "0";
     //
     // pumpAOMFreqCentreTextBox
     //
     this.pumpAOMFreqCentreTextBox.BackColor = System.Drawing.Color.Black;
     this.pumpAOMFreqCentreTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.pumpAOMFreqCentreTextBox.Location = new System.Drawing.Point(375, 73);
     this.pumpAOMFreqCentreTextBox.Name = "pumpAOMFreqCentreTextBox";
     this.pumpAOMFreqCentreTextBox.ReadOnly = true;
     this.pumpAOMFreqCentreTextBox.Size = new System.Drawing.Size(126, 20);
     this.pumpAOMFreqCentreTextBox.TabIndex = 62;
     this.pumpAOMFreqCentreTextBox.Text = "0";
     //
     // label95
     //
     this.label95.Location = new System.Drawing.Point(246, 48);
     this.label95.Name = "label95";
     this.label95.Size = new System.Drawing.Size(111, 23);
     this.label95.TabIndex = 64;
     this.label95.Text = "AOM freq high (Hz)";
     //
     // pumpAOMFreqMinusTextBox
     //
     this.pumpAOMFreqMinusTextBox.BackColor = System.Drawing.Color.Black;
     this.pumpAOMFreqMinusTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.pumpAOMFreqMinusTextBox.Location = new System.Drawing.Point(375, 19);
     this.pumpAOMFreqMinusTextBox.Name = "pumpAOMFreqMinusTextBox";
     this.pumpAOMFreqMinusTextBox.ReadOnly = true;
     this.pumpAOMFreqMinusTextBox.Size = new System.Drawing.Size(126, 20);
     this.pumpAOMFreqMinusTextBox.TabIndex = 61;
     this.pumpAOMFreqMinusTextBox.Text = "0";
     //
     // label96
     //
     this.label96.Location = new System.Drawing.Point(246, 76);
     this.label96.Name = "label96";
     this.label96.Size = new System.Drawing.Size(111, 23);
     this.label96.TabIndex = 58;
     this.label96.Text = "Centre (Hz)";
     //
     // pumpAOMFreqUpdateButton
     //
     this.pumpAOMFreqUpdateButton.Location = new System.Drawing.Point(331, 137);
     this.pumpAOMFreqUpdateButton.Name = "pumpAOMFreqUpdateButton";
     this.pumpAOMFreqUpdateButton.Size = new System.Drawing.Size(75, 23);
     this.pumpAOMFreqUpdateButton.TabIndex = 60;
     this.pumpAOMFreqUpdateButton.Text = "Update";
     this.pumpAOMFreqUpdateButton.Click += new System.EventHandler(this.pumpAOMFreqUpdateButton_Click);
     //
     // label98
     //
     this.label98.Location = new System.Drawing.Point(246, 22);
     this.label98.Name = "label98";
     this.label98.Size = new System.Drawing.Size(111, 23);
     this.label98.TabIndex = 59;
     this.label98.Text = "AOM freq low (Hz)";
     //
     // groupBox19
     //
     this.groupBox19.Controls.Add(this.I2AOMFreqStepTextBox);
     this.groupBox19.Controls.Add(this.label73);
     this.groupBox19.Controls.Add(this.I2AOMFreqMinusTextBox);
     this.groupBox19.Controls.Add(this.I2AOMFreqCentreTextBox);
     this.groupBox19.Controls.Add(this.label71);
     this.groupBox19.Controls.Add(this.I2AOMFreqPlusTextBox);
     this.groupBox19.Controls.Add(this.label72);
     this.groupBox19.Controls.Add(this.I2AOMFreqUpdateButton);
     this.groupBox19.Controls.Add(this.label69);
     this.groupBox19.Location = new System.Drawing.Point(238, 171);
     this.groupBox19.Name = "groupBox19";
     this.groupBox19.Size = new System.Drawing.Size(299, 176);
     this.groupBox19.TabIndex = 55;
     this.groupBox19.TabStop = false;
     this.groupBox19.Text = "Iodine lock";
     //
     // I2AOMFreqStepTextBox
     //
     this.I2AOMFreqStepTextBox.BackColor = System.Drawing.Color.Black;
     this.I2AOMFreqStepTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.I2AOMFreqStepTextBox.Location = new System.Drawing.Point(145, 109);
     this.I2AOMFreqStepTextBox.Name = "I2AOMFreqStepTextBox";
     this.I2AOMFreqStepTextBox.ReadOnly = true;
     this.I2AOMFreqStepTextBox.Size = new System.Drawing.Size(126, 20);
     this.I2AOMFreqStepTextBox.TabIndex = 56;
     this.I2AOMFreqStepTextBox.Text = "0";
     //
     // label73
     //
     this.label73.Location = new System.Drawing.Point(16, 112);
     this.label73.Name = "label73";
     this.label73.Size = new System.Drawing.Size(111, 23);
     this.label73.TabIndex = 55;
     this.label73.Text = "Step (Hz)";
     //
     // I2AOMFreqMinusTextBox
     //
     this.I2AOMFreqMinusTextBox.BackColor = System.Drawing.Color.Black;
     this.I2AOMFreqMinusTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.I2AOMFreqMinusTextBox.Location = new System.Drawing.Point(145, 55);
     this.I2AOMFreqMinusTextBox.Name = "I2AOMFreqMinusTextBox";
     this.I2AOMFreqMinusTextBox.ReadOnly = true;
     this.I2AOMFreqMinusTextBox.Size = new System.Drawing.Size(126, 20);
     this.I2AOMFreqMinusTextBox.TabIndex = 56;
     this.I2AOMFreqMinusTextBox.Text = "0";
     //
     // I2AOMFreqCentreTextBox
     //
     this.I2AOMFreqCentreTextBox.BackColor = System.Drawing.Color.Black;
     this.I2AOMFreqCentreTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.I2AOMFreqCentreTextBox.Location = new System.Drawing.Point(145, 83);
     this.I2AOMFreqCentreTextBox.Name = "I2AOMFreqCentreTextBox";
     this.I2AOMFreqCentreTextBox.ReadOnly = true;
     this.I2AOMFreqCentreTextBox.Size = new System.Drawing.Size(126, 20);
     this.I2AOMFreqCentreTextBox.TabIndex = 54;
     this.I2AOMFreqCentreTextBox.Text = "0";
     //
     // label71
     //
     this.label71.Location = new System.Drawing.Point(16, 58);
     this.label71.Name = "label71";
     this.label71.Size = new System.Drawing.Size(111, 23);
     this.label71.TabIndex = 55;
     this.label71.Text = "AOM freq high (Hz)";
     //
     // I2AOMFreqPlusTextBox
     //
     this.I2AOMFreqPlusTextBox.BackColor = System.Drawing.Color.Black;
     this.I2AOMFreqPlusTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.I2AOMFreqPlusTextBox.Location = new System.Drawing.Point(145, 29);
     this.I2AOMFreqPlusTextBox.Name = "I2AOMFreqPlusTextBox";
     this.I2AOMFreqPlusTextBox.ReadOnly = true;
     this.I2AOMFreqPlusTextBox.Size = new System.Drawing.Size(126, 20);
     this.I2AOMFreqPlusTextBox.TabIndex = 54;
     this.I2AOMFreqPlusTextBox.Text = "0";
     //
     // label72
     //
     this.label72.Location = new System.Drawing.Point(16, 86);
     this.label72.Name = "label72";
     this.label72.Size = new System.Drawing.Size(111, 23);
     this.label72.TabIndex = 52;
     this.label72.Text = "Centre (Hz)";
     //
     // I2AOMFreqUpdateButton
     //
     this.I2AOMFreqUpdateButton.Location = new System.Drawing.Point(101, 147);
     this.I2AOMFreqUpdateButton.Name = "I2AOMFreqUpdateButton";
     this.I2AOMFreqUpdateButton.Size = new System.Drawing.Size(75, 23);
     this.I2AOMFreqUpdateButton.TabIndex = 53;
     this.I2AOMFreqUpdateButton.Text = "Update";
     this.I2AOMFreqUpdateButton.Click += new System.EventHandler(this.I2AOMFreqUpdateButton_Click);
     //
     // label69
     //
     this.label69.Location = new System.Drawing.Point(16, 32);
     this.label69.Name = "label69";
     this.label69.Size = new System.Drawing.Size(111, 23);
     this.label69.TabIndex = 52;
     this.label69.Text = "AOM freq low (Hz)";
     //
     // groupBox18
     //
     this.groupBox18.Controls.Add(this.FLPZTVtrackBar);
     this.groupBox18.Controls.Add(this.panel5);
     this.groupBox18.Controls.Add(this.FLPZTStepTextBox);
     this.groupBox18.Controls.Add(this.label70);
     this.groupBox18.Controls.Add(this.FLPZTVTextBox);
     this.groupBox18.Controls.Add(this.UpdateFLPZTVButton);
     this.groupBox18.Controls.Add(this.label68);
     this.groupBox18.Location = new System.Drawing.Point(238, 20);
     this.groupBox18.Name = "groupBox18";
     this.groupBox18.Size = new System.Drawing.Size(299, 145);
     this.groupBox18.TabIndex = 48;
     this.groupBox18.TabStop = false;
     this.groupBox18.Text = "Laser frequency";
     //
     // FLPZTVtrackBar
     //
     this.FLPZTVtrackBar.Location = new System.Drawing.Point(6, 94);
     this.FLPZTVtrackBar.Maximum = 1000;
     this.FLPZTVtrackBar.Name = "FLPZTVtrackBar";
     this.FLPZTVtrackBar.Size = new System.Drawing.Size(284, 45);
     this.FLPZTVtrackBar.TabIndex = 49;
     this.FLPZTVtrackBar.Scroll += new System.EventHandler(this.FLPZTVtrackBar_Scroll);
     //
     // panel5
     //
     this.panel5.Controls.Add(this.FLPZTStepZeroButton);
     this.panel5.Controls.Add(this.FLPZTStepPlusButton);
     this.panel5.Controls.Add(this.FLPZTStepMinusButton);
     this.panel5.Location = new System.Drawing.Point(182, 20);
     this.panel5.Name = "panel5";
     this.panel5.Size = new System.Drawing.Size(111, 32);
     this.panel5.TabIndex = 48;
     //
     // FLPZTStepZeroButton
     //
     this.FLPZTStepZeroButton.AutoSize = true;
     this.FLPZTStepZeroButton.Checked = true;
     this.FLPZTStepZeroButton.Location = new System.Drawing.Point(77, 7);
     this.FLPZTStepZeroButton.Name = "FLPZTStepZeroButton";
     this.FLPZTStepZeroButton.Size = new System.Drawing.Size(31, 17);
     this.FLPZTStepZeroButton.TabIndex = 32;
     this.FLPZTStepZeroButton.TabStop = true;
     this.FLPZTStepZeroButton.Text = "0";
     this.FLPZTStepZeroButton.UseVisualStyleBackColor = true;
     //
     // FLPZTStepPlusButton
     //
     this.FLPZTStepPlusButton.AutoSize = true;
     this.FLPZTStepPlusButton.Location = new System.Drawing.Point(3, 6);
     this.FLPZTStepPlusButton.Name = "FLPZTStepPlusButton";
     this.FLPZTStepPlusButton.Size = new System.Drawing.Size(31, 17);
     this.FLPZTStepPlusButton.TabIndex = 32;
     this.FLPZTStepPlusButton.Text = "+";
     this.FLPZTStepPlusButton.UseVisualStyleBackColor = true;
     //
     // FLPZTStepMinusButton
     //
     this.FLPZTStepMinusButton.AutoSize = true;
     this.FLPZTStepMinusButton.Location = new System.Drawing.Point(42, 7);
     this.FLPZTStepMinusButton.Name = "FLPZTStepMinusButton";
     this.FLPZTStepMinusButton.Size = new System.Drawing.Size(28, 17);
     this.FLPZTStepMinusButton.TabIndex = 32;
     this.FLPZTStepMinusButton.Text = "-";
     this.FLPZTStepMinusButton.UseVisualStyleBackColor = true;
     //
     // FLPZTStepTextBox
     //
     this.FLPZTStepTextBox.Location = new System.Drawing.Point(96, 48);
     this.FLPZTStepTextBox.Name = "FLPZTStepTextBox";
     this.FLPZTStepTextBox.Size = new System.Drawing.Size(64, 20);
     this.FLPZTStepTextBox.TabIndex = 47;
     this.FLPZTStepTextBox.Text = "0";
     //
     // label70
     //
     this.label70.Location = new System.Drawing.Point(16, 48);
     this.label70.Name = "label70";
     this.label70.Size = new System.Drawing.Size(80, 23);
     this.label70.TabIndex = 46;
     this.label70.Text = "Step (V)";
     //
     // FLPZTVTextBox
     //
     this.FLPZTVTextBox.Location = new System.Drawing.Point(96, 24);
     this.FLPZTVTextBox.Name = "FLPZTVTextBox";
     this.FLPZTVTextBox.Size = new System.Drawing.Size(64, 20);
     this.FLPZTVTextBox.TabIndex = 45;
     this.FLPZTVTextBox.Text = "0";
     //
     // UpdateFLPZTVButton
     //
     this.UpdateFLPZTVButton.Location = new System.Drawing.Point(215, 67);
     this.UpdateFLPZTVButton.Name = "UpdateFLPZTVButton";
     this.UpdateFLPZTVButton.Size = new System.Drawing.Size(75, 23);
     this.UpdateFLPZTVButton.TabIndex = 40;
     this.UpdateFLPZTVButton.Text = "Update";
     this.UpdateFLPZTVButton.Click += new System.EventHandler(this.UpdateFLPZTVButton_Click);
     //
     // label68
     //
     this.label68.Location = new System.Drawing.Point(16, 24);
     this.label68.Name = "label68";
     this.label68.Size = new System.Drawing.Size(80, 23);
     this.label68.TabIndex = 36;
     this.label68.Text = "Voltage (V)";
     //
     // groupBox11
     //
     this.groupBox11.Controls.Add(this.updateLaserPhotodiodesButton);
     this.groupBox11.Controls.Add(this.pumpMonitorTextBox);
     this.groupBox11.Controls.Add(this.pump2MonitorTextBox);
     this.groupBox11.Controls.Add(this.probeMonitorTextBox);
     this.groupBox11.Controls.Add(this.label29);
     this.groupBox11.Controls.Add(this.label30);
     this.groupBox11.Controls.Add(this.label31);
     this.groupBox11.Location = new System.Drawing.Point(8, 171);
     this.groupBox11.Name = "groupBox11";
     this.groupBox11.Size = new System.Drawing.Size(224, 176);
     this.groupBox11.TabIndex = 1;
     this.groupBox11.TabStop = false;
     this.groupBox11.Text = "Photodiodes";
     //
     // updateLaserPhotodiodesButton
     //
     this.updateLaserPhotodiodesButton.Location = new System.Drawing.Point(72, 136);
     this.updateLaserPhotodiodesButton.Name = "updateLaserPhotodiodesButton";
     this.updateLaserPhotodiodesButton.Size = new System.Drawing.Size(75, 23);
     this.updateLaserPhotodiodesButton.TabIndex = 52;
     this.updateLaserPhotodiodesButton.Text = "Update";
     this.updateLaserPhotodiodesButton.Click += new System.EventHandler(this.updateLaserPhotodiodesButton_Click);
     //
     // pumpMonitorTextBox
     //
     this.pumpMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.pumpMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.pumpMonitorTextBox.Location = new System.Drawing.Point(120, 64);
     this.pumpMonitorTextBox.Name = "pumpMonitorTextBox";
     this.pumpMonitorTextBox.ReadOnly = true;
     this.pumpMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.pumpMonitorTextBox.TabIndex = 51;
     this.pumpMonitorTextBox.Text = "0";
     //
     // pump2MonitorTextBox
     //
     this.pump2MonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.pump2MonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.pump2MonitorTextBox.Location = new System.Drawing.Point(120, 96);
     this.pump2MonitorTextBox.Name = "pump2MonitorTextBox";
     this.pump2MonitorTextBox.ReadOnly = true;
     this.pump2MonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.pump2MonitorTextBox.TabIndex = 50;
     this.pump2MonitorTextBox.Text = "0";
     //
     // probeMonitorTextBox
     //
     this.probeMonitorTextBox.BackColor = System.Drawing.Color.Black;
     this.probeMonitorTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.probeMonitorTextBox.Location = new System.Drawing.Point(120, 32);
     this.probeMonitorTextBox.Name = "probeMonitorTextBox";
     this.probeMonitorTextBox.ReadOnly = true;
     this.probeMonitorTextBox.Size = new System.Drawing.Size(64, 20);
     this.probeMonitorTextBox.TabIndex = 49;
     this.probeMonitorTextBox.Text = "0";
     //
     // label29
     //
     this.label29.Location = new System.Drawing.Point(32, 96);
     this.label29.Name = "label29";
     this.label29.Size = new System.Drawing.Size(80, 23);
     this.label29.TabIndex = 48;
     this.label29.Text = "Pump 2 (V)";
     //
     // label30
     //
     this.label30.Location = new System.Drawing.Point(32, 64);
     this.label30.Name = "label30";
     this.label30.Size = new System.Drawing.Size(80, 23);
     this.label30.TabIndex = 47;
     this.label30.Text = "Pump (V)";
     //
     // label31
     //
     this.label31.Location = new System.Drawing.Point(32, 32);
     this.label31.Name = "label31";
     this.label31.Size = new System.Drawing.Size(80, 23);
     this.label31.TabIndex = 46;
     this.label31.Text = "Probe (V)";
     //
     // groupBox10
     //
     this.groupBox10.Controls.Add(this.argonShutterCheckBox);
     this.groupBox10.Controls.Add(this.label32);
     this.groupBox10.Controls.Add(this.probeShutterCheck);
     this.groupBox10.Controls.Add(this.pumpShutterCheck);
     this.groupBox10.Location = new System.Drawing.Point(8, 16);
     this.groupBox10.Name = "groupBox10";
     this.groupBox10.Size = new System.Drawing.Size(224, 149);
     this.groupBox10.TabIndex = 0;
     this.groupBox10.TabStop = false;
     this.groupBox10.Text = "Shutters";
     //
     // argonShutterCheckBox
     //
     this.argonShutterCheckBox.Location = new System.Drawing.Point(98, 56);
     this.argonShutterCheckBox.Name = "argonShutterCheckBox";
     this.argonShutterCheckBox.Size = new System.Drawing.Size(72, 24);
     this.argonShutterCheckBox.TabIndex = 25;
     this.argonShutterCheckBox.Text = "Ar+";
     this.argonShutterCheckBox.CheckedChanged += new System.EventHandler(this.argonShutterCheckBox_CheckedChanged);
     //
     // label32
     //
     this.label32.Location = new System.Drawing.Point(95, 29);
     this.label32.Name = "label32";
     this.label32.Size = new System.Drawing.Size(105, 43);
     this.label32.TabIndex = 24;
     this.label32.Text = "Checked is blocked.";
     //
     // probeShutterCheck
     //
     this.probeShutterCheck.Location = new System.Drawing.Point(24, 56);
     this.probeShutterCheck.Name = "probeShutterCheck";
     this.probeShutterCheck.Size = new System.Drawing.Size(72, 24);
     this.probeShutterCheck.TabIndex = 23;
     this.probeShutterCheck.Text = "Probe";
     this.probeShutterCheck.CheckedChanged += new System.EventHandler(this.probeShutterCheck_CheckedChanged);
     //
     // pumpShutterCheck
     //
     this.pumpShutterCheck.Location = new System.Drawing.Point(24, 24);
     this.pumpShutterCheck.Name = "pumpShutterCheck";
     this.pumpShutterCheck.Size = new System.Drawing.Size(72, 24);
     this.pumpShutterCheck.TabIndex = 22;
     this.pumpShutterCheck.Text = "Pump";
     this.pumpShutterCheck.CheckedChanged += new System.EventHandler(this.pumpShutterCheck_CheckedChanged);
     //
     // tabPage8
     //
     this.tabPage8.BackColor = System.Drawing.Color.Transparent;
     this.tabPage8.Controls.Add(this.groupBox36);
     this.tabPage8.Controls.Add(this.groupBox28);
     this.tabPage8.Controls.Add(this.groupBox27);
     this.tabPage8.Controls.Add(this.groupBox26);
     this.tabPage8.Location = new System.Drawing.Point(4, 22);
     this.tabPage8.Name = "tabPage8";
     this.tabPage8.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage8.Size = new System.Drawing.Size(697, 575);
     this.tabPage8.TabIndex = 7;
     this.tabPage8.Text = "Diode Laser";
     //
     // groupBox36
     //
     this.groupBox36.Controls.Add(this.flAOMFreqStepTextBox);
     this.groupBox36.Controls.Add(this.label119);
     this.groupBox36.Controls.Add(this.flAOMFreqPlusTextBox);
     this.groupBox36.Controls.Add(this.flAOMFreqCentreTextBox);
     this.groupBox36.Controls.Add(this.label120);
     this.groupBox36.Controls.Add(this.flAOMFreqMinusTextBox);
     this.groupBox36.Controls.Add(this.label121);
     this.groupBox36.Controls.Add(this.flAOMFreqUpdateButton);
     this.groupBox36.Controls.Add(this.label122);
     this.groupBox36.Controls.Add(this.panel8);
     this.groupBox36.Controls.Add(this.flAOMStepTextBox);
     this.groupBox36.Controls.Add(this.label117);
     this.groupBox36.Controls.Add(this.flAOMVoltageTextBox);
     this.groupBox36.Controls.Add(this.UpdateFLAOMButton);
     this.groupBox36.Controls.Add(this.label118);
     this.groupBox36.Location = new System.Drawing.Point(9, 409);
     this.groupBox36.Name = "groupBox36";
     this.groupBox36.Size = new System.Drawing.Size(393, 148);
     this.groupBox36.TabIndex = 49;
     this.groupBox36.TabStop = false;
     this.groupBox36.Text = "Stabilising AOM";
     //
     // flAOMFreqStepTextBox
     //
     this.flAOMFreqStepTextBox.BackColor = System.Drawing.Color.Black;
     this.flAOMFreqStepTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.flAOMFreqStepTextBox.Location = new System.Drawing.Point(255, 95);
     this.flAOMFreqStepTextBox.Name = "flAOMFreqStepTextBox";
     this.flAOMFreqStepTextBox.ReadOnly = true;
     this.flAOMFreqStepTextBox.Size = new System.Drawing.Size(126, 20);
     this.flAOMFreqStepTextBox.TabIndex = 74;
     this.flAOMFreqStepTextBox.Text = "0";
     //
     // label119
     //
     this.label119.Location = new System.Drawing.Point(151, 98);
     this.label119.Name = "label119";
     this.label119.Size = new System.Drawing.Size(96, 23);
     this.label119.TabIndex = 72;
     this.label119.Text = "Step (Hz)";
     //
     // flAOMFreqPlusTextBox
     //
     this.flAOMFreqPlusTextBox.BackColor = System.Drawing.Color.Black;
     this.flAOMFreqPlusTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.flAOMFreqPlusTextBox.Location = new System.Drawing.Point(255, 41);
     this.flAOMFreqPlusTextBox.Name = "flAOMFreqPlusTextBox";
     this.flAOMFreqPlusTextBox.ReadOnly = true;
     this.flAOMFreqPlusTextBox.Size = new System.Drawing.Size(126, 20);
     this.flAOMFreqPlusTextBox.TabIndex = 75;
     this.flAOMFreqPlusTextBox.Text = "0";
     //
     // flAOMFreqCentreTextBox
     //
     this.flAOMFreqCentreTextBox.BackColor = System.Drawing.Color.Black;
     this.flAOMFreqCentreTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.flAOMFreqCentreTextBox.Location = new System.Drawing.Point(255, 69);
     this.flAOMFreqCentreTextBox.Name = "flAOMFreqCentreTextBox";
     this.flAOMFreqCentreTextBox.ReadOnly = true;
     this.flAOMFreqCentreTextBox.Size = new System.Drawing.Size(126, 20);
     this.flAOMFreqCentreTextBox.TabIndex = 71;
     this.flAOMFreqCentreTextBox.Text = "0";
     //
     // label120
     //
     this.label120.Location = new System.Drawing.Point(151, 44);
     this.label120.Name = "label120";
     this.label120.Size = new System.Drawing.Size(98, 23);
     this.label120.TabIndex = 73;
     this.label120.Text = "AOM freq high (Hz)";
     //
     // flAOMFreqMinusTextBox
     //
     this.flAOMFreqMinusTextBox.BackColor = System.Drawing.Color.Black;
     this.flAOMFreqMinusTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.flAOMFreqMinusTextBox.Location = new System.Drawing.Point(255, 15);
     this.flAOMFreqMinusTextBox.Name = "flAOMFreqMinusTextBox";
     this.flAOMFreqMinusTextBox.ReadOnly = true;
     this.flAOMFreqMinusTextBox.Size = new System.Drawing.Size(126, 20);
     this.flAOMFreqMinusTextBox.TabIndex = 70;
     this.flAOMFreqMinusTextBox.Text = "0";
     //
     // label121
     //
     this.label121.Location = new System.Drawing.Point(151, 72);
     this.label121.Name = "label121";
     this.label121.Size = new System.Drawing.Size(96, 23);
     this.label121.TabIndex = 67;
     this.label121.Text = "Centre (Hz)";
     //
     // flAOMFreqUpdateButton
     //
     this.flAOMFreqUpdateButton.Location = new System.Drawing.Point(305, 121);
     this.flAOMFreqUpdateButton.Name = "flAOMFreqUpdateButton";
     this.flAOMFreqUpdateButton.Size = new System.Drawing.Size(75, 23);
     this.flAOMFreqUpdateButton.TabIndex = 69;
     this.flAOMFreqUpdateButton.Text = "Update";
     this.flAOMFreqUpdateButton.Click += new System.EventHandler(this.flAOMFreqUpdateButton_Click);
     //
     // label122
     //
     this.label122.Location = new System.Drawing.Point(150, 18);
     this.label122.Name = "label122";
     this.label122.Size = new System.Drawing.Size(99, 23);
     this.label122.TabIndex = 68;
     this.label122.Text = "AOM freq low (Hz)";
     //
     // panel8
     //
     this.panel8.Controls.Add(this.flAOMStepZeroButton);
     this.panel8.Controls.Add(this.flAOMStepPlusButton);
     this.panel8.Controls.Add(this.flAOMStepMinusButton);
     this.panel8.Location = new System.Drawing.Point(9, 67);
     this.panel8.Name = "panel8";
     this.panel8.Size = new System.Drawing.Size(111, 32);
     this.panel8.TabIndex = 48;
     //
     // flAOMStepZeroButton
     //
     this.flAOMStepZeroButton.AutoSize = true;
     this.flAOMStepZeroButton.Checked = true;
     this.flAOMStepZeroButton.Location = new System.Drawing.Point(77, 7);
     this.flAOMStepZeroButton.Name = "flAOMStepZeroButton";
     this.flAOMStepZeroButton.Size = new System.Drawing.Size(31, 17);
     this.flAOMStepZeroButton.TabIndex = 32;
     this.flAOMStepZeroButton.TabStop = true;
     this.flAOMStepZeroButton.Text = "0";
     this.flAOMStepZeroButton.UseVisualStyleBackColor = true;
     //
     // flAOMStepPlusButton
     //
     this.flAOMStepPlusButton.AutoSize = true;
     this.flAOMStepPlusButton.Location = new System.Drawing.Point(3, 6);
     this.flAOMStepPlusButton.Name = "flAOMStepPlusButton";
     this.flAOMStepPlusButton.Size = new System.Drawing.Size(31, 17);
     this.flAOMStepPlusButton.TabIndex = 32;
     this.flAOMStepPlusButton.Text = "+";
     this.flAOMStepPlusButton.UseVisualStyleBackColor = true;
     //
     // flAOMStepMinusButton
     //
     this.flAOMStepMinusButton.AutoSize = true;
     this.flAOMStepMinusButton.Location = new System.Drawing.Point(42, 7);
     this.flAOMStepMinusButton.Name = "flAOMStepMinusButton";
     this.flAOMStepMinusButton.Size = new System.Drawing.Size(28, 17);
     this.flAOMStepMinusButton.TabIndex = 32;
     this.flAOMStepMinusButton.Text = "-";
     this.flAOMStepMinusButton.UseVisualStyleBackColor = true;
     //
     // flAOMStepTextBox
     //
     this.flAOMStepTextBox.Location = new System.Drawing.Point(68, 41);
     this.flAOMStepTextBox.Name = "flAOMStepTextBox";
     this.flAOMStepTextBox.Size = new System.Drawing.Size(64, 20);
     this.flAOMStepTextBox.TabIndex = 47;
     this.flAOMStepTextBox.Text = "0";
     //
     // label117
     //
     this.label117.Location = new System.Drawing.Point(6, 44);
     this.label117.Name = "label117";
     this.label117.Size = new System.Drawing.Size(80, 23);
     this.label117.TabIndex = 46;
     this.label117.Text = "Step (V)";
     //
     // flAOMVoltageTextBox
     //
     this.flAOMVoltageTextBox.Location = new System.Drawing.Point(68, 21);
     this.flAOMVoltageTextBox.Name = "flAOMVoltageTextBox";
     this.flAOMVoltageTextBox.Size = new System.Drawing.Size(64, 20);
     this.flAOMVoltageTextBox.TabIndex = 45;
     this.flAOMVoltageTextBox.Text = "0";
     //
     // UpdateFLAOMButton
     //
     this.UpdateFLAOMButton.Location = new System.Drawing.Point(24, 121);
     this.UpdateFLAOMButton.Name = "UpdateFLAOMButton";
     this.UpdateFLAOMButton.Size = new System.Drawing.Size(75, 23);
     this.UpdateFLAOMButton.TabIndex = 40;
     this.UpdateFLAOMButton.Text = "Update";
     this.UpdateFLAOMButton.Click += new System.EventHandler(this.UpdateFLAOMButton_Click);
     //
     // label118
     //
     this.label118.Location = new System.Drawing.Point(6, 23);
     this.label118.Name = "label118";
     this.label118.Size = new System.Drawing.Size(80, 23);
     this.label118.TabIndex = 36;
     this.label118.Text = "Voltage (V)";
     //
     // groupBox28
     //
     this.groupBox28.Controls.Add(this.groupBox30);
     this.groupBox28.Controls.Add(this.groupBox31);
     this.groupBox28.Controls.Add(this.groupBox29);
     this.groupBox28.Location = new System.Drawing.Point(408, 218);
     this.groupBox28.Name = "groupBox28";
     this.groupBox28.Size = new System.Drawing.Size(283, 252);
     this.groupBox28.TabIndex = 2;
     this.groupBox28.TabStop = false;
     this.groupBox28.Text = "Fibre Amplifier";
     //
     // groupBox30
     //
     this.groupBox30.Controls.Add(this.fibreAmpEnableLED);
     this.groupBox30.Controls.Add(this.fibreAmpEnableSwitch);
     this.groupBox30.Location = new System.Drawing.Point(9, 18);
     this.groupBox30.Name = "groupBox30";
     this.groupBox30.Size = new System.Drawing.Size(124, 79);
     this.groupBox30.TabIndex = 50;
     this.groupBox30.TabStop = false;
     this.groupBox30.Text = "On/Off";
     //
     // fibreAmpEnableLED
     //
     this.fibreAmpEnableLED.LedStyle = NationalInstruments.UI.LedStyle.Round3D;
     this.fibreAmpEnableLED.Location = new System.Drawing.Point(9, 20);
     this.fibreAmpEnableLED.Name = "fibreAmpEnableLED";
     this.fibreAmpEnableLED.OffColor = System.Drawing.Color.Black;
     this.fibreAmpEnableLED.Size = new System.Drawing.Size(47, 49);
     this.fibreAmpEnableLED.TabIndex = 51;
     //
     // fibreAmpEnableSwitch
     //
     this.fibreAmpEnableSwitch.Location = new System.Drawing.Point(60, -4);
     this.fibreAmpEnableSwitch.Name = "fibreAmpEnableSwitch";
     this.fibreAmpEnableSwitch.Size = new System.Drawing.Size(64, 96);
     this.fibreAmpEnableSwitch.SwitchStyle = NationalInstruments.UI.SwitchStyle.VerticalToggle3D;
     this.fibreAmpEnableSwitch.TabIndex = 50;
     this.fibreAmpEnableSwitch.StateChanged += new NationalInstruments.UI.ActionEventHandler(this.fibreAmpEnableSwitch_StateChanged);
     //
     // groupBox31
     //
     this.groupBox31.Controls.Add(this.updateFibreAmpPwrButton);
     this.groupBox31.Controls.Add(this.fibreAmpPwrTextBox);
     this.groupBox31.Location = new System.Drawing.Point(149, 19);
     this.groupBox31.Name = "groupBox31";
     this.groupBox31.Size = new System.Drawing.Size(124, 76);
     this.groupBox31.TabIndex = 48;
     this.groupBox31.TabStop = false;
     this.groupBox31.Text = "Power";
     //
     // updateFibreAmpPwrButton
     //
     this.updateFibreAmpPwrButton.Location = new System.Drawing.Point(6, 45);
     this.updateFibreAmpPwrButton.Name = "updateFibreAmpPwrButton";
     this.updateFibreAmpPwrButton.Size = new System.Drawing.Size(100, 23);
     this.updateFibreAmpPwrButton.TabIndex = 60;
     this.updateFibreAmpPwrButton.Text = "Update";
     this.updateFibreAmpPwrButton.UseVisualStyleBackColor = true;
     this.updateFibreAmpPwrButton.Click += new System.EventHandler(this.updateFibreAmpPwrButton_Click);
     //
     // fibreAmpPwrTextBox
     //
     this.fibreAmpPwrTextBox.BackColor = System.Drawing.Color.LimeGreen;
     this.fibreAmpPwrTextBox.Location = new System.Drawing.Point(6, 19);
     this.fibreAmpPwrTextBox.Name = "fibreAmpPwrTextBox";
     this.fibreAmpPwrTextBox.Size = new System.Drawing.Size(100, 20);
     this.fibreAmpPwrTextBox.TabIndex = 49;
     this.fibreAmpPwrTextBox.Text = "0";
     //
     // groupBox29
     //
     this.groupBox29.Controls.Add(this.fibreAmpPowerFaultLED);
     this.groupBox29.Controls.Add(this.fibreAmpTempFaultLED);
     this.groupBox29.Controls.Add(this.fibreAmpBackReflectFaultLED);
     this.groupBox29.Controls.Add(this.fibreAmpSeedFaultLED);
     this.groupBox29.Controls.Add(this.fibreAmpMasterFaultLED);
     this.groupBox29.Controls.Add(this.faultCheckButton);
     this.groupBox29.Controls.Add(this.label93);
     this.groupBox29.Controls.Add(this.label92);
     this.groupBox29.Controls.Add(this.label91);
     this.groupBox29.Controls.Add(this.label90);
     this.groupBox29.Controls.Add(this.label89);
     this.groupBox29.Location = new System.Drawing.Point(9, 103);
     this.groupBox29.Name = "groupBox29";
     this.groupBox29.Size = new System.Drawing.Size(264, 142);
     this.groupBox29.TabIndex = 1;
     this.groupBox29.TabStop = false;
     this.groupBox29.Text = "Faults";
     //
     // fibreAmpPowerFaultLED
     //
     this.fibreAmpPowerFaultLED.LedStyle = NationalInstruments.UI.LedStyle.Round3D;
     this.fibreAmpPowerFaultLED.Location = new System.Drawing.Point(214, 34);
     this.fibreAmpPowerFaultLED.Name = "fibreAmpPowerFaultLED";
     this.fibreAmpPowerFaultLED.OffColor = System.Drawing.Color.Black;
     this.fibreAmpPowerFaultLED.OnColor = System.Drawing.Color.Red;
     this.fibreAmpPowerFaultLED.Size = new System.Drawing.Size(38, 40);
     this.fibreAmpPowerFaultLED.TabIndex = 66;
     //
     // fibreAmpTempFaultLED
     //
     this.fibreAmpTempFaultLED.LedStyle = NationalInstruments.UI.LedStyle.Round3D;
     this.fibreAmpTempFaultLED.Location = new System.Drawing.Point(166, 34);
     this.fibreAmpTempFaultLED.Name = "fibreAmpTempFaultLED";
     this.fibreAmpTempFaultLED.OffColor = System.Drawing.Color.Black;
     this.fibreAmpTempFaultLED.OnColor = System.Drawing.Color.Red;
     this.fibreAmpTempFaultLED.Size = new System.Drawing.Size(38, 40);
     this.fibreAmpTempFaultLED.TabIndex = 65;
     //
     // fibreAmpBackReflectFaultLED
     //
     this.fibreAmpBackReflectFaultLED.LedStyle = NationalInstruments.UI.LedStyle.Round3D;
     this.fibreAmpBackReflectFaultLED.Location = new System.Drawing.Point(112, 34);
     this.fibreAmpBackReflectFaultLED.Name = "fibreAmpBackReflectFaultLED";
     this.fibreAmpBackReflectFaultLED.OffColor = System.Drawing.Color.Black;
     this.fibreAmpBackReflectFaultLED.OnColor = System.Drawing.Color.Red;
     this.fibreAmpBackReflectFaultLED.Size = new System.Drawing.Size(38, 40);
     this.fibreAmpBackReflectFaultLED.TabIndex = 64;
     //
     // fibreAmpSeedFaultLED
     //
     this.fibreAmpSeedFaultLED.LedStyle = NationalInstruments.UI.LedStyle.Round3D;
     this.fibreAmpSeedFaultLED.Location = new System.Drawing.Point(60, 34);
     this.fibreAmpSeedFaultLED.Name = "fibreAmpSeedFaultLED";
     this.fibreAmpSeedFaultLED.OffColor = System.Drawing.Color.Black;
     this.fibreAmpSeedFaultLED.OnColor = System.Drawing.Color.Red;
     this.fibreAmpSeedFaultLED.Size = new System.Drawing.Size(38, 40);
     this.fibreAmpSeedFaultLED.TabIndex = 63;
     //
     // fibreAmpMasterFaultLED
     //
     this.fibreAmpMasterFaultLED.LedStyle = NationalInstruments.UI.LedStyle.Round3D;
     this.fibreAmpMasterFaultLED.Location = new System.Drawing.Point(16, 34);
     this.fibreAmpMasterFaultLED.Name = "fibreAmpMasterFaultLED";
     this.fibreAmpMasterFaultLED.OffColor = System.Drawing.Color.Black;
     this.fibreAmpMasterFaultLED.OnColor = System.Drawing.Color.Red;
     this.fibreAmpMasterFaultLED.Size = new System.Drawing.Size(38, 40);
     this.fibreAmpMasterFaultLED.TabIndex = 62;
     //
     // faultCheckButton
     //
     this.faultCheckButton.Location = new System.Drawing.Point(169, 111);
     this.faultCheckButton.Name = "faultCheckButton";
     this.faultCheckButton.Size = new System.Drawing.Size(89, 23);
     this.faultCheckButton.TabIndex = 61;
     this.faultCheckButton.Text = "Check for faults";
     this.faultCheckButton.UseVisualStyleBackColor = true;
     this.faultCheckButton.Click += new System.EventHandler(this.faultCheckButton_Click);
     //
     // label93
     //
     this.label93.Location = new System.Drawing.Point(218, 77);
     this.label93.Name = "label93";
     this.label93.Size = new System.Drawing.Size(47, 31);
     this.label93.TabIndex = 49;
     this.label93.Text = "Power supply";
     //
     // label92
     //
     this.label92.Location = new System.Drawing.Point(166, 77);
     this.label92.Name = "label92";
     this.label92.Size = new System.Drawing.Size(38, 18);
     this.label92.TabIndex = 48;
     this.label92.Text = "Temp";
     //
     // label91
     //
     this.label91.Location = new System.Drawing.Point(112, 77);
     this.label91.Name = "label91";
     this.label91.Size = new System.Drawing.Size(59, 31);
     this.label91.TabIndex = 47;
     this.label91.Text = "Back reflection";
     //
     // label90
     //
     this.label90.Location = new System.Drawing.Point(67, 77);
     this.label90.Name = "label90";
     this.label90.Size = new System.Drawing.Size(39, 18);
     this.label90.TabIndex = 46;
     this.label90.Text = "Seed";
     //
     // label89
     //
     this.label89.Location = new System.Drawing.Point(13, 77);
     this.label89.Name = "label89";
     this.label89.Size = new System.Drawing.Size(41, 18);
     this.label89.TabIndex = 45;
     this.label89.Text = "Master";
     //
     // groupBox27
     //
     this.groupBox27.Controls.Add(this.flPZT2TempCurButton);
     this.groupBox27.Controls.Add(this.flPZT2CurTextBox);
     this.groupBox27.Controls.Add(this.flPZT2TempUpdateButton);
     this.groupBox27.Controls.Add(this.label116);
     this.groupBox27.Controls.Add(this.flPZT2TempTextBox);
     this.groupBox27.Controls.Add(this.label115);
     this.groupBox27.Controls.Add(this.flPZT2TrackBar);
     this.groupBox27.Controls.Add(this.label94);
     this.groupBox27.Controls.Add(this.flPZT2StepTextBox);
     this.groupBox27.Controls.Add(this.panel6);
     this.groupBox27.Controls.Add(this.updateflPZTButton);
     this.groupBox27.Controls.Add(this.flPZT2TextBox);
     this.groupBox27.Controls.Add(this.label87);
     this.groupBox27.Location = new System.Drawing.Point(9, 218);
     this.groupBox27.Name = "groupBox27";
     this.groupBox27.Size = new System.Drawing.Size(393, 185);
     this.groupBox27.TabIndex = 1;
     this.groupBox27.TabStop = false;
     this.groupBox27.Text = "Fibre Laser";
     //
     // flPZT2TempCurButton
     //
     this.flPZT2TempCurButton.Location = new System.Drawing.Point(208, 153);
     this.flPZT2TempCurButton.Name = "flPZT2TempCurButton";
     this.flPZT2TempCurButton.Size = new System.Drawing.Size(72, 23);
     this.flPZT2TempCurButton.TabIndex = 79;
     this.flPZT2TempCurButton.Text = "Update";
     this.flPZT2TempCurButton.UseVisualStyleBackColor = true;
     this.flPZT2TempCurButton.Click += new System.EventHandler(this.flPZT2TempCurButton_Click);
     //
     // flPZT2CurTextBox
     //
     this.flPZT2CurTextBox.BackColor = System.Drawing.Color.White;
     this.flPZT2CurTextBox.Location = new System.Drawing.Point(138, 156);
     this.flPZT2CurTextBox.Name = "flPZT2CurTextBox";
     this.flPZT2CurTextBox.Size = new System.Drawing.Size(64, 20);
     this.flPZT2CurTextBox.TabIndex = 78;
     this.flPZT2CurTextBox.Text = "0";
     //
     // flPZT2TempUpdateButton
     //
     this.flPZT2TempUpdateButton.Location = new System.Drawing.Point(208, 131);
     this.flPZT2TempUpdateButton.Name = "flPZT2TempUpdateButton";
     this.flPZT2TempUpdateButton.Size = new System.Drawing.Size(72, 23);
     this.flPZT2TempUpdateButton.TabIndex = 77;
     this.flPZT2TempUpdateButton.Text = "Update";
     this.flPZT2TempUpdateButton.UseVisualStyleBackColor = true;
     this.flPZT2TempUpdateButton.Click += new System.EventHandler(this.flPZT2TempUpdateButton_Click);
     //
     // label116
     //
     this.label116.Location = new System.Drawing.Point(6, 159);
     this.label116.Name = "label116";
     this.label116.Size = new System.Drawing.Size(126, 18);
     this.label116.TabIndex = 76;
     this.label116.Text = "Current Control (V)";
     //
     // flPZT2TempTextBox
     //
     this.flPZT2TempTextBox.BackColor = System.Drawing.Color.White;
     this.flPZT2TempTextBox.Location = new System.Drawing.Point(138, 134);
     this.flPZT2TempTextBox.Name = "flPZT2TempTextBox";
     this.flPZT2TempTextBox.Size = new System.Drawing.Size(64, 20);
     this.flPZT2TempTextBox.TabIndex = 75;
     this.flPZT2TempTextBox.Text = "0";
     //
     // label115
     //
     this.label115.Location = new System.Drawing.Point(6, 137);
     this.label115.Name = "label115";
     this.label115.Size = new System.Drawing.Size(126, 18);
     this.label115.TabIndex = 74;
     this.label115.Text = "Temp Control (V)";
     //
     // flPZT2TrackBar
     //
     this.flPZT2TrackBar.Location = new System.Drawing.Point(7, 51);
     this.flPZT2TrackBar.Maximum = 1000;
     this.flPZT2TrackBar.Name = "flPZT2TrackBar";
     this.flPZT2TrackBar.Size = new System.Drawing.Size(373, 45);
     this.flPZT2TrackBar.TabIndex = 50;
     this.flPZT2TrackBar.Scroll += new System.EventHandler(this.diodeRefCavtrackBar_Scroll);
     //
     // label94
     //
     this.label94.Location = new System.Drawing.Point(6, 102);
     this.label94.Name = "label94";
     this.label94.Size = new System.Drawing.Size(126, 18);
     this.label94.TabIndex = 73;
     this.label94.Text = "Piezo Control Step (V)";
     //
     // flPZT2StepTextBox
     //
     this.flPZT2StepTextBox.BackColor = System.Drawing.Color.White;
     this.flPZT2StepTextBox.Location = new System.Drawing.Point(138, 100);
     this.flPZT2StepTextBox.Name = "flPZT2StepTextBox";
     this.flPZT2StepTextBox.Size = new System.Drawing.Size(64, 20);
     this.flPZT2StepTextBox.TabIndex = 72;
     this.flPZT2StepTextBox.Text = "0";
     //
     // panel6
     //
     this.panel6.Controls.Add(this.flPZT2StepZeroButton);
     this.panel6.Controls.Add(this.flPZT2StepPlusButton);
     this.panel6.Controls.Add(this.flPZT2StepMinusButton);
     this.panel6.Location = new System.Drawing.Point(194, 16);
     this.panel6.Name = "panel6";
     this.panel6.Size = new System.Drawing.Size(108, 29);
     this.panel6.TabIndex = 71;
     //
     // flPZT2StepZeroButton
     //
     this.flPZT2StepZeroButton.AutoSize = true;
     this.flPZT2StepZeroButton.Checked = true;
     this.flPZT2StepZeroButton.Location = new System.Drawing.Point(74, 7);
     this.flPZT2StepZeroButton.Name = "flPZT2StepZeroButton";
     this.flPZT2StepZeroButton.Size = new System.Drawing.Size(31, 17);
     this.flPZT2StepZeroButton.TabIndex = 32;
     this.flPZT2StepZeroButton.TabStop = true;
     this.flPZT2StepZeroButton.Text = "0";
     this.flPZT2StepZeroButton.UseVisualStyleBackColor = true;
     //
     // flPZT2StepPlusButton
     //
     this.flPZT2StepPlusButton.AutoSize = true;
     this.flPZT2StepPlusButton.Location = new System.Drawing.Point(3, 6);
     this.flPZT2StepPlusButton.Name = "flPZT2StepPlusButton";
     this.flPZT2StepPlusButton.Size = new System.Drawing.Size(31, 17);
     this.flPZT2StepPlusButton.TabIndex = 32;
     this.flPZT2StepPlusButton.Text = "+";
     this.flPZT2StepPlusButton.UseVisualStyleBackColor = true;
     //
     // flPZT2StepMinusButton
     //
     this.flPZT2StepMinusButton.AutoSize = true;
     this.flPZT2StepMinusButton.Location = new System.Drawing.Point(40, 7);
     this.flPZT2StepMinusButton.Name = "flPZT2StepMinusButton";
     this.flPZT2StepMinusButton.Size = new System.Drawing.Size(28, 17);
     this.flPZT2StepMinusButton.TabIndex = 32;
     this.flPZT2StepMinusButton.Text = "-";
     this.flPZT2StepMinusButton.UseVisualStyleBackColor = true;
     //
     // updateflPZTButton
     //
     this.updateflPZTButton.Location = new System.Drawing.Point(308, 19);
     this.updateflPZTButton.Name = "updateflPZTButton";
     this.updateflPZTButton.Size = new System.Drawing.Size(72, 23);
     this.updateflPZTButton.TabIndex = 64;
     this.updateflPZTButton.Text = "Update";
     this.updateflPZTButton.UseVisualStyleBackColor = true;
     this.updateflPZTButton.Click += new System.EventHandler(this.updateflPZTButton_Click);
     //
     // flPZT2TextBox
     //
     this.flPZT2TextBox.BackColor = System.Drawing.Color.LimeGreen;
     this.flPZT2TextBox.Location = new System.Drawing.Point(127, 22);
     this.flPZT2TextBox.Name = "flPZT2TextBox";
     this.flPZT2TextBox.Size = new System.Drawing.Size(64, 20);
     this.flPZT2TextBox.TabIndex = 45;
     this.flPZT2TextBox.Text = "0";
     //
     // label87
     //
     this.label87.Location = new System.Drawing.Point(6, 25);
     this.label87.Name = "label87";
     this.label87.Size = new System.Drawing.Size(93, 18);
     this.label87.TabIndex = 44;
     this.label87.Text = "Piezo Control (V)";
     //
     // groupBox26
     //
     this.groupBox26.Controls.Add(this.updateDiodeCurrentMonButton);
     this.groupBox26.Controls.Add(this.diodeCurrentTextBox);
     this.groupBox26.Controls.Add(this.stopDiodeCurrentPollButton);
     this.groupBox26.Controls.Add(this.startDiodeCurrentPollButton);
     this.groupBox26.Controls.Add(this.diodeCurrentPollTextBox);
     this.groupBox26.Controls.Add(this.label86);
     this.groupBox26.Controls.Add(this.diodeCurrentGraph);
     this.groupBox26.Location = new System.Drawing.Point(6, 6);
     this.groupBox26.Name = "groupBox26";
     this.groupBox26.Size = new System.Drawing.Size(685, 206);
     this.groupBox26.TabIndex = 0;
     this.groupBox26.TabStop = false;
     this.groupBox26.Text = "Current Supply";
     //
     // updateDiodeCurrentMonButton
     //
     this.updateDiodeCurrentMonButton.Location = new System.Drawing.Point(178, 176);
     this.updateDiodeCurrentMonButton.Name = "updateDiodeCurrentMonButton";
     this.updateDiodeCurrentMonButton.Size = new System.Drawing.Size(72, 23);
     this.updateDiodeCurrentMonButton.TabIndex = 62;
     this.updateDiodeCurrentMonButton.Text = "Update";
     this.updateDiodeCurrentMonButton.UseVisualStyleBackColor = true;
     this.updateDiodeCurrentMonButton.Click += new System.EventHandler(this.updateDiodeCurrentMonButton_Click);
     //
     // diodeCurrentTextBox
     //
     this.diodeCurrentTextBox.BackColor = System.Drawing.Color.Black;
     this.diodeCurrentTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.diodeCurrentTextBox.Location = new System.Drawing.Point(35, 178);
     this.diodeCurrentTextBox.Name = "diodeCurrentTextBox";
     this.diodeCurrentTextBox.ReadOnly = true;
     this.diodeCurrentTextBox.Size = new System.Drawing.Size(137, 20);
     this.diodeCurrentTextBox.TabIndex = 61;
     this.diodeCurrentTextBox.Text = "0";
     //
     // stopDiodeCurrentPollButton
     //
     this.stopDiodeCurrentPollButton.Enabled = false;
     this.stopDiodeCurrentPollButton.Location = new System.Drawing.Point(604, 176);
     this.stopDiodeCurrentPollButton.Name = "stopDiodeCurrentPollButton";
     this.stopDiodeCurrentPollButton.Size = new System.Drawing.Size(75, 23);
     this.stopDiodeCurrentPollButton.TabIndex = 60;
     this.stopDiodeCurrentPollButton.Text = "Stop poll";
     this.stopDiodeCurrentPollButton.UseVisualStyleBackColor = true;
     this.stopDiodeCurrentPollButton.Click += new System.EventHandler(this.stopDiodeCurrentPollButton_Click);
     //
     // startDiodeCurrentPollButton
     //
     this.startDiodeCurrentPollButton.Location = new System.Drawing.Point(523, 176);
     this.startDiodeCurrentPollButton.Name = "startDiodeCurrentPollButton";
     this.startDiodeCurrentPollButton.Size = new System.Drawing.Size(75, 23);
     this.startDiodeCurrentPollButton.TabIndex = 59;
     this.startDiodeCurrentPollButton.Text = "Start poll";
     this.startDiodeCurrentPollButton.UseVisualStyleBackColor = true;
     this.startDiodeCurrentPollButton.Click += new System.EventHandler(this.startDiodeCurrentPollButton_Click);
     //
     // diodeCurrentPollTextBox
     //
     this.diodeCurrentPollTextBox.Location = new System.Drawing.Point(453, 178);
     this.diodeCurrentPollTextBox.Name = "diodeCurrentPollTextBox";
     this.diodeCurrentPollTextBox.Size = new System.Drawing.Size(64, 20);
     this.diodeCurrentPollTextBox.TabIndex = 58;
     this.diodeCurrentPollTextBox.Text = "100";
     //
     // label86
     //
     this.label86.Location = new System.Drawing.Point(366, 181);
     this.label86.Name = "label86";
     this.label86.Size = new System.Drawing.Size(101, 23);
     this.label86.TabIndex = 57;
     this.label86.Text = "Poll period (ms)";
     //
     // diodeCurrentGraph
     //
     this.diodeCurrentGraph.InteractionMode = ((NationalInstruments.UI.GraphInteractionModes)((((((((NationalInstruments.UI.GraphInteractionModes.ZoomX | NationalInstruments.UI.GraphInteractionModes.ZoomY)
     | NationalInstruments.UI.GraphInteractionModes.ZoomAroundPoint)
     | NationalInstruments.UI.GraphInteractionModes.PanX)
     | NationalInstruments.UI.GraphInteractionModes.PanY)
     | NationalInstruments.UI.GraphInteractionModes.DragCursor)
     | NationalInstruments.UI.GraphInteractionModes.DragAnnotationCaption)
     | NationalInstruments.UI.GraphInteractionModes.EditRange)));
     this.diodeCurrentGraph.Location = new System.Drawing.Point(6, 19);
     this.diodeCurrentGraph.Name = "diodeCurrentGraph";
     this.diodeCurrentGraph.Plots.AddRange(new NationalInstruments.UI.WaveformPlot[] {
     this.diodeCurrentPlot});
     this.diodeCurrentGraph.Size = new System.Drawing.Size(673, 153);
     this.diodeCurrentGraph.TabIndex = 46;
     this.diodeCurrentGraph.XAxes.AddRange(new NationalInstruments.UI.XAxis[] {
     this.xAxis2});
     this.diodeCurrentGraph.YAxes.AddRange(new NationalInstruments.UI.YAxis[] {
     this.yAxis2});
     //
     // diodeCurrentPlot
     //
     this.diodeCurrentPlot.AntiAliased = true;
     this.diodeCurrentPlot.HistoryCapacity = 10000;
     this.diodeCurrentPlot.LineWidth = 2F;
     this.diodeCurrentPlot.XAxis = this.xAxis2;
     this.diodeCurrentPlot.YAxis = this.yAxis2;
     //
     // xAxis2
     //
     this.xAxis2.Mode = NationalInstruments.UI.AxisMode.StripChart;
     this.xAxis2.Range = new NationalInstruments.UI.Range(0D, 500D);
     //
     // yAxis2
     //
     this.yAxis2.Mode = NationalInstruments.UI.AxisMode.Fixed;
     this.yAxis2.OriginLineVisible = true;
     //
     // tabPage5
     //
     this.tabPage5.BackColor = System.Drawing.Color.Transparent;
     this.tabPage5.Controls.Add(this.groupBox17);
     this.tabPage5.Controls.Add(this.groupBox15);
     this.tabPage5.Location = new System.Drawing.Point(4, 22);
     this.tabPage5.Name = "tabPage5";
     this.tabPage5.Size = new System.Drawing.Size(697, 575);
     this.tabPage5.TabIndex = 4;
     this.tabPage5.Text = "Source";
     //
     // groupBox17
     //
     this.groupBox17.Controls.Add(this.TargetStepButton);
     this.groupBox17.Controls.Add(this.label66);
     this.groupBox17.Controls.Add(this.TargetNumStepsTextBox);
     this.groupBox17.Location = new System.Drawing.Point(13, 165);
     this.groupBox17.Name = "groupBox17";
     this.groupBox17.Size = new System.Drawing.Size(351, 64);
     this.groupBox17.TabIndex = 47;
     this.groupBox17.TabStop = false;
     this.groupBox17.Text = "Target stepper";
     //
     // TargetStepButton
     //
     this.TargetStepButton.Location = new System.Drawing.Point(256, 20);
     this.TargetStepButton.Name = "TargetStepButton";
     this.TargetStepButton.Size = new System.Drawing.Size(75, 23);
     this.TargetStepButton.TabIndex = 2;
     this.TargetStepButton.Text = "Step!";
     this.TargetStepButton.UseVisualStyleBackColor = true;
     this.TargetStepButton.Click += new System.EventHandler(this.TargetStepButton_Click);
     //
     // label66
     //
     this.label66.AutoSize = true;
     this.label66.Location = new System.Drawing.Point(19, 25);
     this.label66.Name = "label66";
     this.label66.Size = new System.Drawing.Size(89, 13);
     this.label66.TabIndex = 1;
     this.label66.Text = "Number of pulses";
     //
     // TargetNumStepsTextBox
     //
     this.TargetNumStepsTextBox.Location = new System.Drawing.Point(158, 22);
     this.TargetNumStepsTextBox.Name = "TargetNumStepsTextBox";
     this.TargetNumStepsTextBox.Size = new System.Drawing.Size(66, 20);
     this.TargetNumStepsTextBox.TabIndex = 0;
     this.TargetNumStepsTextBox.Text = "10";
     //
     // groupBox15
     //
     this.groupBox15.Controls.Add(this.label33);
     this.groupBox15.Controls.Add(this.checkYagInterlockButton);
     this.groupBox15.Controls.Add(this.yagFlashlampVTextBox);
     this.groupBox15.Controls.Add(this.interlockStatusTextBox);
     this.groupBox15.Controls.Add(this.updateFlashlampVButton);
     this.groupBox15.Controls.Add(this.label34);
     this.groupBox15.Controls.Add(this.startYAGFlashlampsButton);
     this.groupBox15.Controls.Add(this.yagQDisableButton);
     this.groupBox15.Controls.Add(this.stopYagFlashlampsButton);
     this.groupBox15.Controls.Add(this.yagQEnableButton);
     this.groupBox15.Location = new System.Drawing.Point(13, 14);
     this.groupBox15.Name = "groupBox15";
     this.groupBox15.Size = new System.Drawing.Size(528, 145);
     this.groupBox15.TabIndex = 46;
     this.groupBox15.TabStop = false;
     this.groupBox15.Text = "YAG";
     //
     // label33
     //
     this.label33.Location = new System.Drawing.Point(16, 31);
     this.label33.Name = "label33";
     this.label33.Size = new System.Drawing.Size(144, 23);
     this.label33.TabIndex = 13;
     this.label33.Text = "Flashlamp voltage (V)";
     //
     // checkYagInterlockButton
     //
     this.checkYagInterlockButton.Location = new System.Drawing.Point(256, 63);
     this.checkYagInterlockButton.Name = "checkYagInterlockButton";
     this.checkYagInterlockButton.Size = new System.Drawing.Size(75, 23);
     this.checkYagInterlockButton.TabIndex = 45;
     this.checkYagInterlockButton.Text = "Check";
     this.checkYagInterlockButton.Click += new System.EventHandler(this.checkYagInterlockButton_Click);
     //
     // yagFlashlampVTextBox
     //
     this.yagFlashlampVTextBox.Location = new System.Drawing.Point(160, 31);
     this.yagFlashlampVTextBox.Name = "yagFlashlampVTextBox";
     this.yagFlashlampVTextBox.Size = new System.Drawing.Size(64, 20);
     this.yagFlashlampVTextBox.TabIndex = 12;
     this.yagFlashlampVTextBox.Text = "1220";
     //
     // interlockStatusTextBox
     //
     this.interlockStatusTextBox.BackColor = System.Drawing.Color.Black;
     this.interlockStatusTextBox.ForeColor = System.Drawing.Color.Chartreuse;
     this.interlockStatusTextBox.Location = new System.Drawing.Point(160, 63);
     this.interlockStatusTextBox.Name = "interlockStatusTextBox";
     this.interlockStatusTextBox.ReadOnly = true;
     this.interlockStatusTextBox.Size = new System.Drawing.Size(64, 20);
     this.interlockStatusTextBox.TabIndex = 44;
     this.interlockStatusTextBox.Text = "0";
     //
     // updateFlashlampVButton
     //
     this.updateFlashlampVButton.Location = new System.Drawing.Point(256, 31);
     this.updateFlashlampVButton.Name = "updateFlashlampVButton";
     this.updateFlashlampVButton.Size = new System.Drawing.Size(75, 23);
     this.updateFlashlampVButton.TabIndex = 14;
     this.updateFlashlampVButton.Text = "Update V";
     this.updateFlashlampVButton.Click += new System.EventHandler(this.updateFlashlampVButton_Click);
     //
     // label34
     //
     this.label34.Location = new System.Drawing.Point(16, 63);
     this.label34.Name = "label34";
     this.label34.Size = new System.Drawing.Size(104, 23);
     this.label34.TabIndex = 43;
     this.label34.Text = "Interlock failed";
     //
     // startYAGFlashlampsButton
     //
     this.startYAGFlashlampsButton.Location = new System.Drawing.Point(16, 103);
     this.startYAGFlashlampsButton.Name = "startYAGFlashlampsButton";
     this.startYAGFlashlampsButton.Size = new System.Drawing.Size(112, 23);
     this.startYAGFlashlampsButton.TabIndex = 15;
     this.startYAGFlashlampsButton.Text = "Start Flashlamps";
     this.startYAGFlashlampsButton.Click += new System.EventHandler(this.startYAGFlashlampsButton_Click);
     //
     // yagQDisableButton
     //
     this.yagQDisableButton.Enabled = false;
     this.yagQDisableButton.Location = new System.Drawing.Point(400, 103);
     this.yagQDisableButton.Name = "yagQDisableButton";
     this.yagQDisableButton.Size = new System.Drawing.Size(112, 23);
     this.yagQDisableButton.TabIndex = 18;
     this.yagQDisableButton.Text = "Q-switch Disable";
     this.yagQDisableButton.Click += new System.EventHandler(this.yagQDisableButton_Click);
     //
     // stopYagFlashlampsButton
     //
     this.stopYagFlashlampsButton.Enabled = false;
     this.stopYagFlashlampsButton.Location = new System.Drawing.Point(144, 103);
     this.stopYagFlashlampsButton.Name = "stopYagFlashlampsButton";
     this.stopYagFlashlampsButton.Size = new System.Drawing.Size(112, 23);
     this.stopYagFlashlampsButton.TabIndex = 16;
     this.stopYagFlashlampsButton.Text = "Stop Flashlamps";
     this.stopYagFlashlampsButton.Click += new System.EventHandler(this.stopYagFlashlampsButton_Click);
     //
     // yagQEnableButton
     //
     this.yagQEnableButton.Location = new System.Drawing.Point(272, 103);
     this.yagQEnableButton.Name = "yagQEnableButton";
     this.yagQEnableButton.Size = new System.Drawing.Size(112, 23);
     this.yagQEnableButton.TabIndex = 17;
     this.yagQEnableButton.Text = "Q-switch Enable";
     this.yagQEnableButton.Click += new System.EventHandler(this.yagQEnableButton_Click);
     //
     // tabPage6
     //
     this.tabPage6.BackColor = System.Drawing.Color.Transparent;
     this.tabPage6.Controls.Add(this.groupBox34);
     this.tabPage6.Controls.Add(this.groupBox32);
     this.tabPage6.Controls.Add(this.label81);
     this.tabPage6.Controls.Add(this.pumpPolarizerUpdateButton);
     this.tabPage6.Controls.Add(this.pumpPolarizerAngleTextBox);
     this.tabPage6.Controls.Add(this.label80);
     this.tabPage6.Controls.Add(this.probePolarizerUpdateButton);
     this.tabPage6.Controls.Add(this.probePolarizerAngleTextBox);
     this.tabPage6.Controls.Add(this.motorController2);
     this.tabPage6.Controls.Add(this.axMG17Logger1);
     this.tabPage6.Controls.Add(this.motorController1);
     this.tabPage6.Location = new System.Drawing.Point(4, 22);
     this.tabPage6.Name = "tabPage6";
     this.tabPage6.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage6.Size = new System.Drawing.Size(697, 575);
     this.tabPage6.TabIndex = 5;
     this.tabPage6.Text = "Polarizer";
     //
     // groupBox34
     //
     this.groupBox34.Controls.Add(this.label108);
     this.groupBox34.Controls.Add(this.label109);
     this.groupBox34.Controls.Add(this.pumpPolMesAngle);
     this.groupBox34.Controls.Add(this.updatePumpPolMesAngle);
     this.groupBox34.Controls.Add(this.zeroPumpPol);
     this.groupBox34.Controls.Add(this.label110);
     this.groupBox34.Controls.Add(this.groupBox35);
     this.groupBox34.Location = new System.Drawing.Point(356, 336);
     this.groupBox34.Name = "groupBox34";
     this.groupBox34.Size = new System.Drawing.Size(345, 229);
     this.groupBox34.TabIndex = 13;
     this.groupBox34.TabStop = false;
     this.groupBox34.Text = "Pump Polariser";
     //
     // label108
     //
     this.label108.AutoSize = true;
     this.label108.Location = new System.Drawing.Point(271, 30);
     this.label108.Name = "label108";
     this.label108.Size = new System.Drawing.Size(0, 13);
     this.label108.TabIndex = 48;
     //
     // label109
     //
     this.label109.AutoSize = true;
     this.label109.Location = new System.Drawing.Point(15, 35);
     this.label109.Name = "label109";
     this.label109.Size = new System.Drawing.Size(74, 13);
     this.label109.TabIndex = 47;
     this.label109.Text = "Position Mode";
     //
     // pumpPolMesAngle
     //
     this.pumpPolMesAngle.BackColor = System.Drawing.Color.Black;
     this.pumpPolMesAngle.ForeColor = System.Drawing.Color.Chartreuse;
     this.pumpPolMesAngle.Location = new System.Drawing.Point(111, 180);
     this.pumpPolMesAngle.Name = "pumpPolMesAngle";
     this.pumpPolMesAngle.ReadOnly = true;
     this.pumpPolMesAngle.Size = new System.Drawing.Size(82, 20);
     this.pumpPolMesAngle.TabIndex = 43;
     this.pumpPolMesAngle.Text = "0";
     //
     // updatePumpPolMesAngle
     //
     this.updatePumpPolMesAngle.Location = new System.Drawing.Point(199, 178);
     this.updatePumpPolMesAngle.Name = "updatePumpPolMesAngle";
     this.updatePumpPolMesAngle.Size = new System.Drawing.Size(75, 23);
     this.updatePumpPolMesAngle.TabIndex = 6;
     this.updatePumpPolMesAngle.Text = "Update";
     this.updatePumpPolMesAngle.UseVisualStyleBackColor = true;
     this.updatePumpPolMesAngle.Click += new System.EventHandler(this.updatePumpPolMesAngle_Click);
     //
     // zeroPumpPol
     //
     this.zeroPumpPol.Location = new System.Drawing.Point(280, 177);
     this.zeroPumpPol.Name = "zeroPumpPol";
     this.zeroPumpPol.Size = new System.Drawing.Size(44, 23);
     this.zeroPumpPol.TabIndex = 2;
     this.zeroPumpPol.Text = "Zero";
     this.zeroPumpPol.UseVisualStyleBackColor = true;
     this.zeroPumpPol.Click += new System.EventHandler(this.zeroPumpPol_Click);
     //
     // label110
     //
     this.label110.AutoSize = true;
     this.label110.Location = new System.Drawing.Point(12, 183);
     this.label110.Name = "label110";
     this.label110.Size = new System.Drawing.Size(84, 13);
     this.label110.TabIndex = 7;
     this.label110.Text = "Measured Angle";
     //
     // groupBox35
     //
     this.groupBox35.Controls.Add(this.label124);
     this.groupBox35.Controls.Add(this.pumpBacklashTextBox);
     this.groupBox35.Controls.Add(this.pumpPolVoltStopButton);
     this.groupBox35.Controls.Add(this.pumpPolVoltTrackBar);
     this.groupBox35.Controls.Add(this.label111);
     this.groupBox35.Controls.Add(this.label112);
     this.groupBox35.Controls.Add(this.pumpPolSetAngle);
     this.groupBox35.Controls.Add(this.label113);
     this.groupBox35.Controls.Add(this.label114);
     this.groupBox35.Controls.Add(this.setPumpPolAngle);
     this.groupBox35.Controls.Add(this.pumpPolModeSelectSwitch);
     this.groupBox35.Location = new System.Drawing.Point(6, 11);
     this.groupBox35.Name = "groupBox35";
     this.groupBox35.Size = new System.Drawing.Size(332, 153);
     this.groupBox35.TabIndex = 50;
     this.groupBox35.TabStop = false;
     //
     // label124
     //
     this.label124.AutoSize = true;
     this.label124.Location = new System.Drawing.Point(118, 55);
     this.label124.Name = "label124";
     this.label124.Size = new System.Drawing.Size(114, 13);
     this.label124.TabIndex = 54;
     this.label124.Text = "-ve overshoot ( 0 = off)";
     //
     // pumpBacklashTextBox
     //
     this.pumpBacklashTextBox.Location = new System.Drawing.Point(244, 52);
     this.pumpBacklashTextBox.Name = "pumpBacklashTextBox";
     this.pumpBacklashTextBox.Size = new System.Drawing.Size(75, 20);
     this.pumpBacklashTextBox.TabIndex = 53;
     this.pumpBacklashTextBox.Text = "0";
     //
     // pumpPolVoltStopButton
     //
     this.pumpPolVoltStopButton.Enabled = false;
     this.pumpPolVoltStopButton.Location = new System.Drawing.Point(243, 106);
     this.pumpPolVoltStopButton.Name = "pumpPolVoltStopButton";
     this.pumpPolVoltStopButton.Size = new System.Drawing.Size(75, 23);
     this.pumpPolVoltStopButton.TabIndex = 51;
     this.pumpPolVoltStopButton.Text = "Stop";
     this.pumpPolVoltStopButton.UseVisualStyleBackColor = true;
     this.pumpPolVoltStopButton.Click += new System.EventHandler(this.pumpPolVoltStopButton_Click);
     //
     // pumpPolVoltTrackBar
     //
     this.pumpPolVoltTrackBar.Enabled = false;
     this.pumpPolVoltTrackBar.Location = new System.Drawing.Point(88, 102);
     this.pumpPolVoltTrackBar.Maximum = 100;
     this.pumpPolVoltTrackBar.Minimum = -100;
     this.pumpPolVoltTrackBar.Name = "pumpPolVoltTrackBar";
     this.pumpPolVoltTrackBar.Size = new System.Drawing.Size(149, 45);
     this.pumpPolVoltTrackBar.TabIndex = 51;
     this.pumpPolVoltTrackBar.Scroll += new System.EventHandler(this.pumpPolVoltTrackBar_Scroll);
     //
     // label111
     //
     this.label111.AutoSize = true;
     this.label111.Location = new System.Drawing.Point(9, 126);
     this.label111.Name = "label111";
     this.label111.Size = new System.Drawing.Size(73, 13);
     this.label111.TabIndex = 49;
     this.label111.Text = "Voltage Mode";
     //
     // label112
     //
     this.label112.AutoSize = true;
     this.label112.Location = new System.Drawing.Point(102, 24);
     this.label112.Name = "label112";
     this.label112.Size = new System.Drawing.Size(53, 13);
     this.label112.TabIndex = 8;
     this.label112.Text = "Set Angle";
     //
     // pumpPolSetAngle
     //
     this.pumpPolSetAngle.Location = new System.Drawing.Point(161, 19);
     this.pumpPolSetAngle.Name = "pumpPolSetAngle";
     this.pumpPolSetAngle.Size = new System.Drawing.Size(66, 20);
     this.pumpPolSetAngle.TabIndex = 13;
     this.pumpPolSetAngle.Text = "0";
     //
     // label113
     //
     this.label113.AutoSize = true;
     this.label113.Location = new System.Drawing.Point(172, 78);
     this.label113.Name = "label113";
     this.label113.Size = new System.Drawing.Size(55, 13);
     this.label113.TabIndex = 44;
     this.label113.Text = "Clockwise";
     //
     // label114
     //
     this.label114.AutoSize = true;
     this.label114.Location = new System.Drawing.Point(85, 78);
     this.label114.Name = "label114";
     this.label114.Size = new System.Drawing.Size(75, 13);
     this.label114.TabIndex = 45;
     this.label114.Text = "Anti-clockwise";
     //
     // setPumpPolAngle
     //
     this.setPumpPolAngle.Location = new System.Drawing.Point(243, 17);
     this.setPumpPolAngle.Name = "setPumpPolAngle";
     this.setPumpPolAngle.Size = new System.Drawing.Size(75, 23);
     this.setPumpPolAngle.TabIndex = 5;
     this.setPumpPolAngle.Text = "Set";
     this.setPumpPolAngle.UseVisualStyleBackColor = true;
     this.setPumpPolAngle.Click += new System.EventHandler(this.setPumpPolAngle_Click);
     //
     // pumpPolModeSelectSwitch
     //
     this.pumpPolModeSelectSwitch.Location = new System.Drawing.Point(12, 33);
     this.pumpPolModeSelectSwitch.Name = "pumpPolModeSelectSwitch";
     this.pumpPolModeSelectSwitch.Size = new System.Drawing.Size(64, 96);
     this.pumpPolModeSelectSwitch.SwitchStyle = NationalInstruments.UI.SwitchStyle.VerticalToggle3D;
     this.pumpPolModeSelectSwitch.TabIndex = 51;
     this.pumpPolModeSelectSwitch.Value = true;
     this.pumpPolModeSelectSwitch.StateChanged += new NationalInstruments.UI.ActionEventHandler(this.pumpPolModeSelectSwitch_StateChanged);
     //
     // groupBox32
     //
     this.groupBox32.Controls.Add(this.label106);
     this.groupBox32.Controls.Add(this.label105);
     this.groupBox32.Controls.Add(this.probePolMesAngle);
     this.groupBox32.Controls.Add(this.updateProbePolMesAngle);
     this.groupBox32.Controls.Add(this.zeroProbePol);
     this.groupBox32.Controls.Add(this.label101);
     this.groupBox32.Controls.Add(this.groupBox33);
     this.groupBox32.Location = new System.Drawing.Point(6, 336);
     this.groupBox32.Name = "groupBox32";
     this.groupBox32.Size = new System.Drawing.Size(345, 229);
     this.groupBox32.TabIndex = 12;
     this.groupBox32.TabStop = false;
     this.groupBox32.Text = "Probe Polariser";
     //
     // label106
     //
     this.label106.AutoSize = true;
     this.label106.Location = new System.Drawing.Point(271, 30);
     this.label106.Name = "label106";
     this.label106.Size = new System.Drawing.Size(0, 13);
     this.label106.TabIndex = 48;
     //
     // label105
     //
     this.label105.AutoSize = true;
     this.label105.Location = new System.Drawing.Point(15, 35);
     this.label105.Name = "label105";
     this.label105.Size = new System.Drawing.Size(74, 13);
     this.label105.TabIndex = 47;
     this.label105.Text = "Position Mode";
     //
     // probePolMesAngle
     //
     this.probePolMesAngle.BackColor = System.Drawing.Color.Black;
     this.probePolMesAngle.ForeColor = System.Drawing.Color.Chartreuse;
     this.probePolMesAngle.Location = new System.Drawing.Point(111, 180);
     this.probePolMesAngle.Name = "probePolMesAngle";
     this.probePolMesAngle.ReadOnly = true;
     this.probePolMesAngle.Size = new System.Drawing.Size(82, 20);
     this.probePolMesAngle.TabIndex = 43;
     this.probePolMesAngle.Text = "0";
     //
     // updateProbePolMesAngle
     //
     this.updateProbePolMesAngle.Location = new System.Drawing.Point(199, 178);
     this.updateProbePolMesAngle.Name = "updateProbePolMesAngle";
     this.updateProbePolMesAngle.Size = new System.Drawing.Size(75, 23);
     this.updateProbePolMesAngle.TabIndex = 6;
     this.updateProbePolMesAngle.Text = "Update";
     this.updateProbePolMesAngle.UseVisualStyleBackColor = true;
     this.updateProbePolMesAngle.Click += new System.EventHandler(this.updateProbePolMesAngle_Click);
     //
     // zeroProbePol
     //
     this.zeroProbePol.Location = new System.Drawing.Point(280, 177);
     this.zeroProbePol.Name = "zeroProbePol";
     this.zeroProbePol.Size = new System.Drawing.Size(44, 23);
     this.zeroProbePol.TabIndex = 2;
     this.zeroProbePol.Text = "Zero";
     this.zeroProbePol.UseVisualStyleBackColor = true;
     this.zeroProbePol.Click += new System.EventHandler(this.zeroProbePol_Click);
     //
     // label101
     //
     this.label101.AutoSize = true;
     this.label101.Location = new System.Drawing.Point(12, 183);
     this.label101.Name = "label101";
     this.label101.Size = new System.Drawing.Size(84, 13);
     this.label101.TabIndex = 7;
     this.label101.Text = "Measured Angle";
     //
     // groupBox33
     //
     this.groupBox33.Controls.Add(this.label123);
     this.groupBox33.Controls.Add(this.probeBacklashTextBox);
     this.groupBox33.Controls.Add(this.probePolVoltStopButton);
     this.groupBox33.Controls.Add(this.probePolVoltTrackBar);
     this.groupBox33.Controls.Add(this.label107);
     this.groupBox33.Controls.Add(this.label102);
     this.groupBox33.Controls.Add(this.probePolSetAngle);
     this.groupBox33.Controls.Add(this.label103);
     this.groupBox33.Controls.Add(this.label104);
     this.groupBox33.Controls.Add(this.setProbePolAngle);
     this.groupBox33.Controls.Add(this.probePolModeSelectSwitch);
     this.groupBox33.Location = new System.Drawing.Point(6, 11);
     this.groupBox33.Name = "groupBox33";
     this.groupBox33.Size = new System.Drawing.Size(332, 153);
     this.groupBox33.TabIndex = 50;
     this.groupBox33.TabStop = false;
     //
     // label123
     //
     this.label123.AutoSize = true;
     this.label123.Location = new System.Drawing.Point(117, 55);
     this.label123.Name = "label123";
     this.label123.Size = new System.Drawing.Size(114, 13);
     this.label123.TabIndex = 52;
     this.label123.Text = "-ve overshoot ( 0 = off)";
     //
     // probeBacklashTextBox
     //
     this.probeBacklashTextBox.Location = new System.Drawing.Point(243, 52);
     this.probeBacklashTextBox.Name = "probeBacklashTextBox";
     this.probeBacklashTextBox.Size = new System.Drawing.Size(75, 20);
     this.probeBacklashTextBox.TabIndex = 14;
     this.probeBacklashTextBox.Text = "0";
     //
     // probePolVoltStopButton
     //
     this.probePolVoltStopButton.Enabled = false;
     this.probePolVoltStopButton.Location = new System.Drawing.Point(243, 106);
     this.probePolVoltStopButton.Name = "probePolVoltStopButton";
     this.probePolVoltStopButton.Size = new System.Drawing.Size(75, 23);
     this.probePolVoltStopButton.TabIndex = 51;
     this.probePolVoltStopButton.Text = "Stop";
     this.probePolVoltStopButton.UseVisualStyleBackColor = true;
     this.probePolVoltStopButton.Click += new System.EventHandler(this.probePolVoltStopButton_Click);
     //
     // probePolVoltTrackBar
     //
     this.probePolVoltTrackBar.Enabled = false;
     this.probePolVoltTrackBar.Location = new System.Drawing.Point(88, 102);
     this.probePolVoltTrackBar.Maximum = 100;
     this.probePolVoltTrackBar.Minimum = -100;
     this.probePolVoltTrackBar.Name = "probePolVoltTrackBar";
     this.probePolVoltTrackBar.Size = new System.Drawing.Size(149, 45);
     this.probePolVoltTrackBar.TabIndex = 51;
     this.probePolVoltTrackBar.Scroll += new System.EventHandler(this.probePolVoltTrackBar_Scroll);
     //
     // label107
     //
     this.label107.AutoSize = true;
     this.label107.Location = new System.Drawing.Point(9, 126);
     this.label107.Name = "label107";
     this.label107.Size = new System.Drawing.Size(73, 13);
     this.label107.TabIndex = 49;
     this.label107.Text = "Voltage Mode";
     //
     // label102
     //
     this.label102.AutoSize = true;
     this.label102.Location = new System.Drawing.Point(102, 24);
     this.label102.Name = "label102";
     this.label102.Size = new System.Drawing.Size(53, 13);
     this.label102.TabIndex = 8;
     this.label102.Text = "Set Angle";
     //
     // probePolSetAngle
     //
     this.probePolSetAngle.Location = new System.Drawing.Point(161, 19);
     this.probePolSetAngle.Name = "probePolSetAngle";
     this.probePolSetAngle.Size = new System.Drawing.Size(66, 20);
     this.probePolSetAngle.TabIndex = 13;
     this.probePolSetAngle.Text = "0";
     //
     // label103
     //
     this.label103.AutoSize = true;
     this.label103.Location = new System.Drawing.Point(172, 78);
     this.label103.Name = "label103";
     this.label103.Size = new System.Drawing.Size(55, 13);
     this.label103.TabIndex = 44;
     this.label103.Text = "Clockwise";
     //
     // label104
     //
     this.label104.AutoSize = true;
     this.label104.Location = new System.Drawing.Point(85, 78);
     this.label104.Name = "label104";
     this.label104.Size = new System.Drawing.Size(75, 13);
     this.label104.TabIndex = 45;
     this.label104.Text = "Anti-clockwise";
     //
     // setProbePolAngle
     //
     this.setProbePolAngle.Location = new System.Drawing.Point(243, 17);
     this.setProbePolAngle.Name = "setProbePolAngle";
     this.setProbePolAngle.Size = new System.Drawing.Size(75, 23);
     this.setProbePolAngle.TabIndex = 5;
     this.setProbePolAngle.Text = "Set";
     this.setProbePolAngle.UseVisualStyleBackColor = true;
     this.setProbePolAngle.Click += new System.EventHandler(this.setProbePolAngle_Click);
     //
     // probePolModeSelectSwitch
     //
     this.probePolModeSelectSwitch.Location = new System.Drawing.Point(12, 33);
     this.probePolModeSelectSwitch.Name = "probePolModeSelectSwitch";
     this.probePolModeSelectSwitch.Size = new System.Drawing.Size(64, 96);
     this.probePolModeSelectSwitch.SwitchStyle = NationalInstruments.UI.SwitchStyle.VerticalToggle3D;
     this.probePolModeSelectSwitch.TabIndex = 51;
     this.probePolModeSelectSwitch.Value = true;
     this.probePolModeSelectSwitch.StateChanged += new NationalInstruments.UI.ActionEventHandler(this.probePolModeSelectSwitch_StateChanged_1);
     //
     // label81
     //
     this.label81.AutoSize = true;
     this.label81.Location = new System.Drawing.Point(370, 30);
     this.label81.Name = "label81";
     this.label81.Size = new System.Drawing.Size(132, 13);
     this.label81.TabIndex = 10;
     this.label81.Text = "Pump polarizer angle (deg)";
     //
     // pumpPolarizerUpdateButton
     //
     this.pumpPolarizerUpdateButton.Location = new System.Drawing.Point(592, 25);
     this.pumpPolarizerUpdateButton.Name = "pumpPolarizerUpdateButton";
     this.pumpPolarizerUpdateButton.Size = new System.Drawing.Size(75, 23);
     this.pumpPolarizerUpdateButton.TabIndex = 9;
     this.pumpPolarizerUpdateButton.Text = "Set";
     this.pumpPolarizerUpdateButton.UseVisualStyleBackColor = true;
     this.pumpPolarizerUpdateButton.Click += new System.EventHandler(this.pumpPolarizerUpdateButton_Click);
     //
     // pumpPolarizerAngleTextBox
     //
     this.pumpPolarizerAngleTextBox.Location = new System.Drawing.Point(520, 27);
     this.pumpPolarizerAngleTextBox.Name = "pumpPolarizerAngleTextBox";
     this.pumpPolarizerAngleTextBox.Size = new System.Drawing.Size(66, 20);
     this.pumpPolarizerAngleTextBox.TabIndex = 8;
     this.pumpPolarizerAngleTextBox.Text = "10";
     //
     // label80
     //
     this.label80.AutoSize = true;
     this.label80.Location = new System.Drawing.Point(12, 30);
     this.label80.Name = "label80";
     this.label80.Size = new System.Drawing.Size(133, 13);
     this.label80.TabIndex = 5;
     this.label80.Text = "Probe polarizer angle (deg)";
     //
     // probePolarizerUpdateButton
     //
     this.probePolarizerUpdateButton.Location = new System.Drawing.Point(234, 25);
     this.probePolarizerUpdateButton.Name = "probePolarizerUpdateButton";
     this.probePolarizerUpdateButton.Size = new System.Drawing.Size(75, 23);
     this.probePolarizerUpdateButton.TabIndex = 4;
     this.probePolarizerUpdateButton.Text = "Set";
     this.probePolarizerUpdateButton.UseVisualStyleBackColor = true;
     this.probePolarizerUpdateButton.Click += new System.EventHandler(this.probePolarizerUpdateButton_Click);
     //
     // probePolarizerAngleTextBox
     //
     this.probePolarizerAngleTextBox.Location = new System.Drawing.Point(162, 27);
     this.probePolarizerAngleTextBox.Name = "probePolarizerAngleTextBox";
     this.probePolarizerAngleTextBox.Size = new System.Drawing.Size(66, 20);
     this.probePolarizerAngleTextBox.TabIndex = 3;
     this.probePolarizerAngleTextBox.Text = "10";
     //
     // tabPage7
     //
     this.tabPage7.BackColor = System.Drawing.Color.Transparent;
     this.tabPage7.Controls.Add(this.clearAlertButton);
     this.tabPage7.Controls.Add(this.alertTextBox);
     this.tabPage7.ImageKey = "(none)";
     this.tabPage7.Location = new System.Drawing.Point(4, 22);
     this.tabPage7.Name = "tabPage7";
     this.tabPage7.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage7.Size = new System.Drawing.Size(697, 575);
     this.tabPage7.TabIndex = 6;
     this.tabPage7.Text = "Alerts";
     //
     // clearAlertButton
     //
     this.clearAlertButton.Location = new System.Drawing.Point(18, 540);
     this.clearAlertButton.Name = "clearAlertButton";
     this.clearAlertButton.Size = new System.Drawing.Size(140, 23);
     this.clearAlertButton.TabIndex = 1;
     this.clearAlertButton.Text = "Clear alert status";
     this.clearAlertButton.UseVisualStyleBackColor = true;
     this.clearAlertButton.Click += new System.EventHandler(this.clearAlertButton_Click);
     //
     // alertTextBox
     //
     this.alertTextBox.Location = new System.Drawing.Point(18, 22);
     this.alertTextBox.Multiline = true;
     this.alertTextBox.Name = "alertTextBox";
     this.alertTextBox.Size = new System.Drawing.Size(654, 512);
     this.alertTextBox.TabIndex = 0;
     //
     // tabPage9
     //
     this.tabPage9.BackColor = System.Drawing.Color.Transparent;
     this.tabPage9.Controls.Add(this.switchScanTTLSwitch);
     this.tabPage9.Controls.Add(this.label97);
     this.tabPage9.Location = new System.Drawing.Point(4, 22);
     this.tabPage9.Name = "tabPage9";
     this.tabPage9.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage9.Size = new System.Drawing.Size(697, 575);
     this.tabPage9.TabIndex = 8;
     this.tabPage9.Text = "Misc";
     //
     // switchScanTTLSwitch
     //
     this.switchScanTTLSwitch.Location = new System.Drawing.Point(6, 6);
     this.switchScanTTLSwitch.Name = "switchScanTTLSwitch";
     this.switchScanTTLSwitch.Size = new System.Drawing.Size(64, 96);
     this.switchScanTTLSwitch.SwitchStyle = NationalInstruments.UI.SwitchStyle.VerticalToggle3D;
     this.switchScanTTLSwitch.TabIndex = 2;
     this.switchScanTTLSwitch.StateChanged += new NationalInstruments.UI.ActionEventHandler(this.switch1_StateChanged);
     //
     // label97
     //
     this.label97.AutoSize = true;
     this.label97.Location = new System.Drawing.Point(76, 53);
     this.label97.Name = "label97";
     this.label97.Size = new System.Drawing.Size(90, 13);
     this.label97.TabIndex = 1;
     this.label97.Text = "Switch Scan TTL";
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(96, 24);
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(64, 20);
     this.textBox1.TabIndex = 45;
     this.textBox1.Text = "0";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(184, 24);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 40;
     this.button1.Text = "Update";
     //
     // label67
     //
     this.label67.Location = new System.Drawing.Point(16, 24);
     this.label67.Name = "label67";
     this.label67.Size = new System.Drawing.Size(80, 23);
     this.label67.TabIndex = 36;
     this.label67.Text = "Voltage (V)";
     //
     // menuStrip1
     //
     this.menuStrip1.BackColor = System.Drawing.SystemColors.Control;
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.fileToolStripMenuItem});
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name = "menuStrip1";
     this.menuStrip1.Size = new System.Drawing.Size(724, 24);
     this.menuStrip1.TabIndex = 26;
     this.menuStrip1.Text = "menuStrip1";
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.loadParametersToolStripMenuItem,
     this.saveParametersToolStripMenuItem,
     this.exitToolStripMenuItem});
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
     this.fileToolStripMenuItem.Text = "File";
     //
     // loadParametersToolStripMenuItem
     //
     this.loadParametersToolStripMenuItem.Name = "loadParametersToolStripMenuItem";
     this.loadParametersToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
     this.loadParametersToolStripMenuItem.Text = "Load parameters ...";
     this.loadParametersToolStripMenuItem.Click += new System.EventHandler(this.loadParametersToolStripMenuItem_Click);
     //
     // saveParametersToolStripMenuItem
     //
     this.saveParametersToolStripMenuItem.Name = "saveParametersToolStripMenuItem";
     this.saveParametersToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
     this.saveParametersToolStripMenuItem.Text = "Save parameters ...";
     this.saveParametersToolStripMenuItem.Click += new System.EventHandler(this.SaveParametersMenuClicked);
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
     this.exitToolStripMenuItem.Text = "Exit";
     this.exitToolStripMenuItem.Click += new System.EventHandler(this.ExitMenuClicked);
     //
     // radioButton1
     //
     this.radioButton1.AutoSize = true;
     this.radioButton1.Checked = true;
     this.radioButton1.Location = new System.Drawing.Point(77, 7);
     this.radioButton1.Name = "radioButton1";
     this.radioButton1.Size = new System.Drawing.Size(31, 17);
     this.radioButton1.TabIndex = 32;
     this.radioButton1.TabStop = true;
     this.radioButton1.Text = "0";
     this.radioButton1.UseVisualStyleBackColor = true;
     //
     // radioButton2
     //
     this.radioButton2.AutoSize = true;
     this.radioButton2.Location = new System.Drawing.Point(3, 6);
     this.radioButton2.Name = "radioButton2";
     this.radioButton2.Size = new System.Drawing.Size(31, 17);
     this.radioButton2.TabIndex = 32;
     this.radioButton2.Text = "+";
     this.radioButton2.UseVisualStyleBackColor = true;
     //
     // radioButton3
     //
     this.radioButton3.AutoSize = true;
     this.radioButton3.Location = new System.Drawing.Point(42, 7);
     this.radioButton3.Name = "radioButton3";
     this.radioButton3.Size = new System.Drawing.Size(28, 17);
     this.radioButton3.TabIndex = 32;
     this.radioButton3.Text = "-";
     this.radioButton3.UseVisualStyleBackColor = true;
     //
     // checkBox1
     //
     this.checkBox1.Location = new System.Drawing.Point(6, 23);
     this.checkBox1.Name = "checkBox1";
     this.checkBox1.Size = new System.Drawing.Size(167, 24);
     this.checkBox1.TabIndex = 53;
     this.checkBox1.Text = "State (Checked is 0=>N+)";
     //
     // radioButton4
     //
     this.radioButton4.AutoSize = true;
     this.radioButton4.Checked = true;
     this.radioButton4.Location = new System.Drawing.Point(77, 7);
     this.radioButton4.Name = "radioButton4";
     this.radioButton4.Size = new System.Drawing.Size(31, 17);
     this.radioButton4.TabIndex = 32;
     this.radioButton4.TabStop = true;
     this.radioButton4.Text = "0";
     this.radioButton4.UseVisualStyleBackColor = true;
     //
     // radioButton5
     //
     this.radioButton5.AutoSize = true;
     this.radioButton5.Location = new System.Drawing.Point(3, 6);
     this.radioButton5.Name = "radioButton5";
     this.radioButton5.Size = new System.Drawing.Size(31, 17);
     this.radioButton5.TabIndex = 32;
     this.radioButton5.Text = "+";
     this.radioButton5.UseVisualStyleBackColor = true;
     //
     // radioButton6
     //
     this.radioButton6.AutoSize = true;
     this.radioButton6.Location = new System.Drawing.Point(42, 7);
     this.radioButton6.Name = "radioButton6";
     this.radioButton6.Size = new System.Drawing.Size(28, 17);
     this.radioButton6.TabIndex = 32;
     this.radioButton6.Text = "-";
     this.radioButton6.UseVisualStyleBackColor = true;
     //
     // motorController2
     //
     this.motorController2.Enabled = true;
     this.motorController2.Location = new System.Drawing.Point(373, 69);
     this.motorController2.Name = "motorController2";
     this.motorController2.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("motorController2.OcxState")));
     this.motorController2.Size = new System.Drawing.Size(294, 205);
     this.motorController2.TabIndex = 7;
     //
     // axMG17Logger1
     //
     this.axMG17Logger1.Location = new System.Drawing.Point(14, 280);
     this.axMG17Logger1.Name = "axMG17Logger1";
     this.axMG17Logger1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMG17Logger1.OcxState")));
     this.axMG17Logger1.Size = new System.Drawing.Size(664, 39);
     this.axMG17Logger1.TabIndex = 6;
     //
     // motorController1
     //
     this.motorController1.Enabled = true;
     this.motorController1.Location = new System.Drawing.Point(15, 69);
     this.motorController1.Name = "motorController1";
     this.motorController1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("motorController1.OcxState")));
     this.motorController1.Size = new System.Drawing.Size(294, 205);
     this.motorController1.TabIndex = 0;
     //
     // ControlWindow
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(724, 626);
     this.Controls.Add(this.tabControl);
     this.Controls.Add(this.menuStrip1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MainMenuStrip = this.menuStrip1;
     this.Name = "ControlWindow";
     this.Text = "EDM Hardware Control";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.WindowClosing);
     this.Load += new System.EventHandler(this.ControlWindow_Load);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.switchingLED)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.rampLED)).EndInit();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox5.ResumeLayout(false);
     this.tabControl.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.groupBox21.ResumeLayout(false);
     this.groupBox13.ResumeLayout(false);
     this.groupBox13.PerformLayout();
     this.groupBox6.ResumeLayout(false);
     this.groupBox6.PerformLayout();
     this.groupBox7.ResumeLayout(false);
     this.groupBox7.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.legend1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.leakageGraph)).EndInit();
     this.tabPage2.ResumeLayout(false);
     this.groupBox24.ResumeLayout(false);
     this.groupBox24.PerformLayout();
     this.groupBox22.ResumeLayout(false);
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.groupBox16.ResumeLayout(false);
     this.groupBox14.ResumeLayout(false);
     this.groupBox14.PerformLayout();
     this.panel4.ResumeLayout(false);
     this.panel4.PerformLayout();
     this.panel3.ResumeLayout(false);
     this.panel3.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.tabPage3.ResumeLayout(false);
     this.groupBox23.ResumeLayout(false);
     this.groupBox20.ResumeLayout(false);
     this.groupBox20.PerformLayout();
     this.groupBox9.ResumeLayout(false);
     this.groupBox9.PerformLayout();
     this.groupBox12.ResumeLayout(false);
     this.groupBox12.PerformLayout();
     this.groupBox8.ResumeLayout(false);
     this.groupBox8.PerformLayout();
     this.tabPage4.ResumeLayout(false);
     this.tabPage4.PerformLayout();
     this.groupBox25.ResumeLayout(false);
     this.groupBox25.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pumpAOMTrackBar)).EndInit();
     this.panel7.ResumeLayout(false);
     this.panel7.PerformLayout();
     this.groupBox19.ResumeLayout(false);
     this.groupBox19.PerformLayout();
     this.groupBox18.ResumeLayout(false);
     this.groupBox18.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.FLPZTVtrackBar)).EndInit();
     this.panel5.ResumeLayout(false);
     this.panel5.PerformLayout();
     this.groupBox11.ResumeLayout(false);
     this.groupBox11.PerformLayout();
     this.groupBox10.ResumeLayout(false);
     this.tabPage8.ResumeLayout(false);
     this.groupBox36.ResumeLayout(false);
     this.groupBox36.PerformLayout();
     this.panel8.ResumeLayout(false);
     this.panel8.PerformLayout();
     this.groupBox28.ResumeLayout(false);
     this.groupBox30.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpEnableLED)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpEnableSwitch)).EndInit();
     this.groupBox31.ResumeLayout(false);
     this.groupBox31.PerformLayout();
     this.groupBox29.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpPowerFaultLED)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpTempFaultLED)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpBackReflectFaultLED)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpSeedFaultLED)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.fibreAmpMasterFaultLED)).EndInit();
     this.groupBox27.ResumeLayout(false);
     this.groupBox27.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.flPZT2TrackBar)).EndInit();
     this.panel6.ResumeLayout(false);
     this.panel6.PerformLayout();
     this.groupBox26.ResumeLayout(false);
     this.groupBox26.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.diodeCurrentGraph)).EndInit();
     this.tabPage5.ResumeLayout(false);
     this.groupBox17.ResumeLayout(false);
     this.groupBox17.PerformLayout();
     this.groupBox15.ResumeLayout(false);
     this.groupBox15.PerformLayout();
     this.tabPage6.ResumeLayout(false);
     this.tabPage6.PerformLayout();
     this.groupBox34.ResumeLayout(false);
     this.groupBox34.PerformLayout();
     this.groupBox35.ResumeLayout(false);
     this.groupBox35.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pumpPolVoltTrackBar)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pumpPolModeSelectSwitch)).EndInit();
     this.groupBox32.ResumeLayout(false);
     this.groupBox32.PerformLayout();
     this.groupBox33.ResumeLayout(false);
     this.groupBox33.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.probePolVoltTrackBar)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.probePolModeSelectSwitch)).EndInit();
     this.tabPage7.ResumeLayout(false);
     this.tabPage7.PerformLayout();
     this.tabPage9.ResumeLayout(false);
     this.tabPage9.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.switchScanTTLSwitch)).EndInit();
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.motorController2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.axMG17Logger1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.motorController1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #54
0
 public void InitialValues()
 {
     Legend legend = new Legend();
     TestAsync(
         legend,
         () => Assert.IsNotNull(legend.LegendItems),
         () => Assert.IsNull(legend.Title),
         () => Assert.IsNotNull(legend.TitleStyle));
 }
Beispiel #55
0
        public void RefreshChart()
        {
            if (charttypestring == "yt" && checkE_3d.Checked)
            {
                checkE_3d.Checked = false;
                MessageBox.Show("������Χ������ʾ3dЧ����");
            }

            chart1.Series.Clear();
            LegendItem legendItem;
            LegendCell legendCell1;
            LegendCell legendCell2;
            LegendCell legendCell3;
            Legend legend = new Legend();
            legend.AutoFitText = false;

            chart1.DataBindCrossTab(c_chartlistvalue, c_str1, c_str2, c_str3, "");

            chart1.ChartAreas["Default"].BackColor = chartbackcolor;

            chart1.ChartAreas["Default"].AxisY.MinorGrid.LineStyle = ChartDashStyle.Dash;
            chart1.ChartAreas["Default"].AxisY.MinorGrid.LineColor = Color.Gray;

            chart1.ChartAreas["Default"].AxisX.MinorGrid.Enabled = false;
            chart1.ChartAreas["Default"].AxisY.MinorGrid.Enabled = true;

            //��Ӧ������ɫ
            //ArrayList chartcolor = chartbasecolor();
            for (int i = 0; i < chart1.Series.Count; i++)
            {

                legendItem = new Dundas.Charting.WinControl.LegendItem();
                legendCell1 = new Dundas.Charting.WinControl.LegendCell();
                legendCell1.CellType = Dundas.Charting.WinControl.LegendCellType.Image;
                legendCell1.Name = "Cell1";

                legendCell2 = new Dundas.Charting.WinControl.LegendCell();
                legendCell3 = new Dundas.Charting.WinControl.LegendCell();
                legendCell2.CellType = Dundas.Charting.WinControl.LegendCellType.Image;
                legendCell2.Name = "Cell2";
                legendCell3.Alignment = System.Drawing.ContentAlignment.MiddleLeft;
                legendCell3.Name = "Cell3";
                legendCell3.Text = (i + 1) + "." + chart1.Series[i].Name;

                legendCell3.TextColor = (Color)c_chartcolor[i];

                chart1.Series[i].Color = (Color)c_chartcolor[i];
                chart1.Series[i].Name = (i + 1).ToString() + "." + chart1.Series[i].Name;

                chart1.Series[i].Type = charttype(i);
                chart1.Series[i].ShowInLegend = false;
                legendItem.Cells.Add(legendCell1);
                legendItem.Cells.Add(legendCell3);
                legendItem.Tag = chart1.Series[i];
                //ʹ��ȫѡ���ǵ�һ������
                if (checkbox1chagned || isfirst == "yes")
                {
                    if (checkEall.Checked)
                    {
                        legendItem.Cells[0].Image = string.Format(Application.StartupPath + @"/img/chk_checked.png");

                    }

                    else
                    {
                        legendItem.Cells[0].Image = string.Format(Application.StartupPath + @"/img/chk_unchecked.png");

                    }
                    string tempstr = legendItem.Cells[1].Text;
                    tempstr = tempstr.Substring(tempstr.IndexOf(".") + 1, tempstr.Length - tempstr.IndexOf(".") - 1);
                    chartcheck_value(tempstr, checkEall.Checked);

                }
                else
                {
                    string tempstr = legendItem.Cells[1].Text;
                    tempstr = tempstr.Substring(tempstr.IndexOf(".") + 1, tempstr.Length - tempstr.IndexOf(".") - 1);

                    if (chartcheck_has(tempstr))
                    {
                        legendItem.Cells[0].Image = string.Format(Application.StartupPath + @"/img/chk_checked.png");

                    }
                    else
                    {
                        legendItem.Cells[0].Image = string.Format(Application.StartupPath + @"/img/chk_unchecked.png");
                    }
                }

                legend.CustomItems.Add(legendItem);

                string tempstr1 = legendItem.Cells[1].Text;
                tempstr1 = tempstr1.Substring(tempstr1.IndexOf(".") + 1, tempstr1.Length - tempstr1.IndexOf(".") - 1);
                chart1.Series[i].Enabled = chartcheck_has(tempstr1);
            }
            legend.Name = "Default";

            this.chart1.Legends.Add(legend);

            isfirst = "no";
        }
Beispiel #56
0
        private string SERVER_IP; //IP адрес сервера

        #endregion Fields

        #region Methods

        //срабатывает при нажатии кнопок "Зашифровать"/"Расшифровать"
        protected void btn_Click(object sender, EventArgs e)
        {
            try
            {
                tb_textOut.Text = "";
                userText ut = new userText(); // объект класса. Содержит информацию о введенном тексте, значение смещения, запрошенное преобразовании над текстом
                //Проверка введенных данных.
                if (!tb_textIn.Text.Equals("") && !tb_Rot.Text.Equals("") && Convert.ToInt32(tb_Rot.Text) >= 1 && Convert.ToInt32(tb_Rot.Text) <= 26)
                {
                    ut.Text = tb_textIn.Text;
                    ut.Rot = Convert.ToInt32(tb_Rot.Text);
                    if (((Button)sender).ID.Equals("btn_Enc"))
                    {
                        ut.EncOrDec = true;
                    }
                    else if (((Button)sender).ID.Equals("btn_Dec"))
                    {
                        ut.EncOrDec = false;
                    }
                }
                else
                {
                    tb_textOut.Text = "Проверьте корректность введенных данных!";
                    return;
                }

                //Готовим данные для частотной диаграммы с последующем отображение последней
                Dictionary<string, int> quantity_signs = new Dictionary<string, int>(); //Словарь. Ключ - буква английского алфавита, значение - количество её повторений в тексте
                char[] signs = tb_textIn.Text.ToCharArray();
                for (int i = 0; i < signs.Length; i++)
                {
                    if ((signs[i] >= 'A' && signs[i] <= 'Z') || (signs[i] >= 'a' && signs[i] <= 'z'))
                    {
                        if (!quantity_signs.Keys.Contains(signs[i].ToString()))
                        {
                            quantity_signs.Add(signs[i].ToString(), 1);
                        }
                        else
                        {
                            quantity_signs[signs[i].ToString()]++;
                        }
                    }
                }
                chart_Signs.Visible = true; //отображаем диаграмму
                chart_Signs.Series[0].Points.DataBindXY(quantity_signs.Keys, quantity_signs.Values); //На оси Х - буквы, на оси Y - количество повторений в тексте
                Legend leg = new Legend();
                chart_Signs.Legends.Add(leg); //отображаем легенду
                chart_Signs.ChartAreas["chart_Signs"].AxisX.Interval = 1;

                string outputData = JsonConvert.SerializeObject(ut);

                //Создание объекта TCPClient и подготовка к отправке данных
                TcpClient client = new TcpClient(SERVER_IP, PORT_NO);
                NetworkStream nwStream = client.GetStream();
                byte[] bytesToSend = ASCIIEncoding.ASCII.GetBytes(outputData);

                //Отправка данных на сервер
                nwStream.Write(bytesToSend, 0, bytesToSend.Length);

                //Получение данных от сервера. Отображение их в текстовом окне.
                byte[] bytesToRead = new byte[client.ReceiveBufferSize];
                int bytesRead = nwStream.Read(bytesToRead, 0, client.ReceiveBufferSize);
                tb_textOut.Text = JsonConvert.DeserializeObject<string>(Encoding.ASCII.GetString(bytesToRead, 0, bytesRead));

                client.Close();
            }
            catch (Exception ex)
            {
                tb_textOut.Text = ex.Message;
            }
        }
Beispiel #57
0
        public MapForm1()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            // Set table search path to value sampledatasearch registry key
            string s = Environment.CurrentDirectory;
            Microsoft.Win32.RegistryKey keySamp = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(@"SOFTWARE\MapInfo\MapXtreme\6.6");
            if ((keySamp != null) && (keySamp.GetValue("SampleDataSearchPath") != null))
            {
                s = (string)keySamp.GetValue("SampleDataSearchPath");
                if (s.EndsWith("\\")==false)
                {
                    s += "\\";
                }
                keySamp.Close();
            }
            Session.Current.TableSearchPath.Path = s;

            // Add the USA table to the map
            mapControl1.Map.Load(new MapTableLoader("usa.tab"));

            // Listen to some map events
            mapControl1.Map.ViewChangedEvent += new ViewChangedEventHandler(Map_ViewChanged);
            mapControl1.Resize += new EventHandler(mapControl1_Resize);

            // Create a ranged theme on the USA layer.
            Map map = mapControl1.Map;
            FeatureLayer lyr = map.Layers["usa"] as MapInfo.Mapping.FeatureLayer;
            RangedTheme thm = new MapInfo.Mapping.Thematics.RangedTheme(
                lyr,
                "Round(MI_Area(Obj, 'sq mi', 'Spherical'), 1)",
                "Area (square miles)",
                5,
                MapInfo.Mapping.Thematics.DistributionMethod.EqualCountPerRange);
            lyr.Modifiers.Append(thm);

            // Change the default fill colors from Red->Gray to White->Blue
            AreaStyle ars;
            // Get the style from our first bin
            CompositeStyle cs = thm.Bins[0].Style;
            // Get the region -- Area -- style
            ars = cs.AreaStyle;
            // Change the fill color
            ars.Interior = StockStyles.WhiteFillStyle();
            // Update the CompositeStyle with the new region color
            cs.AreaStyle = ars;
            // Update the bin with the new CompositeStyle settings
            thm.Bins[0].Style = cs;

            // Change the style settings on the last bin
            int nLastBin = thm.Bins.Count - 1;
            cs = thm.Bins[nLastBin].Style;
            ars = cs.AreaStyle;
            ars.Interior = StockStyles.BlueFillStyle();
            thm.Bins[nLastBin].Style = cs;

            // Tell the theme how to fill in the other bins
            thm.SpreadBy = SpreadByPart.Color;
            thm.ColorSpreadBy = ColorSpreadMethod.Rgb;
            thm.RecomputeStyles();

            // Create a legend
            legend = map.Legends.CreateLegend(new Size(5, 5));
            legend.Border = true;
            ThemeLegendFrame frame = LegendFrameFactory.CreateThemeLegendFrame("Area", "Area", thm);
            legend.Frames.Append(frame);
            frame.Title = "Area (sq. mi.)";
            map.Adornments.Append(legend);
            // Set the initial legend location to be the lower right corner of the map control.
            System.Drawing.Point pt = new System.Drawing.Point(0, 0);
            pt.X = mapControl1.Size.Width - legend.Size.Width;
            pt.Y = mapControl1.Size.Height - legend.Size.Height;
            legend.Location = pt;
        }
        private void ChartPlotter_Loaded(object sender, RoutedEventArgs e)
        {
         
            if (!alreadyLoaded)
            {
                VerticalAxis = new VerticalAxis();

                #region Different initialization
                if (settings.HorizontalAxisType == ChartPlotterSettings.AxisType.NumericAxis)
                {
                  var h = new HorizontalAxis();
                    HorizontalAxis =h;
                }
                else HorizontalAxis = new HorizontalDateTimeAxis();

                if (settings.IsButtonNavigationPresents)
                {
                    buttonsNavigation = new buttonsNavigation(this);
                    HoveringStackPanel.Children.Add(buttonsNavigation);
                }

                if (settings.IsLegendPresents)
                {
                    legend = new Legend(this);
                    ScrollWraper legendWraper = new ScrollWraper(legend);
                    legendWraper.Margin = new Thickness(5, 10, 10, 10);
                    HoveringStackPanel.Children.Add(legendWraper);
                }
                #endregion

                Children.Add(axisGrid);
              if (mouseNavigation!=null)
                Children.Add(mouseNavigation);

              
              
                MainCanvas.SizeChanged += new SizeChangedEventHandler(MainCanvas_SizeChanged);
                HoveringStackPanel.SizeChanged += new SizeChangedEventHandler(hoveringPanel_SizeChanged);
                Viewport.FitToView();
                alreadyLoaded = true;
            }
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (this.IsPostBack)
            {
                if (this.CheckBox1.Checked)
                {
                    // Add a second legend
                    Legend secondLegend = new Legend("Second");
                    secondLegend.BackColor = Color.FromArgb(((System.Byte)(220)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
                    secondLegend.BorderColor = Color.Gray;
                    secondLegend.Font = this.Chart1.Legends["Default"].Font;

                    this.Chart1.Legends.Add(secondLegend);

                    // Associate Series 2 with the second legend
                    this.Chart1.Series["Series 2"].Legend = "Second";

                    // Dock the default legend inside the first chart area
                    this.Chart1.Legends["Default"].IsDockedInsideChartArea = true;
                    this.Chart1.Legends["Default"].DockedToChartArea = "ChartArea1";

                    // Dock the second legend inside the second chart area
                    secondLegend.IsDockedInsideChartArea = true;
                    secondLegend.DockedToChartArea = "Chart Area 2";
                }
            }
        }
        /// <summary>
        /// Method to create a legend <see cref="IMapDecoration"/> for the provided map
        /// </summary>
        /// <param name="map">The map</param>
        /// <param name="settings"></param>
        /// <returns>A legend map decoration</returns>
        public virtual ILegend Create(Map map, ILegendSettings settings = null)
        {
            settings = settings ?? LegendSettings;

            var res = new Legend(map, this, settings)
            {
                Root = new LegendItem
                {
                    Label = "Map",
                    LabelFont = settings.HeaderFont,
                    LabelBrush = settings.ForeColor,
                    Item = map,
                    Expanded = true
                    
                }
            };

            var lif = ((ILegendFactory) this)[ map.Layers];
            if (map.VariableLayers.Count > 0)
                res.Root.SubItems.Add(lif.Create(LegendSettings, map.VariableLayers));

            if (map.Layers.Count > 0)
                res.Root.SubItems.Add(lif.Create(LegendSettings, map.Layers));

            if (map.BackgroundLayer.Count > 0)
                res.Root.SubItems.Add(lif.Create(LegendSettings, map.BackgroundLayer));

            res.BorderColor = Color.Tomato;
            res.BorderMargin = new Size(5, 5);
            res.BorderWidth = 2;
            res.RoundedEdges = true;
            res.BackgroundColor = Color.LightBlue;
            
            return res;
        }