コード例 #1
0
 public GraphHandler(PlotterDisplayEx _display, MainForm _mf, int _puffersize)
 {
     this.mf = _mf;
     this.display = _display;
     this.SampleCnt = (60000 * _puffersize) / 50;
     this.GraphDataCnt = 0;
     LMotorA = new float[this.SampleCnt];
     RMotorA = new float[SampleCnt];
     AccuA = new float[SampleCnt];
     TempA = new float[SampleCnt];
 }
コード例 #2
0
ファイル: FrmMain.cs プロジェクト: jramshur/SRD_GUI
        //protected override CreateParams CreateParams
        //{
        //    get
        //    {
        //        CreateParams cp = base.CreateParams;
        //        cp.ExStyle |= 0x02000000;  // Turn on WS_EX_COMPOSITED
        //        //return cp;
        //    }
        //}
        /// <summary>
        /// Construction of Main Form
        /// </summary>
        public FrmMain()
        {
            try
            {

                InitializeComponent();//INITILIZE METHODS AND VARIABLE
                this.Size = new Size(910, 738);
                //this.BackgroundImageLayout = ImageLayout.Stretch;
                double w = btnSet.Location.X + btnSet.Width;
                double x = w - ClearAllGraphsbutton.Width;
                //ClearAllGraphsbutton.Location = new Point((int)x, 17);
                xDisplayRange = Convert.ToInt32(ConfigurationManager.AppSettings["xDisplayRange"]);
                graphRefreshTime = Convert.ToInt32(ConfigurationManager.AppSettings["graphRefreshTime"]);

                //panel1.Width = panel3.Width = panel4.Width = panel5.Width = 302;
                //TODO:Testing. next and prev- START
                 //ApplicationUtil.ApplicationUtil.addFileNameToList(2, "27-Feb-2013_19_10_32_181.csv");
                 //ApplicationUtil.ApplicationUtil.addFileNameToList(4, "27-Feb-2013_19_10_32_184.csv");
                 //ApplicationUtil.ApplicationUtil.addFileNameToList(4, "27-Feb-2013_19_10_32_188.csv");
                 //ApplicationUtil.ApplicationUtil.addFileNameToList(4, "27-Feb-2013_19_10_32_189.csv");
                 //ApplicationUtil.ApplicationUtil.addFileNameToList(2, "27-Feb-2013_19_10_32_183.csv");
                 //ApplicationUtil.ApplicationUtil.addFileNameToList(2048, "27-Feb-2013_19_10_32_187.csv");
                //END
                txtXRange.Text = xDisplayRange.ToString();
                txtXRange.Enabled = false;
                btnSet.Enabled = false;

                plotterDisplayEx1.Load+=new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx2.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx3.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx4.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx5.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx6.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx7.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx8.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx9.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx10.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx11.Load += new EventHandler(plotterDisplayEx1_Load);
                plotterDisplayEx12.Load += new EventHandler(plotterDisplayEx1_Load);

               // RendeRTestGraph();

                setDelegateStatus = new setDeviceStatus(SetHHUMessage);
                //drawGraphdelegate = new drawGraph(DrawLiveGraph);
                button5.Visible = false;
                PlotterDisplayEx graph = new PlotterDisplayEx();
                graphdelegate = new Graphdelegate(RenderGraph);
                createFileDelegate = new CreateFileDelegate(createCSVFile);
                if (Program.communicator == null || Program.communicator.serialPort == null || Program.communicator.serialPort.IsOpen == false)
                {
                    deviceCon();
                }

                SetHeightOfGraph();

                SetDefaultUI();

                VOManager.DASCommunicator.SetStatusEvent += new VOManager.SetDACStatusDelegate(DASCommunicator_SetStatusEvent);
                VOManager.DASCommunicator.DirectoryCreationErrorEvent+=new VOManager.DirectoryCreationError(DASCommunicator_DirectoryCreationErrorEvent);
                //GraphInitialiser();

                //SetDirectoryPath
                Configuration oConfig = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
                string DirectoryPath = ConfigurationManager.AppSettings["DirectoryPath"];
                if (changedpath == null)
                {

                    lblDirectorypath.Text = ApplicationUtil.ApplicationUtil.GetApplicationPath();
                    String path = ApplicationUtil.ApplicationUtil.GetApplicationPath();
                    filenames = ApplicationUtil.ApplicationUtil.GetSubDirectoryFiles(path, ".csv");
                    changedpath = lblDirectorypath.Text;

                }
                else
                {
                    lblDirectorypath.Text = changedpath;

                    filenames = ApplicationUtil.ApplicationUtil.GetSubDirectoryFiles(changedpath, ".csv");
                }

                if (DirectoryPath != null && DirectoryPath != "")
                {
                    changedpath = DirectoryPath;
                    lblDirectorypath.Text = changedpath;

                }

                ///Map for ADC resolution
                samplingRateMap = new Dictionary<int, double>();
                samplingRateMap.Add(0, 1);
                samplingRateMap.Add(1, 2);
                samplingRateMap.Add(2, 3);
                samplingRateMap.Add(3, 4);
                samplingRateMap.Add(4, 5);
                samplingRateMap.Add(5, 6);
                samplingRateMap.Add(6, 10);
                samplingRateMap.Add(7, 12.5);
                samplingRateMap.Add(8, 15);
                backgroundWorker = new BackgroundWorker();
                backgroundWorker.WorkerSupportsCancellation = true;
                backgroundWorker.DoWork += backgroundWorker_DoWork;
                backgroundWorker.RunWorkerCompleted +=new RunWorkerCompletedEventHandler(backgroundWorker_RunWorkerCompleted);
                PlotterDisplayEx graphControl = new PlotterDisplayEx();
                //thread = new Thread(DoGraphActivity);

                //thread.IsBackground = true;
               // thread.Start();
               DASCommunicator.FileLoggingQueue = new RequestQ.QueueThread<object>();
               DASCommunicator. FileLoggingQueue.ProcessThreadObjectEvent += new RequestQ.QueueThread<object>.DelegateProcessThreadObject(FileLoggingQueue_ProcessThreadObjectEvent);
               DASCommunicator.FileLoggingQueue.Start();
               lblVersion.Text += Assembly.GetExecutingAssembly().GetName().Version.ToString();
               SetHHUMessage(false, false);
               timerStatusMsg.Start();
            }
            catch (Exception ex)
            {
                m_logger.Error(ex);
            }
        }
コード例 #3
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.display = new GraphLib.PlotterDisplayEx();
            this.groupNetwork = new System.Windows.Forms.GroupBox();
            this.buttonCreateNetwork = new System.Windows.Forms.Button();
            this.radioHyperbolic = new System.Windows.Forms.RadioButton();
            this.radioSigmoid = new System.Windows.Forms.RadioButton();
            this.label1 = new System.Windows.Forms.Label();
            this.textLayers = new System.Windows.Forms.TextBox();
            this.buttonRandomize = new System.Windows.Forms.Button();
            this.textSeed = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.groupWeights = new System.Windows.Forms.GroupBox();
            this.buttonGetWeights = new System.Windows.Forms.Button();
            this.buttonSetWeights = new System.Windows.Forms.Button();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.groupTraining = new System.Windows.Forms.GroupBox();
            this.textStopTime = new System.Windows.Forms.TextBox();
            this.label9 = new System.Windows.Forms.Label();
            this.textTimes = new System.Windows.Forms.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.numericTrainPercent = new System.Windows.Forms.NumericUpDown();
            this.textError = new System.Windows.Forms.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.textDeltaStop = new System.Windows.Forms.TextBox();
            this.textErrorStop = new System.Windows.Forms.TextBox();
            this.textLambda = new System.Windows.Forms.TextBox();
            this.textAlpha = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.buttonTrain = new System.Windows.Forms.Button();
            this.groupPlotting = new System.Windows.Forms.GroupBox();
            this.textYResolution = new System.Windows.Forms.TextBox();
            this.label10 = new System.Windows.Forms.Label();
            this.checkTest3 = new System.Windows.Forms.CheckBox();
            this.checkTrain3 = new System.Windows.Forms.CheckBox();
            this.checkTest2 = new System.Windows.Forms.CheckBox();
            this.checkTrain2 = new System.Windows.Forms.CheckBox();
            this.buttonPlot = new System.Windows.Forms.Button();
            this.checkNetwork = new System.Windows.Forms.CheckBox();
            this.checkTest = new System.Windows.Forms.CheckBox();
            this.checkTrain = new System.Windows.Forms.CheckBox();
            this.groupData = new System.Windows.Forms.GroupBox();
            this.buttonLoadData = new System.Windows.Forms.Button();
            this.colorTrain = new System.Windows.Forms.ColorDialog();
            this.colorNetwork = new System.Windows.Forms.ColorDialog();
            this.openDataFile = new System.Windows.Forms.OpenFileDialog();
            this.radioCombined = new System.Windows.Forms.RadioButton();
            this.radioAbsolute = new System.Windows.Forms.RadioButton();
            this.radioRelative = new System.Windows.Forms.RadioButton();
            this.textControlError = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.groupNetwork.SuspendLayout();
            this.groupWeights.SuspendLayout();
            this.groupTraining.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericTrainPercent)).BeginInit();
            this.groupPlotting.SuspendLayout();
            this.groupData.SuspendLayout();
            this.SuspendLayout();
            // 
            // display
            // 
            this.display.BackColor = System.Drawing.Color.White;
            this.display.BackgroundColorBot = System.Drawing.Color.White;
            this.display.BackgroundColorTop = System.Drawing.Color.White;
            this.display.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.display.DashedGridColor = System.Drawing.Color.Blue;
            this.display.Dock = System.Windows.Forms.DockStyle.Top;
            this.display.DoubleBuffering = true;
            this.display.Location = new System.Drawing.Point(0, 0);
            this.display.Name = "display";
            this.display.PlaySpeed = 0.5F;
            this.display.ShowMovingGrid = false;
            this.display.Size = new System.Drawing.Size(1066, 548);
            this.display.SolidGridColor = System.Drawing.Color.Blue;
            this.display.TabIndex = 1;
            // 
            // groupNetwork
            // 
            this.groupNetwork.Controls.Add(this.radioCombined);
            this.groupNetwork.Controls.Add(this.buttonCreateNetwork);
            this.groupNetwork.Controls.Add(this.radioHyperbolic);
            this.groupNetwork.Controls.Add(this.radioSigmoid);
            this.groupNetwork.Controls.Add(this.label1);
            this.groupNetwork.Controls.Add(this.textLayers);
            this.groupNetwork.Location = new System.Drawing.Point(12, 573);
            this.groupNetwork.Name = "groupNetwork";
            this.groupNetwork.Size = new System.Drawing.Size(163, 185);
            this.groupNetwork.TabIndex = 3;
            this.groupNetwork.TabStop = false;
            this.groupNetwork.Text = "Network structure";
            // 
            // buttonCreateNetwork
            // 
            this.buttonCreateNetwork.Location = new System.Drawing.Point(8, 118);
            this.buttonCreateNetwork.Name = "buttonCreateNetwork";
            this.buttonCreateNetwork.Size = new System.Drawing.Size(138, 23);
            this.buttonCreateNetwork.TabIndex = 4;
            this.buttonCreateNetwork.Text = "Create network";
            this.buttonCreateNetwork.UseVisualStyleBackColor = true;
            this.buttonCreateNetwork.Click += new System.EventHandler(this.buttonCreateNetwork_Click);
            // 
            // radioHyperbolic
            // 
            this.radioHyperbolic.AutoSize = true;
            this.radioHyperbolic.Location = new System.Drawing.Point(10, 42);
            this.radioHyperbolic.Name = "radioHyperbolic";
            this.radioHyperbolic.Size = new System.Drawing.Size(75, 17);
            this.radioHyperbolic.TabIndex = 3;
            this.radioHyperbolic.Text = "Hyperbolic";
            this.radioHyperbolic.UseVisualStyleBackColor = true;
            // 
            // radioSigmoid
            // 
            this.radioSigmoid.AutoSize = true;
            this.radioSigmoid.Checked = true;
            this.radioSigmoid.Location = new System.Drawing.Point(9, 20);
            this.radioSigmoid.Name = "radioSigmoid";
            this.radioSigmoid.Size = new System.Drawing.Size(79, 17);
            this.radioSigmoid.TabIndex = 2;
            this.radioSigmoid.Text = "Logarithmic";
            this.radioSigmoid.UseVisualStyleBackColor = true;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(5, 94);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(38, 13);
            this.label1.TabIndex = 1;
            this.label1.Text = "Layers";
            // 
            // textLayers
            // 
            this.textLayers.Location = new System.Drawing.Point(46, 91);
            this.textLayers.Name = "textLayers";
            this.textLayers.Size = new System.Drawing.Size(100, 20);
            this.textLayers.TabIndex = 0;
            this.textLayers.Text = "5;4;4;1";
            // 
            // buttonRandomize
            // 
            this.buttonRandomize.Location = new System.Drawing.Point(9, 50);
            this.buttonRandomize.Name = "buttonRandomize";
            this.buttonRandomize.Size = new System.Drawing.Size(109, 23);
            this.buttonRandomize.TabIndex = 4;
            this.buttonRandomize.Text = "Randomize weights";
            this.buttonRandomize.UseVisualStyleBackColor = true;
            this.buttonRandomize.Click += new System.EventHandler(this.buttonRandomize_Click);
            // 
            // textSeed
            // 
            this.textSeed.Location = new System.Drawing.Point(115, 24);
            this.textSeed.Name = "textSeed";
            this.textSeed.Size = new System.Drawing.Size(25, 20);
            this.textSeed.TabIndex = 5;
            this.textSeed.Text = "-1";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(6, 24);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(103, 13);
            this.label2.TabIndex = 6;
            this.label2.Text = "Randomization seed";
            // 
            // groupWeights
            // 
            this.groupWeights.Controls.Add(this.buttonGetWeights);
            this.groupWeights.Controls.Add(this.buttonSetWeights);
            this.groupWeights.Controls.Add(this.textBox2);
            this.groupWeights.Controls.Add(this.label2);
            this.groupWeights.Controls.Add(this.textSeed);
            this.groupWeights.Controls.Add(this.buttonRandomize);
            this.groupWeights.Enabled = false;
            this.groupWeights.Location = new System.Drawing.Point(181, 573);
            this.groupWeights.Name = "groupWeights";
            this.groupWeights.Size = new System.Drawing.Size(174, 144);
            this.groupWeights.TabIndex = 4;
            this.groupWeights.TabStop = false;
            this.groupWeights.Text = "Weights";
            // 
            // buttonGetWeights
            // 
            this.buttonGetWeights.Location = new System.Drawing.Point(9, 105);
            this.buttonGetWeights.Name = "buttonGetWeights";
            this.buttonGetWeights.Size = new System.Drawing.Size(75, 23);
            this.buttonGetWeights.TabIndex = 9;
            this.buttonGetWeights.Text = "Get weights";
            this.buttonGetWeights.UseVisualStyleBackColor = true;
            this.buttonGetWeights.Visible = false;
            // 
            // buttonSetWeights
            // 
            this.buttonSetWeights.Location = new System.Drawing.Point(90, 105);
            this.buttonSetWeights.Name = "buttonSetWeights";
            this.buttonSetWeights.Size = new System.Drawing.Size(75, 23);
            this.buttonSetWeights.TabIndex = 8;
            this.buttonSetWeights.Text = "Set weights";
            this.buttonSetWeights.UseVisualStyleBackColor = true;
            this.buttonSetWeights.Visible = false;
            // 
            // textBox2
            // 
            this.textBox2.Location = new System.Drawing.Point(9, 79);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(156, 20);
            this.textBox2.TabIndex = 7;
            this.textBox2.Visible = false;
            // 
            // groupTraining
            // 
            this.groupTraining.Controls.Add(this.textControlError);
            this.groupTraining.Controls.Add(this.label11);
            this.groupTraining.Controls.Add(this.textStopTime);
            this.groupTraining.Controls.Add(this.label9);
            this.groupTraining.Controls.Add(this.textTimes);
            this.groupTraining.Controls.Add(this.label8);
            this.groupTraining.Controls.Add(this.numericTrainPercent);
            this.groupTraining.Controls.Add(this.textError);
            this.groupTraining.Controls.Add(this.label7);
            this.groupTraining.Controls.Add(this.textDeltaStop);
            this.groupTraining.Controls.Add(this.textErrorStop);
            this.groupTraining.Controls.Add(this.textLambda);
            this.groupTraining.Controls.Add(this.textAlpha);
            this.groupTraining.Controls.Add(this.label6);
            this.groupTraining.Controls.Add(this.label5);
            this.groupTraining.Controls.Add(this.label4);
            this.groupTraining.Controls.Add(this.label3);
            this.groupTraining.Controls.Add(this.buttonTrain);
            this.groupTraining.Enabled = false;
            this.groupTraining.Location = new System.Drawing.Point(480, 573);
            this.groupTraining.Name = "groupTraining";
            this.groupTraining.Size = new System.Drawing.Size(223, 219);
            this.groupTraining.TabIndex = 5;
            this.groupTraining.TabStop = false;
            this.groupTraining.Text = "Training";
            // 
            // textStopTime
            // 
            this.textStopTime.Location = new System.Drawing.Point(80, 117);
            this.textStopTime.Name = "textStopTime";
            this.textStopTime.Size = new System.Drawing.Size(51, 20);
            this.textStopTime.TabIndex = 13;
            this.textStopTime.Text = "10";
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(4, 120);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(77, 13);
            this.label9.TabIndex = 12;
            this.label9.Text = "Stop on time(s)";
            // 
            // textTimes
            // 
            this.textTimes.Location = new System.Drawing.Point(9, 188);
            this.textTimes.Name = "textTimes";
            this.textTimes.ReadOnly = true;
            this.textTimes.Size = new System.Drawing.Size(41, 20);
            this.textTimes.TabIndex = 11;
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(6, 172);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(35, 13);
            this.label8.TabIndex = 10;
            this.label8.Text = "Times";
            // 
            // numericTrainPercent
            // 
            this.numericTrainPercent.Location = new System.Drawing.Point(140, 146);
            this.numericTrainPercent.Minimum = new decimal(new int[] {
            1,
            0,
            0,
            0});
            this.numericTrainPercent.Name = "numericTrainPercent";
            this.numericTrainPercent.Size = new System.Drawing.Size(37, 20);
            this.numericTrainPercent.TabIndex = 9;
            this.numericTrainPercent.Value = new decimal(new int[] {
            90,
            0,
            0,
            0});
            // 
            // textError
            // 
            this.textError.Location = new System.Drawing.Point(62, 188);
            this.textError.Name = "textError";
            this.textError.ReadOnly = true;
            this.textError.Size = new System.Drawing.Size(51, 20);
            this.textError.TabIndex = 8;
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(59, 172);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(72, 13);
            this.label7.TabIndex = 7;
            this.label7.Text = "Train set error";
            // 
            // textDeltaStop
            // 
            this.textDeltaStop.Location = new System.Drawing.Point(80, 95);
            this.textDeltaStop.Name = "textDeltaStop";
            this.textDeltaStop.Size = new System.Drawing.Size(51, 20);
            this.textDeltaStop.TabIndex = 8;
            this.textDeltaStop.Text = "0.00001";
            // 
            // textErrorStop
            // 
            this.textErrorStop.Location = new System.Drawing.Point(80, 72);
            this.textErrorStop.Name = "textErrorStop";
            this.textErrorStop.Size = new System.Drawing.Size(51, 20);
            this.textErrorStop.TabIndex = 7;
            this.textErrorStop.Text = "0.01";
            // 
            // textLambda
            // 
            this.textLambda.Location = new System.Drawing.Point(80, 43);
            this.textLambda.Name = "textLambda";
            this.textLambda.Size = new System.Drawing.Size(51, 20);
            this.textLambda.TabIndex = 6;
            this.textLambda.Text = "0.0001";
            // 
            // textAlpha
            // 
            this.textAlpha.Location = new System.Drawing.Point(80, 19);
            this.textAlpha.Name = "textAlpha";
            this.textAlpha.Size = new System.Drawing.Size(51, 20);
            this.textAlpha.TabIndex = 5;
            this.textAlpha.Text = "1";
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(6, 98);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(70, 13);
            this.label6.TabIndex = 4;
            this.label6.Text = "Stop on delta";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(6, 75);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(68, 13);
            this.label5.TabIndex = 3;
            this.label5.Text = "Stop on error";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(6, 46);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(45, 13);
            this.label4.TabIndex = 2;
            this.label4.Text = "Lambda";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(6, 22);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(34, 13);
            this.label3.TabIndex = 1;
            this.label3.Text = "Alpha";
            // 
            // buttonTrain
            // 
            this.buttonTrain.Location = new System.Drawing.Point(9, 143);
            this.buttonTrain.Name = "buttonTrain";
            this.buttonTrain.Size = new System.Drawing.Size(125, 23);
            this.buttonTrain.TabIndex = 0;
            this.buttonTrain.Text = "Train prediction";
            this.buttonTrain.UseVisualStyleBackColor = true;
            this.buttonTrain.Click += new System.EventHandler(this.buttonTrain_Click);
            // 
            // groupPlotting
            // 
            this.groupPlotting.Controls.Add(this.textYResolution);
            this.groupPlotting.Controls.Add(this.label10);
            this.groupPlotting.Controls.Add(this.checkTest3);
            this.groupPlotting.Controls.Add(this.checkTrain3);
            this.groupPlotting.Controls.Add(this.checkTest2);
            this.groupPlotting.Controls.Add(this.checkTrain2);
            this.groupPlotting.Controls.Add(this.buttonPlot);
            this.groupPlotting.Controls.Add(this.checkNetwork);
            this.groupPlotting.Controls.Add(this.checkTest);
            this.groupPlotting.Controls.Add(this.checkTrain);
            this.groupPlotting.Enabled = false;
            this.groupPlotting.Location = new System.Drawing.Point(724, 573);
            this.groupPlotting.Name = "groupPlotting";
            this.groupPlotting.Size = new System.Drawing.Size(291, 128);
            this.groupPlotting.TabIndex = 6;
            this.groupPlotting.TabStop = false;
            this.groupPlotting.Text = "Plotting";
            // 
            // textYResolution
            // 
            this.textYResolution.Location = new System.Drawing.Point(160, 99);
            this.textYResolution.Name = "textYResolution";
            this.textYResolution.Size = new System.Drawing.Size(51, 20);
            this.textYResolution.TabIndex = 15;
            this.textYResolution.Text = "200";
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(92, 102);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(62, 13);
            this.label10.TabIndex = 14;
            this.label10.Text = "Y resolution";
            // 
            // checkTest3
            // 
            this.checkTest3.AutoSize = true;
            this.checkTest3.Enabled = false;
            this.checkTest3.Location = new System.Drawing.Point(187, 52);
            this.checkTest3.Name = "checkTest3";
            this.checkTest3.Size = new System.Drawing.Size(79, 17);
            this.checkTest3.TabIndex = 9;
            this.checkTest3.Text = "Test step 3";
            this.checkTest3.UseVisualStyleBackColor = true;
            // 
            // checkTrain3
            // 
            this.checkTrain3.AutoSize = true;
            this.checkTrain3.Enabled = false;
            this.checkTrain3.Location = new System.Drawing.Point(187, 26);
            this.checkTrain3.Name = "checkTrain3";
            this.checkTrain3.Size = new System.Drawing.Size(82, 17);
            this.checkTrain3.TabIndex = 8;
            this.checkTrain3.Text = "Train step 3";
            this.checkTrain3.UseVisualStyleBackColor = true;
            // 
            // checkTest2
            // 
            this.checkTest2.AutoSize = true;
            this.checkTest2.Enabled = false;
            this.checkTest2.Location = new System.Drawing.Point(98, 52);
            this.checkTest2.Name = "checkTest2";
            this.checkTest2.Size = new System.Drawing.Size(79, 17);
            this.checkTest2.TabIndex = 7;
            this.checkTest2.Text = "Test step 2";
            this.checkTest2.UseVisualStyleBackColor = true;
            // 
            // checkTrain2
            // 
            this.checkTrain2.AutoSize = true;
            this.checkTrain2.Enabled = false;
            this.checkTrain2.Location = new System.Drawing.Point(95, 27);
            this.checkTrain2.Name = "checkTrain2";
            this.checkTrain2.Size = new System.Drawing.Size(82, 17);
            this.checkTrain2.TabIndex = 6;
            this.checkTrain2.Text = "Train step 2";
            this.checkTrain2.UseVisualStyleBackColor = true;
            // 
            // buttonPlot
            // 
            this.buttonPlot.Location = new System.Drawing.Point(6, 94);
            this.buttonPlot.Name = "buttonPlot";
            this.buttonPlot.Size = new System.Drawing.Size(75, 23);
            this.buttonPlot.TabIndex = 5;
            this.buttonPlot.Text = "Plot";
            this.buttonPlot.UseVisualStyleBackColor = true;
            this.buttonPlot.Click += new System.EventHandler(this.buttonPlot_Click);
            // 
            // checkNetwork
            // 
            this.checkNetwork.AutoSize = true;
            this.checkNetwork.Checked = true;
            this.checkNetwork.CheckState = System.Windows.Forms.CheckState.Checked;
            this.checkNetwork.Location = new System.Drawing.Point(6, 71);
            this.checkNetwork.Name = "checkNetwork";
            this.checkNetwork.Size = new System.Drawing.Size(66, 17);
            this.checkNetwork.TabIndex = 2;
            this.checkNetwork.Text = "Network";
            this.checkNetwork.UseVisualStyleBackColor = true;
            // 
            // checkTest
            // 
            this.checkTest.AutoSize = true;
            this.checkTest.Checked = true;
            this.checkTest.CheckState = System.Windows.Forms.CheckState.Checked;
            this.checkTest.Location = new System.Drawing.Point(6, 48);
            this.checkTest.Name = "checkTest";
            this.checkTest.Size = new System.Drawing.Size(83, 17);
            this.checkTest.TabIndex = 1;
            this.checkTest.Text = "Test sample";
            this.checkTest.UseVisualStyleBackColor = true;
            // 
            // checkTrain
            // 
            this.checkTrain.AutoSize = true;
            this.checkTrain.Checked = true;
            this.checkTrain.CheckState = System.Windows.Forms.CheckState.Checked;
            this.checkTrain.Location = new System.Drawing.Point(6, 24);
            this.checkTrain.Name = "checkTrain";
            this.checkTrain.Size = new System.Drawing.Size(86, 17);
            this.checkTrain.TabIndex = 0;
            this.checkTrain.Text = "Train sample";
            this.checkTrain.UseVisualStyleBackColor = true;
            // 
            // groupData
            // 
            this.groupData.Controls.Add(this.radioAbsolute);
            this.groupData.Controls.Add(this.radioRelative);
            this.groupData.Controls.Add(this.buttonLoadData);
            this.groupData.Enabled = false;
            this.groupData.Location = new System.Drawing.Point(361, 573);
            this.groupData.Name = "groupData";
            this.groupData.Size = new System.Drawing.Size(113, 100);
            this.groupData.TabIndex = 10;
            this.groupData.TabStop = false;
            this.groupData.Text = "Data";
            // 
            // buttonLoadData
            // 
            this.buttonLoadData.Location = new System.Drawing.Point(6, 24);
            this.buttonLoadData.Name = "buttonLoadData";
            this.buttonLoadData.Size = new System.Drawing.Size(75, 23);
            this.buttonLoadData.TabIndex = 0;
            this.buttonLoadData.Text = "From file";
            this.buttonLoadData.UseVisualStyleBackColor = true;
            this.buttonLoadData.Click += new System.EventHandler(this.buttonLoadData_Click);
            // 
            // openDataFile
            // 
            this.openDataFile.FileName = "openFileDialog1";
            // 
            // radioCombined
            // 
            this.radioCombined.AutoSize = true;
            this.radioCombined.Location = new System.Drawing.Point(10, 65);
            this.radioCombined.Name = "radioCombined";
            this.radioCombined.Size = new System.Drawing.Size(72, 17);
            this.radioCombined.TabIndex = 5;
            this.radioCombined.Text = "Combined";
            this.radioCombined.UseVisualStyleBackColor = true;
            // 
            // radioAbsolute
            // 
            this.radioAbsolute.AutoSize = true;
            this.radioAbsolute.Location = new System.Drawing.Point(7, 74);
            this.radioAbsolute.Name = "radioAbsolute";
            this.radioAbsolute.Size = new System.Drawing.Size(66, 17);
            this.radioAbsolute.TabIndex = 5;
            this.radioAbsolute.Text = "Absolute";
            this.radioAbsolute.UseVisualStyleBackColor = true;
            // 
            // radioRelative
            // 
            this.radioRelative.AutoSize = true;
            this.radioRelative.Checked = true;
            this.radioRelative.Location = new System.Drawing.Point(6, 52);
            this.radioRelative.Name = "radioRelative";
            this.radioRelative.Size = new System.Drawing.Size(64, 17);
            this.radioRelative.TabIndex = 4;
            this.radioRelative.Text = "Relative";
            this.radioRelative.UseVisualStyleBackColor = true;
            // 
            // textControlError
            // 
            this.textControlError.Location = new System.Drawing.Point(140, 188);
            this.textControlError.Name = "textControlError";
            this.textControlError.ReadOnly = true;
            this.textControlError.Size = new System.Drawing.Size(51, 20);
            this.textControlError.TabIndex = 15;
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(137, 172);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(81, 13);
            this.label11.TabIndex = 14;
            this.label11.Text = "Control set error";
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1066, 795);
            this.Controls.Add(this.groupData);
            this.Controls.Add(this.groupPlotting);
            this.Controls.Add(this.groupTraining);
            this.Controls.Add(this.groupWeights);
            this.Controls.Add(this.groupNetwork);
            this.Controls.Add(this.display);
            this.Name = "MainForm";
            this.Text = "Neuron Network";
            this.groupNetwork.ResumeLayout(false);
            this.groupNetwork.PerformLayout();
            this.groupWeights.ResumeLayout(false);
            this.groupWeights.PerformLayout();
            this.groupTraining.ResumeLayout(false);
            this.groupTraining.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericTrainPercent)).EndInit();
            this.groupPlotting.ResumeLayout(false);
            this.groupPlotting.PerformLayout();
            this.groupData.ResumeLayout(false);
            this.groupData.PerformLayout();
            this.ResumeLayout(false);

        }
コード例 #4
0
ファイル: FrmMain.cs プロジェクト: jramshur/SRD_GUI
        /// <summary>
        /// Draw graph
        /// </summary>
        /// <param name="collection"></param>
        private void DrawGraph(ArrayList collection)
        {
            PlotterDisplayEx graphControl1 = new PlotterDisplayEx();
            PlotterDisplayEx graphControl2 = new PlotterDisplayEx();
            lock (m_objLockConfig)
            {
                int channel = 1;

                List<ConfigurationVO> configlist = (List<ConfigurationVO>)collection[0];
                int channel_ref = configlist[0].ChannelValue;

                int channelA = 0;
                int channelB = 0;
                if ((ConfigurationVO.GetInstance().mode_operation != EnumAndConstants.CONTINEOUS))
                {
                    if (((List<ADCVO>)collection[1])[0].Channel != 0)
                    {
                        channelA = ((List<ADCVO>)collection[1])[0].Channel;
                    }
                    if (collection.Count > 2)
                    {
                        channelB = ((List<ADCVO>)collection[2])[2].Channel;
                    }
                }
                else
                {
                    List<int> channels = new List<int>();
                    ApplicationUtil.ApplicationUtil.GetValueFromNumber((UInt16)channel_ref, out channels);
                    channelA = channels[0];
                }

                // chek for channel values being -1
                if (channelA != 0)
                {
                    graphControl1 = GetTargetGraphControlForChannelB(channelA);
                }
                if (channelB != 0)
                {
                    graphControl2 = GetTargetGraphControlForChannelB(channelB);
                }
                else
                    graphControl2 = null;

                List<ADCVO> adclist = (List<ADCVO>)collection[1];
                //Calculate the max and min y axis values to initialize the graph
                ApplicationUtil.ApplicationUtil.CalculateMinMaxADCValues(adclist);

                int adcResolution = configlist[0].adcresolution;
                if (adclist.Count == 0)
                {
                    return;
                }

                repeatCount = adclist.Count;
                int maxadcForChannelTwo = 0;
                List<ADCVO> adclistChannelTwo = new List<ADCVO>();
                if (collection.Count == 3)
                {
                    adclistChannelTwo = (List<ADCVO>)collection[2];
                    if (adclistChannelTwo.Count > 0)
                        maxadcForChannelTwo = adclistChannelTwo[adclistChannelTwo.Count - 1].AdcValue;
                }
                else
                {
                    channel = channel_ref;
                }

                DateTime minDate = DateTime.Now;
                minDate = adclist[0].AdcDate;

                if (null != firstChannelArray)
                {
                    if (firstChannelArray.Count >= 100000)
                    {
                        firstChannelArray.RemoveRange(0, 25000);
                    }
                }

                graphControl1.DataSources[0].GraphColor = Color.Green;

                if (firstChannelArray == null)
                {
                    firstChannelArray = new List<cPoint>();
                    firstChannelY = 0;
                }
                if (Program.Mode_Operation != EnumAndConstants.CONTINEOUS)
                {
                    firstChannelArray = new List<cPoint>();
                    firstChannelY = 0;
                }

                if (Program.IsOnlineMode && Program.Mode_Operation != configlist[0].mode_operation)
                    return;
                if (configlist[0].mode_operation != EnumAndConstants.CONTINEOUS)
                {
                    firstChannelArray = new List<cPoint>();
                    firstChannelY = 0;
                }

                int tempCounter = 0;

                while (tempCounter < adclist.Count)
                {
                    ADCVO point = adclist.ElementAt(tempCounter);
                    double adv = Convert.ToDouble(point.AdcValue);
                    firstChannelY += ApplicationUtil.ApplicationUtil.SAMPLING_RATE_DATE_ADD_VALUE;
                    string d = string.Format("{0:0.00}", firstChannelY);
                    double xPoint = double.Parse(d);
                    cPoint cpoint = new cPoint();
                    cpoint.x = xPoint;
                    cpoint.y = adv;
                    firstChannelArray.Add(cpoint);
                    tempCounter++;
                }

                if ((ConfigurationVO.GetInstance().mode_operation != EnumAndConstants.CONTINEOUS))
                {
                    xDisplayRange = (int)(firstChannelArray.ElementAt(firstChannelArray.Count - 1)).x;
                }
                //xDisplayRange =(int)((0.30 * maxX));
                if (graphControl1.DataSources.Count > 1)
                    graphControl1.DataSources.RemoveRange(1, graphControl1.DataSources.Count - 1);
                //initialize the control as per the adc values and x axis values.
                graphControl1.DataSources[0].Samples = firstChannelArray.ToArray<cPoint>();

                if (graphControl1.DataSources[0].YMax == 0 && graphControl1.DataSources[0].YMin == 0)
                {
                    graphControl1.DataSources[0].YMax = ApplicationUtil.ApplicationUtil.maxADC;

                    graphControl1.DataSources[0].YD1 = ApplicationUtil.ApplicationUtil.maxADC;
                    graphControl1.DataSources[0].YMin = ApplicationUtil.ApplicationUtil.minADC;
                    graphControl1.DataSources[0].YD0 = ApplicationUtil.ApplicationUtil.minADC;
                }
                else
                {
                    if (graphControl1.gPane.maxY < ApplicationUtil.ApplicationUtil.maxADC)
                    {
                        graphControl1.DataSources[0].YMax = ApplicationUtil.ApplicationUtil.maxADC;
                        graphControl1.DataSources[0].YD1 = ApplicationUtil.ApplicationUtil.maxADC;
                    }
                    if (graphControl1.gPane.minY > ApplicationUtil.ApplicationUtil.minADC)
                    {
                        graphControl1.DataSources[0].YMin = ApplicationUtil.ApplicationUtil.minADC;
                        graphControl1.DataSources[0].YD0 = ApplicationUtil.ApplicationUtil.minADC;
                    }
                }
                //graphControl1.DataSources[0].AutoScaleY = true;
                graphControl1.DataSources[0].off_Y = 0;
                graphControl1.gPane.off_X = 0;
                graphControl1.gPane.grid_distance_y = 5;

                List<PlotterDisplayEx> graphList = new List<PlotterDisplayEx>();
                graphList.Add(graphControl1);
                DrawGraphWithZoom(graphList,ZoomMultiplier);
                if (graphControl2 != null)
                {
                    if (graphControl2.DataSources.Count > 1)
                        graphControl2.DataSources.RemoveRange(1, graphControl2.DataSources.Count - 1);
                }
                if (collection.Count == 3)
                {
                    if (adclistChannelTwo.Count == 0)
                        return;
                    minDate = adclistChannelTwo[0].AdcDate;
                    ApplicationUtil.ApplicationUtil.CalculateMinMaxADCValues(adclistChannelTwo);
                    if (channelB != -1)
                    {
                        if (graphControl2 != null)
                        {
                            if (secondChannelArray == null || configlist[0].mode_operation == EnumAndConstants.TRIGGER || configlist[0].mode_operation == EnumAndConstants.EXTERNAL_SIMULATION || configlist[0].mode_operation == EnumAndConstants.EXTERNAL_RECORDING || configlist[0].mode_operation == EnumAndConstants.LOOK_AHEAD)
                            {
                                secondChannelArray = new List<cPoint>();
                                secondChannelY = 0;
                            }

                            tempCounter = 0;
                            while (tempCounter < adclistChannelTwo.Count)
                            {
                                ADCVO point = adclistChannelTwo.ElementAt(tempCounter);
                                double adv = Convert.ToDouble(point.AdcValue);
                                secondChannelY += ApplicationUtil.ApplicationUtil.SAMPLING_RATE_DATE_ADD_VALUE;
                                string d = string.Format("{0:0.00}", secondChannelY);
                                double yPoint = double.Parse(d);
                                cPoint cpoint = new cPoint();
                                cpoint.x = yPoint;
                                cpoint.y = adv;
                                secondChannelArray.Add(cpoint);
                                tempCounter++;
                            }
                            // Changes:MAITREYEE

                            graphControl2.DataSources[0].Samples = secondChannelArray.ToArray<cPoint>();
                            graphControl2.DataSources[0].SetGridOriginY(0f);
                            graphControl2.DataSources[0].GraphColor = Color.Green;
                            // graphControl2.DataSources[0].Samples = firstChannelArray.ToArray<cPoint>();
                            if (graphControl2.DataSources[0].YMax == 0 && graphControl2.DataSources[0].YMin == 0)
                            {
                                graphControl2.DataSources[0].YMax = ApplicationUtil.ApplicationUtil.maxADC;

                                graphControl2.DataSources[0].YD1 = ApplicationUtil.ApplicationUtil.maxADC;
                                graphControl2.DataSources[0].YMin = ApplicationUtil.ApplicationUtil.minADC;
                                graphControl2.DataSources[0].YD0 = ApplicationUtil.ApplicationUtil.minADC;
                            }
                            else
                            {
                                if (graphControl2.gPane.maxY < ApplicationUtil.ApplicationUtil.maxADC)
                                {
                                    graphControl2.DataSources[0].YMax = ApplicationUtil.ApplicationUtil.maxADC;
                                    graphControl2.DataSources[0].YD1 = ApplicationUtil.ApplicationUtil.maxADC;
                                }
                                if (graphControl2.gPane.minY > ApplicationUtil.ApplicationUtil.minADC)
                                {
                                    graphControl2.DataSources[0].YMin = ApplicationUtil.ApplicationUtil.minADC;
                                    graphControl2.DataSources[0].YD0 = ApplicationUtil.ApplicationUtil.minADC;
                                }
                            }
                            graphControl2.DataSources[0].off_Y = 0;
                            graphControl2.gPane.off_X = 0;
                            graphControl2.gPane.grid_distance_y = 5;

                            graphList = new List<PlotterDisplayEx>();
                            graphList.Add(graphControl2);
                            DrawGraphWithZoom(graphList, ZoomMultiplier);
                        }
                    }
                }

            }
            if ((DateTime.Now - secondGraphRefreshTime).TotalMilliseconds > graphRefreshTime)
            {
                this.Invoke(graphdelegate, graphControl1, graphControl2);
                secondGraphRefreshTime = DateTime.Now;
            }
        }
コード例 #5
0
ファイル: FrmMain.cs プロジェクト: jramshur/SRD_GUI
 private void clearAllGraphs()
 {
     PlotterDisplayEx[] graphArr = new PlotterDisplayEx[] { plotterDisplayEx1, plotterDisplayEx2, plotterDisplayEx3, plotterDisplayEx4, plotterDisplayEx5, plotterDisplayEx6,
     plotterDisplayEx7,plotterDisplayEx8,plotterDisplayEx9,plotterDisplayEx10,plotterDisplayEx11,plotterDisplayEx12};
     foreach (PlotterDisplayEx ctrGraph in graphArr)
     {
         DataSource dataSource= new DataSource();
         ctrGraph.DataSources.Clear();
         ctrGraph.DataSources.Add(dataSource);
         ctrGraph.gPane.minY = 0;
         ctrGraph.gPane.maxY = 0;
         if(!this.InvokeRequired)
             ctrGraph.Refresh();
     }
     ZoomMultiplier = 0;
 }
コード例 #6
0
ファイル: FrmMain.cs プロジェクト: jramshur/SRD_GUI
        /// <summary>
        /// Render graph implementaion
        /// </summary>
        private void RenderGraph(PlotterDisplayEx graphControl1, PlotterDisplayEx graphControl2)
        {
            // changes: 2 diff graph controls for each channel that would be shown simultaneuosly
            try
            {
                if (graphControl1 != null)
                {

                    if (ConfigurationVO.GetInstance().mode_operation != EnumAndConstants.CONTINEOUS)
                    {
                        graphControl1.SetDisplayRangeX(0, xDisplayRange);
                        graphControl1.gPane.grid_distance_x = Math.Round(xDisplayRange / 5f, 1, MidpointRounding.ToEven);
                        //graphControl1.gPane.grid_distance_x =xDisplayRange ;
                    }
                    else
                    {
                        xDisplayRange =int.Parse( txtXRange.Text);
                        graphControl1.SetDisplayRangeX(0, xDisplayRange);
                        graphControl1.gPane.grid_distance_x =(int) (0.70*xDisplayRange);
                    }
                    if(!graphControl1.gPane.isPaintinginProgress)
                    graphControl1.Refresh();
                }
                if (graphControl2 != null)
                {
                    graphControl2.SetDisplayRangeX(0, xDisplayRange);
                    graphControl2.gPane.grid_distance_x = Math.Round(xDisplayRange / 5f, 1, MidpointRounding.ToEven);
                    if (!graphControl1.gPane.isPaintinginProgress)
                    graphControl2.Refresh();

                }
                Program.communicator.isDataReceived = false;
            }
            catch (Exception ex)
            {
                m_logger.Error(ex);
            }
        }
コード例 #7
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.layoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.examplesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.normalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.normalAutoscaledToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.stackedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.verticallyAlignedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.verticallyAlignedAutoscaledToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.tiledVerticalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.tiledVerticalAutoscaledToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.tiledHorizontalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.tiledHorizontalAutoscaledToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.animatedGraphDemoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.colorSchemesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.blueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.whiteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.grayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.lightBlueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.blackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.redToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.greenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.numGraphsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
            this.detectQRSToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.documentationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.aboutToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
            this.display = new GraphLib.PlotterDisplayEx();
            this.menuStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // menuStrip1
            // 
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.fileToolStripMenuItem,
            this.layoutToolStripMenuItem,
            this.helpToolStripMenuItem});
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.Size = new System.Drawing.Size(738, 24);
            this.menuStrip1.TabIndex = 2;
            this.menuStrip1.Text = "menuStrip1";
            // 
            // fileToolStripMenuItem
            // 
            this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.openToolStripMenuItem,
            this.exitToolStripMenuItem});
            this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
            this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
            this.fileToolStripMenuItem.Text = "File";
            // 
            // openToolStripMenuItem
            // 
            this.openToolStripMenuItem.Name = "openToolStripMenuItem";
            this.openToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.openToolStripMenuItem.Text = "Open";
            this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
            // 
            // exitToolStripMenuItem
            // 
            this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
            this.exitToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.exitToolStripMenuItem.Text = "Exit";
            this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
            // 
            // layoutToolStripMenuItem
            // 
            this.layoutToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.examplesToolStripMenuItem,
            this.colorSchemesToolStripMenuItem,
            this.numGraphsToolStripMenuItem,
            this.detectQRSToolStripMenuItem});
            this.layoutToolStripMenuItem.Name = "layoutToolStripMenuItem";
            this.layoutToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
            this.layoutToolStripMenuItem.Text = "Settings";
            // 
            // examplesToolStripMenuItem
            // 
            this.examplesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.normalToolStripMenuItem,
            this.normalAutoscaledToolStripMenuItem,
            this.stackedToolStripMenuItem,
            this.verticallyAlignedToolStripMenuItem,
            this.verticallyAlignedAutoscaledToolStripMenuItem,
            this.tiledVerticalToolStripMenuItem,
            this.tiledVerticalAutoscaledToolStripMenuItem,
            this.tiledHorizontalToolStripMenuItem,
            this.tiledHorizontalAutoscaledToolStripMenuItem,
            this.animatedGraphDemoToolStripMenuItem});
            this.examplesToolStripMenuItem.Name = "examplesToolStripMenuItem";
            this.examplesToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
            this.examplesToolStripMenuItem.Text = "Representation";
            // 
            // normalToolStripMenuItem
            // 
            this.normalToolStripMenuItem.Name = "normalToolStripMenuItem";
            this.normalToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.normalToolStripMenuItem.Text = "Normal";
            this.normalToolStripMenuItem.Click += new System.EventHandler(this.normalToolStripMenuItem_Click);
            // 
            // normalAutoscaledToolStripMenuItem
            // 
            this.normalAutoscaledToolStripMenuItem.Name = "normalAutoscaledToolStripMenuItem";
            this.normalAutoscaledToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.normalAutoscaledToolStripMenuItem.Text = "Normal Autoscaled";
            this.normalAutoscaledToolStripMenuItem.Click += new System.EventHandler(this.normalAutoscaledToolStripMenuItem_Click);
            // 
            // stackedToolStripMenuItem
            // 
            this.stackedToolStripMenuItem.Name = "stackedToolStripMenuItem";
            this.stackedToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.stackedToolStripMenuItem.Text = "Stacked";
            this.stackedToolStripMenuItem.Click += new System.EventHandler(this.stackedToolStripMenuItem_Click);
            // 
            // verticallyAlignedToolStripMenuItem
            // 
            this.verticallyAlignedToolStripMenuItem.Name = "verticallyAlignedToolStripMenuItem";
            this.verticallyAlignedToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.verticallyAlignedToolStripMenuItem.Text = "Vertically Aligned";
            this.verticallyAlignedToolStripMenuItem.Click += new System.EventHandler(this.verticallyAlignedToolStripMenuItem_Click);
            // 
            // verticallyAlignedAutoscaledToolStripMenuItem
            // 
            this.verticallyAlignedAutoscaledToolStripMenuItem.Name = "verticallyAlignedAutoscaledToolStripMenuItem";
            this.verticallyAlignedAutoscaledToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.verticallyAlignedAutoscaledToolStripMenuItem.Text = "Vertically Aligned Autoscaled";
            this.verticallyAlignedAutoscaledToolStripMenuItem.Click += new System.EventHandler(this.verticallyAlignedAutoscaledToolStripMenuItem_Click);
            // 
            // tiledVerticalToolStripMenuItem
            // 
            this.tiledVerticalToolStripMenuItem.Name = "tiledVerticalToolStripMenuItem";
            this.tiledVerticalToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.tiledVerticalToolStripMenuItem.Text = "Tiled Vertical";
            this.tiledVerticalToolStripMenuItem.Click += new System.EventHandler(this.tiledVerticalToolStripMenuItem_Click);
            // 
            // tiledVerticalAutoscaledToolStripMenuItem
            // 
            this.tiledVerticalAutoscaledToolStripMenuItem.Name = "tiledVerticalAutoscaledToolStripMenuItem";
            this.tiledVerticalAutoscaledToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.tiledVerticalAutoscaledToolStripMenuItem.Text = "Tiled Vertical Autoscaled";
            this.tiledVerticalAutoscaledToolStripMenuItem.Click += new System.EventHandler(this.tiledVerticalAutoscaledToolStripMenuItem_Click);
            // 
            // tiledHorizontalToolStripMenuItem
            // 
            this.tiledHorizontalToolStripMenuItem.Name = "tiledHorizontalToolStripMenuItem";
            this.tiledHorizontalToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.tiledHorizontalToolStripMenuItem.Text = "Tiled Horizontal";
            this.tiledHorizontalToolStripMenuItem.Click += new System.EventHandler(this.tiledHorizontalToolStripMenuItem_Click);
            // 
            // tiledHorizontalAutoscaledToolStripMenuItem
            // 
            this.tiledHorizontalAutoscaledToolStripMenuItem.Name = "tiledHorizontalAutoscaledToolStripMenuItem";
            this.tiledHorizontalAutoscaledToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.tiledHorizontalAutoscaledToolStripMenuItem.Text = "Tiled Horizontal Autoscaled";
            this.tiledHorizontalAutoscaledToolStripMenuItem.Click += new System.EventHandler(this.tiledHorizontalAutoscaledToolStripMenuItem_Click);
            // 
            // animatedGraphDemoToolStripMenuItem
            // 
            this.animatedGraphDemoToolStripMenuItem.Name = "animatedGraphDemoToolStripMenuItem";
            this.animatedGraphDemoToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.animatedGraphDemoToolStripMenuItem.Text = "Animated Graph Demo";
            this.animatedGraphDemoToolStripMenuItem.Click += new System.EventHandler(this.animatedGraphDemoToolStripMenuItem_Click);
            // 
            // colorSchemesToolStripMenuItem
            // 
            this.colorSchemesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.blueToolStripMenuItem,
            this.whiteToolStripMenuItem,
            this.grayToolStripMenuItem,
            this.lightBlueToolStripMenuItem,
            this.blackToolStripMenuItem,
            this.redToolStripMenuItem,
            this.greenToolStripMenuItem});
            this.colorSchemesToolStripMenuItem.Name = "colorSchemesToolStripMenuItem";
            this.colorSchemesToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
            this.colorSchemesToolStripMenuItem.Text = "Color Schemes";
            // 
            // blueToolStripMenuItem
            // 
            this.blueToolStripMenuItem.Name = "blueToolStripMenuItem";
            this.blueToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
            this.blueToolStripMenuItem.Text = "Blue";
            this.blueToolStripMenuItem.Click += new System.EventHandler(this.blueToolStripMenuItem_Click);
            // 
            // whiteToolStripMenuItem
            // 
            this.whiteToolStripMenuItem.Name = "whiteToolStripMenuItem";
            this.whiteToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
            this.whiteToolStripMenuItem.Text = "White";
            this.whiteToolStripMenuItem.Click += new System.EventHandler(this.whiteToolStripMenuItem_Click);
            // 
            // grayToolStripMenuItem
            // 
            this.grayToolStripMenuItem.Name = "grayToolStripMenuItem";
            this.grayToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
            this.grayToolStripMenuItem.Text = "Gray";
            this.grayToolStripMenuItem.Click += new System.EventHandler(this.grayToolStripMenuItem_Click);
            // 
            // lightBlueToolStripMenuItem
            // 
            this.lightBlueToolStripMenuItem.Name = "lightBlueToolStripMenuItem";
            this.lightBlueToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
            this.lightBlueToolStripMenuItem.Text = "Light Blue";
            this.lightBlueToolStripMenuItem.Click += new System.EventHandler(this.lightBlueToolStripMenuItem_Click);
            // 
            // blackToolStripMenuItem
            // 
            this.blackToolStripMenuItem.Name = "blackToolStripMenuItem";
            this.blackToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
            this.blackToolStripMenuItem.Text = "Black";
            this.blackToolStripMenuItem.Click += new System.EventHandler(this.blackToolStripMenuItem_Click);
            // 
            // redToolStripMenuItem
            // 
            this.redToolStripMenuItem.Name = "redToolStripMenuItem";
            this.redToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
            this.redToolStripMenuItem.Text = "Red";
            this.redToolStripMenuItem.Click += new System.EventHandler(this.redToolStripMenuItem_Click);
            // 
            // greenToolStripMenuItem
            // 
            this.greenToolStripMenuItem.Name = "greenToolStripMenuItem";
            this.greenToolStripMenuItem.Size = new System.Drawing.Size(127, 22);
            this.greenToolStripMenuItem.Text = "Green";
            this.greenToolStripMenuItem.Click += new System.EventHandler(this.greenToolStripMenuItem_Click);
            // 
            // numGraphsToolStripMenuItem
            // 
            this.numGraphsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripMenuItem2,
            this.toolStripMenuItem3});
            this.numGraphsToolStripMenuItem.Name = "numGraphsToolStripMenuItem";
            this.numGraphsToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
            this.numGraphsToolStripMenuItem.Text = "Num Graphs";
            // 
            // toolStripMenuItem2
            // 
            this.toolStripMenuItem2.Name = "toolStripMenuItem2";
            this.toolStripMenuItem2.Size = new System.Drawing.Size(80, 22);
            this.toolStripMenuItem2.Text = "1";
            this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
            // 
            // toolStripMenuItem3
            // 
            this.toolStripMenuItem3.Name = "toolStripMenuItem3";
            this.toolStripMenuItem3.Size = new System.Drawing.Size(80, 22);
            this.toolStripMenuItem3.Text = "2";
            this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click);
            // 
            // detectQRSToolStripMenuItem
            // 
            this.detectQRSToolStripMenuItem.Name = "detectQRSToolStripMenuItem";
            this.detectQRSToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
            this.detectQRSToolStripMenuItem.Text = "Detect QRS";
            // 
            // helpToolStripMenuItem
            // 
            this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.documentationToolStripMenuItem,
            this.aboutToolStripMenuItem1});
            this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
            this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
            this.helpToolStripMenuItem.Text = "Help";
            // 
            // documentationToolStripMenuItem
            // 
            this.documentationToolStripMenuItem.Name = "documentationToolStripMenuItem";
            this.documentationToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
            this.documentationToolStripMenuItem.Text = "Documentation";
            // 
            // aboutToolStripMenuItem1
            // 
            this.aboutToolStripMenuItem1.Name = "aboutToolStripMenuItem1";
            this.aboutToolStripMenuItem1.Size = new System.Drawing.Size(157, 22);
            this.aboutToolStripMenuItem1.Text = "About";
            // 
            // display
            // 
            this.display.BackColor = System.Drawing.Color.White;
            this.display.BackgroundColorBot = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
            this.display.BackgroundColorTop = System.Drawing.Color.Navy;
            this.display.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.display.DashedGridColor = System.Drawing.Color.Blue;
            this.display.Dock = System.Windows.Forms.DockStyle.Fill;
            this.display.DoubleBuffering = true;
            this.display.Location = new System.Drawing.Point(0, 24);
            this.display.Name = "display";
            this.display.PlaySpeed = 0.5F;
            this.display.Size = new System.Drawing.Size(738, 472);
            this.display.SolidGridColor = System.Drawing.Color.Blue;
            this.display.TabIndex = 1;
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(738, 496);
            this.Controls.Add(this.display);
            this.Controls.Add(this.menuStrip1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.menuStrip1;
            this.Name = "MainForm";
            this.Text = "ECG";
            this.Load += new System.EventHandler(this.MainForm_Load);
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #8
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this.layoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.filterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.noneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.antiAliasedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.highQualityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.highSpeedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.examplesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.normalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.normalAutoscaledToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.stackedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.verticallyAlignedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.verticallyAlignedAutoscaledToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.tiledVerticalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.tiledVerticalAutoscaledToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.tiledHorizontalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.tiledHorizontalAutoscaledToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.animatedGraphDemoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.colorSchemesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.blueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.whiteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.grayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.lightBlueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.blackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.redToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.numGraphsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripMenuItem();
            this.display = new GraphLib.PlotterDisplayEx();
            this.greenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.menuStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // menuStrip1
            // 
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.layoutToolStripMenuItem});
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.Size = new System.Drawing.Size(620, 24);
            this.menuStrip1.TabIndex = 2;
            this.menuStrip1.Text = "menuStrip1";
            // 
            // layoutToolStripMenuItem
            // 
            this.layoutToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.filterToolStripMenuItem,
            this.examplesToolStripMenuItem,
            this.colorSchemesToolStripMenuItem,
            this.numGraphsToolStripMenuItem});
            this.layoutToolStripMenuItem.Name = "layoutToolStripMenuItem";
            this.layoutToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
            this.layoutToolStripMenuItem.Text = "Settings";
            // 
            // filterToolStripMenuItem
            // 
            this.filterToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.noneToolStripMenuItem,
            this.antiAliasedToolStripMenuItem,
            this.highQualityToolStripMenuItem,
            this.highSpeedToolStripMenuItem});
            this.filterToolStripMenuItem.Name = "filterToolStripMenuItem";
            this.filterToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
            this.filterToolStripMenuItem.Text = "Filter";
            // 
            // noneToolStripMenuItem
            // 
            this.noneToolStripMenuItem.Name = "noneToolStripMenuItem";
            this.noneToolStripMenuItem.Size = new System.Drawing.Size(141, 22);
            this.noneToolStripMenuItem.Text = "None";
            this.noneToolStripMenuItem.Click += new System.EventHandler(this.noneToolStripMenuItem_Click);
            // 
            // antiAliasedToolStripMenuItem
            // 
            this.antiAliasedToolStripMenuItem.Name = "antiAliasedToolStripMenuItem";
            this.antiAliasedToolStripMenuItem.Size = new System.Drawing.Size(141, 22);
            this.antiAliasedToolStripMenuItem.Text = "AntiAliased";
            this.antiAliasedToolStripMenuItem.Click += new System.EventHandler(this.antiAliasedToolStripMenuItem_Click);
            // 
            // highQualityToolStripMenuItem
            // 
            this.highQualityToolStripMenuItem.Name = "highQualityToolStripMenuItem";
            this.highQualityToolStripMenuItem.Size = new System.Drawing.Size(141, 22);
            this.highQualityToolStripMenuItem.Text = "High Quality";
            this.highQualityToolStripMenuItem.Click += new System.EventHandler(this.highQualityToolStripMenuItem_Click);
            // 
            // highSpeedToolStripMenuItem
            // 
            this.highSpeedToolStripMenuItem.Name = "highSpeedToolStripMenuItem";
            this.highSpeedToolStripMenuItem.Size = new System.Drawing.Size(141, 22);
            this.highSpeedToolStripMenuItem.Text = "High Speed";
            this.highSpeedToolStripMenuItem.Click += new System.EventHandler(this.highSpeedToolStripMenuItem_Click);
            // 
            // examplesToolStripMenuItem
            // 
            this.examplesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.normalToolStripMenuItem,
            this.normalAutoscaledToolStripMenuItem,
            this.stackedToolStripMenuItem,
            this.verticallyAlignedToolStripMenuItem,
            this.verticallyAlignedAutoscaledToolStripMenuItem,
            this.tiledVerticalToolStripMenuItem,
            this.tiledVerticalAutoscaledToolStripMenuItem,
            this.tiledHorizontalToolStripMenuItem,
            this.tiledHorizontalAutoscaledToolStripMenuItem,
            this.animatedGraphDemoToolStripMenuItem});
            this.examplesToolStripMenuItem.Name = "examplesToolStripMenuItem";
            this.examplesToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
            this.examplesToolStripMenuItem.Text = "Examples";
            // 
            // normalToolStripMenuItem
            // 
            this.normalToolStripMenuItem.Name = "normalToolStripMenuItem";
            this.normalToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.normalToolStripMenuItem.Text = "Normal";
            this.normalToolStripMenuItem.Click += new System.EventHandler(this.normalToolStripMenuItem_Click);
            // 
            // normalAutoscaledToolStripMenuItem
            // 
            this.normalAutoscaledToolStripMenuItem.Name = "normalAutoscaledToolStripMenuItem";
            this.normalAutoscaledToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.normalAutoscaledToolStripMenuItem.Text = "Normal Autoscaled";
            this.normalAutoscaledToolStripMenuItem.Click += new System.EventHandler(this.normalAutoscaledToolStripMenuItem_Click);
            // 
            // stackedToolStripMenuItem
            // 
            this.stackedToolStripMenuItem.Name = "stackedToolStripMenuItem";
            this.stackedToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.stackedToolStripMenuItem.Text = "Stacked";
            this.stackedToolStripMenuItem.Click += new System.EventHandler(this.stackedToolStripMenuItem_Click_1);
            // 
            // verticallyAlignedToolStripMenuItem
            // 
            this.verticallyAlignedToolStripMenuItem.Name = "verticallyAlignedToolStripMenuItem";
            this.verticallyAlignedToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.verticallyAlignedToolStripMenuItem.Text = "Vertically Aligned";
            this.verticallyAlignedToolStripMenuItem.Click += new System.EventHandler(this.verticallyAlignedToolStripMenuItem_Click);
            // 
            // verticallyAlignedAutoscaledToolStripMenuItem
            // 
            this.verticallyAlignedAutoscaledToolStripMenuItem.Name = "verticallyAlignedAutoscaledToolStripMenuItem";
            this.verticallyAlignedAutoscaledToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.verticallyAlignedAutoscaledToolStripMenuItem.Text = "Vertically Aligned Autoscaled";
            this.verticallyAlignedAutoscaledToolStripMenuItem.Click += new System.EventHandler(this.verticallyAlignedAutoscaledToolStripMenuItem_Click);
            // 
            // tiledVerticalToolStripMenuItem
            // 
            this.tiledVerticalToolStripMenuItem.Name = "tiledVerticalToolStripMenuItem";
            this.tiledVerticalToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.tiledVerticalToolStripMenuItem.Text = "Tiled Vertical";
            this.tiledVerticalToolStripMenuItem.Click += new System.EventHandler(this.tiledVerticalToolStripMenuItem_Click);
            // 
            // tiledVerticalAutoscaledToolStripMenuItem
            // 
            this.tiledVerticalAutoscaledToolStripMenuItem.Name = "tiledVerticalAutoscaledToolStripMenuItem";
            this.tiledVerticalAutoscaledToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.tiledVerticalAutoscaledToolStripMenuItem.Text = "Tiled Vertical Autoscaled";
            this.tiledVerticalAutoscaledToolStripMenuItem.Click += new System.EventHandler(this.tiledVerticalAutoscaledToolStripMenuItem_Click);
            // 
            // tiledHorizontalToolStripMenuItem
            // 
            this.tiledHorizontalToolStripMenuItem.Name = "tiledHorizontalToolStripMenuItem";
            this.tiledHorizontalToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.tiledHorizontalToolStripMenuItem.Text = "Tiled Horizontal";
            this.tiledHorizontalToolStripMenuItem.Click += new System.EventHandler(this.tiledHorizontalToolStripMenuItem_Click);
            // 
            // tiledHorizontalAutoscaledToolStripMenuItem
            // 
            this.tiledHorizontalAutoscaledToolStripMenuItem.Name = "tiledHorizontalAutoscaledToolStripMenuItem";
            this.tiledHorizontalAutoscaledToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.tiledHorizontalAutoscaledToolStripMenuItem.Text = "Tiled Horizontal Autoscaled";
            this.tiledHorizontalAutoscaledToolStripMenuItem.Click += new System.EventHandler(this.tiledHorizontalAutoscaledToolStripMenuItem_Click);
            // 
            // animatedGraphDemoToolStripMenuItem
            // 
            this.animatedGraphDemoToolStripMenuItem.Name = "animatedGraphDemoToolStripMenuItem";
            this.animatedGraphDemoToolStripMenuItem.Size = new System.Drawing.Size(228, 22);
            this.animatedGraphDemoToolStripMenuItem.Text = "Animated Graph Demo";
            this.animatedGraphDemoToolStripMenuItem.Click += new System.EventHandler(this.animatedGraphDemoToolStripMenuItem_Click);
            // 
            // colorSchemesToolStripMenuItem
            // 
            this.colorSchemesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.blueToolStripMenuItem,
            this.whiteToolStripMenuItem,
            this.grayToolStripMenuItem,
            this.lightBlueToolStripMenuItem,
            this.blackToolStripMenuItem,
            this.redToolStripMenuItem,
            this.greenToolStripMenuItem});
            this.colorSchemesToolStripMenuItem.Name = "colorSchemesToolStripMenuItem";
            this.colorSchemesToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
            this.colorSchemesToolStripMenuItem.Text = "Color Schemes";
            // 
            // blueToolStripMenuItem
            // 
            this.blueToolStripMenuItem.Name = "blueToolStripMenuItem";
            this.blueToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.blueToolStripMenuItem.Text = "Blue";
            this.blueToolStripMenuItem.Click += new System.EventHandler(this.blueToolStripMenuItem_Click);
            // 
            // whiteToolStripMenuItem
            // 
            this.whiteToolStripMenuItem.Name = "whiteToolStripMenuItem";
            this.whiteToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.whiteToolStripMenuItem.Text = "White";
            this.whiteToolStripMenuItem.Click += new System.EventHandler(this.whiteToolStripMenuItem_Click);
            // 
            // grayToolStripMenuItem
            // 
            this.grayToolStripMenuItem.Name = "grayToolStripMenuItem";
            this.grayToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.grayToolStripMenuItem.Text = "Gray";
            this.grayToolStripMenuItem.Click += new System.EventHandler(this.grayToolStripMenuItem_Click);
            // 
            // lightBlueToolStripMenuItem
            // 
            this.lightBlueToolStripMenuItem.Name = "lightBlueToolStripMenuItem";
            this.lightBlueToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.lightBlueToolStripMenuItem.Text = "Light Blue";
            this.lightBlueToolStripMenuItem.Click += new System.EventHandler(this.lightBlueToolStripMenuItem_Click);
            // 
            // blackToolStripMenuItem
            // 
            this.blackToolStripMenuItem.Name = "blackToolStripMenuItem";
            this.blackToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.blackToolStripMenuItem.Text = "Black";
            this.blackToolStripMenuItem.Click += new System.EventHandler(this.blackToolStripMenuItem_Click);
            // 
            // redToolStripMenuItem
            // 
            this.redToolStripMenuItem.Name = "redToolStripMenuItem";
            this.redToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.redToolStripMenuItem.Text = "Red";
            this.redToolStripMenuItem.Click += new System.EventHandler(this.redToolStripMenuItem_Click);
            // 
            // numGraphsToolStripMenuItem
            // 
            this.numGraphsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripMenuItem2,
            this.toolStripMenuItem3,
            this.toolStripMenuItem4,
            this.toolStripMenuItem5,
            this.toolStripMenuItem6,
            this.toolStripMenuItem7});
            this.numGraphsToolStripMenuItem.Name = "numGraphsToolStripMenuItem";
            this.numGraphsToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
            this.numGraphsToolStripMenuItem.Text = "Num Graphs";
            // 
            // toolStripMenuItem2
            // 
            this.toolStripMenuItem2.Name = "toolStripMenuItem2";
            this.toolStripMenuItem2.Size = new System.Drawing.Size(80, 22);
            this.toolStripMenuItem2.Text = "1";
            this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
            // 
            // toolStripMenuItem3
            // 
            this.toolStripMenuItem3.Name = "toolStripMenuItem3";
            this.toolStripMenuItem3.Size = new System.Drawing.Size(80, 22);
            this.toolStripMenuItem3.Text = "2";
            this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click);
            // 
            // toolStripMenuItem4
            // 
            this.toolStripMenuItem4.Name = "toolStripMenuItem4";
            this.toolStripMenuItem4.Size = new System.Drawing.Size(80, 22);
            this.toolStripMenuItem4.Text = "3";
            this.toolStripMenuItem4.Click += new System.EventHandler(this.toolStripMenuItem4_Click);
            // 
            // toolStripMenuItem5
            // 
            this.toolStripMenuItem5.Name = "toolStripMenuItem5";
            this.toolStripMenuItem5.Size = new System.Drawing.Size(80, 22);
            this.toolStripMenuItem5.Text = "4";
            this.toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItem5_Click);
            // 
            // toolStripMenuItem6
            // 
            this.toolStripMenuItem6.Name = "toolStripMenuItem6";
            this.toolStripMenuItem6.Size = new System.Drawing.Size(80, 22);
            this.toolStripMenuItem6.Text = "5";
            this.toolStripMenuItem6.Click += new System.EventHandler(this.toolStripMenuItem6_Click);
            // 
            // toolStripMenuItem7
            // 
            this.toolStripMenuItem7.Name = "toolStripMenuItem7";
            this.toolStripMenuItem7.Size = new System.Drawing.Size(80, 22);
            this.toolStripMenuItem7.Text = "6";
            this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click);
            // 
            // display
            // 
            this.display.BackColor = System.Drawing.Color.White;
            this.display.BackgroundColorBot = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
            this.display.BackgroundColorTop = System.Drawing.Color.Navy;
            this.display.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.display.DashedGridColor = System.Drawing.Color.Blue;
            this.display.Dock = System.Windows.Forms.DockStyle.Fill;
            this.display.DoubleBuffering = true;
            this.display.Location = new System.Drawing.Point(0, 24);
            this.display.Name = "display";
            this.display.PlaySpeed = 0.5F;
            this.display.Size = new System.Drawing.Size(620, 472);
            this.display.SolidGridColor = System.Drawing.Color.Blue;
            this.display.TabIndex = 1;
            // 
            // greenToolStripMenuItem
            // 
            this.greenToolStripMenuItem.Name = "greenToolStripMenuItem";
            this.greenToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
            this.greenToolStripMenuItem.Text = "Green";
            this.greenToolStripMenuItem.Click += new System.EventHandler(this.greenToolStripMenuItem_Click);
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(620, 496);
            this.Controls.Add(this.display);
            this.Controls.Add(this.menuStrip1);
            this.MainMenuStrip = this.menuStrip1;
            this.Name = "MainForm";
            this.Text = "GraphLib Demo";
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }