public object Clone() { ExchangeIntraday ei = new ExchangeIntraday(); ei.nativeCycle = nativeCycle; ei.showFirstXLabel = showFirstXLabel; ei.timeZone = timeZone; ei.yahooDelay = yahooDelay; ei.TimePeriods = (TimePeriod[])TimePeriods.Clone(); return(ei); }
/// <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.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader(); Easychart.Finance.ExchangeIntraday exchangeIntraday1 = new Easychart.Finance.ExchangeIntraday(); this.mmMain = new System.Windows.Forms.MainMenu(this.components); this.mmData = new System.Windows.Forms.MenuItem(); this.mmLoadData = new System.Windows.Forms.MenuItem(); this.mmLoadDataForecast = new System.Windows.Forms.MenuItem(); this.miLoadFromEasyChart = new System.Windows.Forms.MenuItem(); this.miLoadFromProphet = new System.Windows.Forms.MenuItem(); this.miLoadBinary = new System.Windows.Forms.MenuItem(); this.miLoadXml = new System.Windows.Forms.MenuItem(); this.miText = new System.Windows.Forms.MenuItem(); this.miMetaStock = new System.Windows.Forms.MenuItem(); this.miLoadFromYahooStreaming = new System.Windows.Forms.MenuItem(); this.miForexText = new System.Windows.Forms.MenuItem(); this.miLoadBond = new System.Windows.Forms.MenuItem(); this.miSp2 = new System.Windows.Forms.MenuItem(); this.miSetup = new System.Windows.Forms.MenuItem(); this.miPreview = new System.Windows.Forms.MenuItem(); this.miPrint = new System.Windows.Forms.MenuItem(); this.miSp1 = new System.Windows.Forms.MenuItem(); this.miExit = new System.Windows.Forms.MenuItem(); this.miHelp = new System.Windows.Forms.MenuItem(); this.miHotKey = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.miAbout = new System.Windows.Forms.MenuItem(); this.odLoadData = new System.Windows.Forms.OpenFileDialog(); this.cdFormulaColor = new System.Windows.Forms.ColorDialog(); this.pnBottom = new System.Windows.Forms.Panel(); this.sizeToolControl = new Easychart.Finance.Win.SizeToolControl(); this.ChartControl = new Easychart.Finance.Win.ChartWinControl(); this.pnClient = new System.Windows.Forms.Panel(); this.mmMining = new System.Windows.Forms.MenuItem(); this.miCreateDM = new System.Windows.Forms.MenuItem(); this.pnBottom.SuspendLayout(); this.pnClient.SuspendLayout(); this.SuspendLayout(); // // mmMain // this.mmMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mmData, this.mmMining, this.miHelp }); // // mmData // this.mmData.Index = 0; this.mmData.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mmLoadData, this.mmLoadDataForecast, this.miLoadFromEasyChart, this.miLoadFromProphet, this.miLoadBinary, this.miLoadXml, this.miText, this.miMetaStock, this.miLoadFromYahooStreaming, this.miForexText, this.miLoadBond, this.miSp2, this.miSetup, this.miPreview, this.miPrint, this.miSp1, this.miExit }); this.mmData.Text = "&Dữ Liệu"; // // mmLoadData // this.mmLoadData.Index = 0; this.mmLoadData.Shortcut = System.Windows.Forms.Shortcut.CtrlO; this.mmLoadData.Text = "&Vẽ Dữ Liệu Nguồn"; this.mmLoadData.Click += new System.EventHandler(this.mmLoadData_Click); // // mmLoadDataForecast // this.mmLoadDataForecast.Index = 1; this.mmLoadDataForecast.Text = "Vẽ Dữ Liệu Nguồn và Dự Báo"; this.mmLoadDataForecast.Click += new System.EventHandler(this.mmLoadDataForecast_Click); // // miLoadFromEasyChart // this.miLoadFromEasyChart.Index = 2; this.miLoadFromEasyChart.Text = ""; // // miLoadFromProphet // this.miLoadFromProphet.Index = 3; this.miLoadFromProphet.Text = ""; // // miLoadBinary // this.miLoadBinary.Index = 4; this.miLoadBinary.Text = ""; // // miLoadXml // this.miLoadXml.Index = 5; this.miLoadXml.Text = ""; // // miText // this.miText.Index = 6; this.miText.Text = ""; // // miMetaStock // this.miMetaStock.Index = 7; this.miMetaStock.Text = ""; // // miLoadFromYahooStreaming // this.miLoadFromYahooStreaming.Index = 8; this.miLoadFromYahooStreaming.Text = ""; // // miForexText // this.miForexText.Index = 9; this.miForexText.Text = ""; // // miLoadBond // this.miLoadBond.Index = 10; this.miLoadBond.Text = ""; // // miSp2 // this.miSp2.Index = 11; this.miSp2.Text = "-"; // // miSetup // this.miSetup.Index = 12; this.miSetup.Text = ""; // // miPreview // this.miPreview.Index = 13; this.miPreview.Text = ""; // // miPrint // this.miPrint.Index = 14; this.miPrint.Text = ""; // // miSp1 // this.miSp1.Index = 15; this.miSp1.Text = "-"; // // miExit // this.miExit.Index = 16; this.miExit.Shortcut = System.Windows.Forms.Shortcut.AltF4; this.miExit.Text = "Exit"; this.miExit.Click += new System.EventHandler(this.miExit_Click); // // miHelp // this.miHelp.Index = 2; this.miHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miHotKey, this.menuItem3, this.miAbout }); this.miHelp.Text = "&Trợ Giúp"; // // miHotKey // this.miHotKey.Index = 0; this.miHotKey.Text = "Hot Keys"; this.miHotKey.Click += new System.EventHandler(this.miHotKey_Click); // // menuItem3 // this.menuItem3.Index = 1; this.menuItem3.Text = "-"; // // miAbout // this.miAbout.Index = 2; this.miAbout.Text = ""; // // odLoadData // this.odLoadData.DefaultExt = "csv"; this.odLoadData.Filter = "csv files (*.csv)|*.csv|data files (*.dat)|*.dat|All files (*.*)|*.*"; // // pnBottom // this.pnBottom.Controls.Add(this.sizeToolControl); this.pnBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.pnBottom.Location = new System.Drawing.Point(0, 489); this.pnBottom.Name = "pnBottom"; this.pnBottom.Size = new System.Drawing.Size(776, 24); this.pnBottom.TabIndex = 3; // // sizeToolControl // this.sizeToolControl.ChartControl = this.ChartControl; this.sizeToolControl.Dock = System.Windows.Forms.DockStyle.Fill; this.sizeToolControl.Location = new System.Drawing.Point(0, 0); this.sizeToolControl.Name = "sizeToolControl"; this.sizeToolControl.Size = new System.Drawing.Size(776, 24); this.sizeToolControl.TabIndex = 0; // // ChartControl // this.ChartControl.AdjustData = ((bool)(configurationAppSettings.GetValue("ChartControl.AdjustData", typeof(bool)))); this.ChartControl.AreaPercent = ((string)(configurationAppSettings.GetValue("ChartControl.AreaPercent", typeof(string)))); this.ChartControl.BackColor = System.Drawing.SystemColors.Control; this.ChartControl.CausesValidation = false; this.ChartControl.ChartDragMode = Easychart.Finance.ChartDragMode.Chart; this.ChartControl.ColumnWidth = 5; this.ChartControl.DefaultFormulas = ((string)(configurationAppSettings.GetValue("ChartControl.DefaultFormulas", typeof(string)))); this.ChartControl.Designing = false; this.ChartControl.Dock = System.Windows.Forms.DockStyle.Fill; this.ChartControl.EndTime = new System.DateTime(((long)(0))); this.ChartControl.FavoriteFormulas = ((string)(configurationAppSettings.GetValue("ChartControl.FavoriteFormulas", typeof(string)))); this.ChartControl.ForeColor = System.Drawing.Color.Coral; exchangeIntraday1.TimePeriods = new Easychart.Finance.TimePeriod[0]; exchangeIntraday1.TimeZone = -4; this.ChartControl.IntradayInfo = exchangeIntraday1; this.ChartControl.Location = new System.Drawing.Point(0, 0); this.ChartControl.MaxPrice = 0; this.ChartControl.MinColumnWidth = 1; this.ChartControl.MinPrice = 0; this.ChartControl.Name = "ChartControl"; this.ChartControl.PriceLabelFormat = "{CODE} O:{OPEN} H:{HIGH} L:{LOW} C:{CLOSE} Chg:{CHANGE}"; this.ChartControl.ResetYAfterXChanged = false; this.ChartControl.ShowCrossCursor = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowCrossCursor", typeof(bool)))); this.ChartControl.ShowCursorLabel = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowCursorLabel", typeof(bool)))); this.ChartControl.ShowIndicatorValues = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowIndicatorValues", typeof(bool)))); this.ChartControl.ShowOverlayValues = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowOverlayValues", typeof(bool)))); this.ChartControl.ShowStatistic = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowStatistic", typeof(bool)))); this.ChartControl.Size = new System.Drawing.Size(776, 489); this.ChartControl.Skin = ((string)(configurationAppSettings.GetValue("ChartControl.Skin", typeof(string)))); this.ChartControl.StartTime = new System.DateTime(((long)(0))); this.ChartControl.StickRenderType = Easychart.Finance.StickRenderType.Column; this.ChartControl.TabIndex = 0; this.ChartControl.NativePaint += new Easychart.Finance.NativePaintHandler(this.ChartControl_NativePaint); this.ChartControl.BeforeApplySkin += new Easychart.Finance.Win.ApplySkinHandler(this.ChartControl_BeforeApplySkin); this.ChartControl.AfterApplySkin += new System.EventHandler(this.ChartControl_AfterApplySkin); this.ChartControl.DataChanged += new System.EventHandler(this.ChartControl_DataChanged); // // pnClient // this.pnClient.Controls.Add(this.ChartControl); this.pnClient.Dock = System.Windows.Forms.DockStyle.Fill; this.pnClient.Location = new System.Drawing.Point(0, 0); this.pnClient.Name = "pnClient"; this.pnClient.Size = new System.Drawing.Size(776, 489); this.pnClient.TabIndex = 4; // // mmMining // this.mmMining.Index = 1; this.mmMining.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miCreateDM }); this.mmMining.Text = "Dự &Báo"; // // miCreateDM // this.miCreateDM.Index = 0; this.miCreateDM.Text = "Tạo mô hình cho Stock mới"; this.miCreateDM.Click += new System.EventHandler(this.miCreateDM_Click); // // DemoForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(776, 513); this.Controls.Add(this.pnClient); this.Controls.Add(this.pnBottom); this.Cursor = System.Windows.Forms.Cursors.Default; this.Font = new System.Drawing.Font("Verdana", 8.25F); this.Menu = this.mmMain; this.Name = "DemoForm"; this.Text = "DemoForm"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Closed += new System.EventHandler(this.DemoForm_Closed); this.Load += new System.EventHandler(this.DemoForm_Load); this.pnBottom.ResumeLayout(false); this.pnClient.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Easychart.Finance.ExchangeIntraday exchangeIntraday1 = new Easychart.Finance.ExchangeIntraday(); this.pg = new System.Windows.Forms.PropertyGrid(); this.pnClient = new System.Windows.Forms.Panel(); this.pnRight = new System.Windows.Forms.Panel(); this.lBuildin = new System.Windows.Forms.Label(); this.ChartControl = new Easychart.Finance.Win.ChartWinControl(); this.btnCreateNew = new System.Windows.Forms.Button(); this.btnSave = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button(); this.cbSkin = new System.Windows.Forms.ComboBox(); this.spVerticle = new System.Windows.Forms.Splitter(); this.pnClient.SuspendLayout(); this.pnRight.SuspendLayout(); this.SuspendLayout(); // // pg // this.pg.Dock = System.Windows.Forms.DockStyle.Left; this.pg.LineColor = System.Drawing.SystemColors.ScrollBar; this.pg.Location = new System.Drawing.Point(0, 0); this.pg.Name = "pg"; this.pg.Size = new System.Drawing.Size(250, 510); this.pg.TabIndex = 0; this.pg.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.pg_PropertyValueChanged); // // pnClient // this.pnClient.Controls.Add(this.pnRight); this.pnClient.Dock = System.Windows.Forms.DockStyle.Fill; this.pnClient.Font = new System.Drawing.Font("Verdana", 8.5F); this.pnClient.Location = new System.Drawing.Point(250, 0); this.pnClient.Name = "pnClient"; this.pnClient.Size = new System.Drawing.Size(470, 510); this.pnClient.TabIndex = 1; // // pnRight // this.pnRight.Controls.Add(this.lBuildin); this.pnRight.Controls.Add(this.ChartControl); this.pnRight.Controls.Add(this.btnCreateNew); this.pnRight.Controls.Add(this.btnSave); this.pnRight.Controls.Add(this.btnOK); this.pnRight.Controls.Add(this.cbSkin); this.pnRight.Dock = System.Windows.Forms.DockStyle.Fill; this.pnRight.Location = new System.Drawing.Point(0, 0); this.pnRight.Name = "pnRight"; this.pnRight.Size = new System.Drawing.Size(470, 510); this.pnRight.TabIndex = 3; // // lBuildin // this.lBuildin.AutoSize = true; this.lBuildin.Location = new System.Drawing.Point(7, 7); this.lBuildin.Name = "lBuildin"; this.lBuildin.Size = new System.Drawing.Size(94, 14); this.lBuildin.TabIndex = 6; this.lBuildin.Text = "Build-in skins:"; // // ChartControl // this.ChartControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.ChartControl.CausesValidation = false; this.ChartControl.DefaultFormulas = "MAIN;VOLMA;RSI(14)#RSI(28);MACD"; this.ChartControl.Designing = false; this.ChartControl.EndTime = new System.DateTime(((long)(0))); this.ChartControl.FavoriteFormulas = "VOLMA;RSI;CCI;OBV;ATR;FastSTO;SlowSTO;ROC;TRIX;WR;AD;CMF;PPO;StochRSI;ULT;BBWidth" + ";PVO"; exchangeIntraday1.TimeZone = -5D; this.ChartControl.IntradayInfo = exchangeIntraday1; this.ChartControl.LatestValueType = Easychart.Finance.LatestValueType.None; this.ChartControl.Location = new System.Drawing.Point(12, 33); this.ChartControl.MaxPrice = 0D; this.ChartControl.MinPrice = 0D; this.ChartControl.Name = "ChartControl"; this.ChartControl.PriceLabelFormat = null; this.ChartControl.ShowStatistic = false; this.ChartControl.Size = new System.Drawing.Size(448, 434); this.ChartControl.StartTime = new System.DateTime(((long)(0))); this.ChartControl.StockBars = 70; this.ChartControl.Symbol = "Test"; this.ChartControl.TabIndex = 5; // // btnCreateNew // this.btnCreateNew.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCreateNew.Location = new System.Drawing.Point(240, 479); this.btnCreateNew.Name = "btnCreateNew"; this.btnCreateNew.Size = new System.Drawing.Size(87, 21); this.btnCreateNew.TabIndex = 4; this.btnCreateNew.Text = "Create New"; this.btnCreateNew.Click += new System.EventHandler(this.btnCreateNew_Click); // // btnSave // this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnSave.Location = new System.Drawing.Point(333, 479); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(63, 21); this.btnSave.TabIndex = 3; this.btnSave.Text = "Save"; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // btnOK // this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.Location = new System.Drawing.Point(400, 479); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(62, 21); this.btnOK.TabIndex = 2; this.btnOK.Text = "Close"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // cbSkin // this.cbSkin.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbSkin.Location = new System.Drawing.Point(87, 3); this.cbSkin.Name = "cbSkin"; this.cbSkin.Size = new System.Drawing.Size(100, 21); this.cbSkin.TabIndex = 0; this.cbSkin.SelectedIndexChanged += new System.EventHandler(this.cbSkin_SelectedIndexChanged); // // spVerticle // this.spVerticle.Location = new System.Drawing.Point(250, 0); this.spVerticle.Name = "spVerticle"; this.spVerticle.Size = new System.Drawing.Size(2, 510); this.spVerticle.TabIndex = 2; this.spVerticle.TabStop = false; // // SkinEditor // this.AcceptButton = this.btnSave; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnOK; this.ClientSize = new System.Drawing.Size(720, 510); this.Controls.Add(this.spVerticle); this.Controls.Add(this.pnClient); this.Controls.Add(this.pg); this.Name = "SkinEditor"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Skin Manager"; this.Load += new System.EventHandler(this.SkinForm_Load); this.pnClient.ResumeLayout(false); this.pnRight.ResumeLayout(false); this.pnRight.PerformLayout(); this.ResumeLayout(false); }
/// <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.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader(); Easychart.Finance.ExchangeIntraday exchangeIntraday1 = new Easychart.Finance.ExchangeIntraday(); this.mmMain = new System.Windows.Forms.MainMenu(this.components); this.mmFile = new System.Windows.Forms.MenuItem(); this.mmLoadFromFile = new System.Windows.Forms.MenuItem(); this.mmLoadFromYahoo = new System.Windows.Forms.MenuItem(); this.miLoadFromEasyChart = new System.Windows.Forms.MenuItem(); this.miLoadFromProphet = new System.Windows.Forms.MenuItem(); this.miLoadBinary = new System.Windows.Forms.MenuItem(); this.miLoadXml = new System.Windows.Forms.MenuItem(); this.miText = new System.Windows.Forms.MenuItem(); this.miMetaStock = new System.Windows.Forms.MenuItem(); this.miLoadFromYahooStreaming = new System.Windows.Forms.MenuItem(); this.miForexText = new System.Windows.Forms.MenuItem(); this.miLoadBond = new System.Windows.Forms.MenuItem(); this.miSp2 = new System.Windows.Forms.MenuItem(); this.miSetup = new System.Windows.Forms.MenuItem(); this.miPreview = new System.Windows.Forms.MenuItem(); this.miPrint = new System.Windows.Forms.MenuItem(); this.miSp1 = new System.Windows.Forms.MenuItem(); this.miExit = new System.Windows.Forms.MenuItem(); this.miTools = new System.Windows.Forms.MenuItem(); this.miFormulaEditor = new System.Windows.Forms.MenuItem(); this.miHelp = new System.Windows.Forms.MenuItem(); this.miHotKey = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.miAbout = new System.Windows.Forms.MenuItem(); this.miDemo = new System.Windows.Forms.MenuItem(); this.miSquareRoot = new System.Windows.Forms.MenuItem(); this.miLineColor = new System.Windows.Forms.MenuItem(); this.miCrossCursor = new System.Windows.Forms.MenuItem(); this.miFormulaValue = new System.Windows.Forms.MenuItem(); this.miLineType = new System.Windows.Forms.MenuItem(); this.miGetData = new System.Windows.Forms.MenuItem(); this.miOverlayVolume = new System.Windows.Forms.MenuItem(); this.miChangeFormulaParameter = new System.Windows.Forms.MenuItem(); this.miDemo2 = new System.Windows.Forms.MenuItem(); this.miAddFormula1 = new System.Windows.Forms.MenuItem(); this.miAddFormula2 = new System.Windows.Forms.MenuItem(); this.miAddFormula3 = new System.Windows.Forms.MenuItem(); this.miMoveFormula = new System.Windows.Forms.MenuItem(); this.miRemoveSelectedArea = new System.Windows.Forms.MenuItem(); this.odLoadData = new System.Windows.Forms.OpenFileDialog(); this.cdFormulaColor = new System.Windows.Forms.ColorDialog(); this.pnBottom = new System.Windows.Forms.Panel(); this.pnClient = new System.Windows.Forms.Panel(); this.ChartControl = new Easychart.Finance.Win.ChartWinControl(); this.sizeToolControl = new Easychart.Finance.Win.SizeToolControl(); this.pnBottom.SuspendLayout(); this.pnClient.SuspendLayout(); this.SuspendLayout(); // // mmMain // this.mmMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mmFile, this.miTools, this.miHelp, this.miDemo, this.miDemo2 }); // // mmFile // this.mmFile.Index = 0; this.mmFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mmLoadFromFile, this.mmLoadFromYahoo, this.miLoadFromEasyChart, this.miLoadFromProphet, this.miLoadBinary, this.miLoadXml, this.miText, this.miMetaStock, this.miLoadFromYahooStreaming, this.miForexText, this.miLoadBond, this.miSp2, this.miSetup, this.miPreview, this.miPrint, this.miSp1, this.miExit }); this.mmFile.Text = "&File"; // // mmLoadFromFile // this.mmLoadFromFile.Index = 0; this.mmLoadFromFile.Shortcut = System.Windows.Forms.Shortcut.CtrlO; this.mmLoadFromFile.Text = "&Load data from file"; this.mmLoadFromFile.Click += new System.EventHandler(this.mmLoadFromFile_Click); // // mmLoadFromYahoo // this.mmLoadFromYahoo.Index = 1; this.mmLoadFromYahoo.Text = "Load data from yahoo finance"; this.mmLoadFromYahoo.Click += new System.EventHandler(this.mmLoadFromYahoo_Click); // // miLoadFromEasyChart // this.miLoadFromEasyChart.Index = 2; this.miLoadFromEasyChart.Text = "Load data from http://finance.easychart.net"; this.miLoadFromEasyChart.Click += new System.EventHandler(this.miLoadFromEasyChart_Click); // // miLoadFromProphet // this.miLoadFromProphet.Index = 3; this.miLoadFromProphet.Text = "Load data from prophet"; this.miLoadFromProphet.Visible = false; this.miLoadFromProphet.Click += new System.EventHandler(this.miLoadFromProphet_Click); // // miLoadBinary // this.miLoadBinary.Index = 4; this.miLoadBinary.Text = "Load random &binary data"; this.miLoadBinary.Click += new System.EventHandler(this.miLoadBinary_Click); // // miLoadXml // this.miLoadXml.Index = 5; this.miLoadXml.Text = "&Load Data From Xml File"; this.miLoadXml.Click += new System.EventHandler(this.miLoadXml_Click); // // miText // this.miText.Index = 6; this.miText.Text = "Load Data From &Text File"; this.miText.Click += new System.EventHandler(this.miText_Click); // // miMetaStock // this.miMetaStock.Index = 7; this.miMetaStock.Text = "Load from MetaStock"; this.miMetaStock.Click += new System.EventHandler(this.miMetaStock_Click); // // miLoadFromYahooStreaming // this.miLoadFromYahooStreaming.Index = 8; this.miLoadFromYahooStreaming.Text = "Load data from yahoo finance(streaming)"; this.miLoadFromYahooStreaming.Click += new System.EventHandler(this.miLoadFromYahooStreaming_Click); // // miForexText // this.miForexText.Index = 9; this.miForexText.Text = "Load data from &forex text file"; this.miForexText.Click += new System.EventHandler(this.miForexText_Click); // // miLoadBond // this.miLoadBond.Index = 10; this.miLoadBond.Text = "Load data from b&ond text file"; this.miLoadBond.Click += new System.EventHandler(this.miLoadBond_Click); // // miSp2 // this.miSp2.Index = 11; this.miSp2.Text = "-"; // // miSetup // this.miSetup.Index = 12; this.miSetup.Text = "Print &Setup"; this.miSetup.Click += new System.EventHandler(this.miSetup_Click); // // miPreview // this.miPreview.Index = 13; this.miPreview.Text = "Print Pre&view"; this.miPreview.Click += new System.EventHandler(this.miPreview_Click); // // miPrint // this.miPrint.Index = 14; this.miPrint.Text = "&Print"; this.miPrint.Click += new System.EventHandler(this.miPrint_Click); // // miSp1 // this.miSp1.Index = 15; this.miSp1.Text = "-"; // // miExit // this.miExit.Index = 16; this.miExit.Shortcut = System.Windows.Forms.Shortcut.AltF4; this.miExit.Text = "Exit"; this.miExit.Click += new System.EventHandler(this.miExit_Click); // // miTools // this.miTools.Index = 1; this.miTools.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miFormulaEditor }); this.miTools.Text = "&Tools"; // // miFormulaEditor // this.miFormulaEditor.Index = 0; this.miFormulaEditor.Shortcut = System.Windows.Forms.Shortcut.CtrlF; this.miFormulaEditor.Text = "&Formula Editor"; this.miFormulaEditor.Click += new System.EventHandler(this.miFormulaEditor_Click); // // miHelp // this.miHelp.Index = 2; this.miHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miHotKey, this.menuItem3, this.miAbout }); this.miHelp.Text = "&Help"; // // miHotKey // this.miHotKey.Index = 0; this.miHotKey.Text = "Hot Keys"; this.miHotKey.Click += new System.EventHandler(this.miHotKey_Click); // // menuItem3 // this.menuItem3.Index = 1; this.menuItem3.Text = "-"; // // miAbout // this.miAbout.Index = 2; this.miAbout.Text = "About"; this.miAbout.Click += new System.EventHandler(this.miAbout_Click); // // miDemo // this.miDemo.Index = 3; this.miDemo.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miSquareRoot, this.miLineColor, this.miCrossCursor, this.miFormulaValue, this.miLineType, this.miGetData, this.miOverlayVolume, this.miChangeFormulaParameter }); this.miDemo.Text = "&Demo"; // // miSquareRoot // this.miSquareRoot.Index = 0; this.miSquareRoot.Text = "Change second area to Square &Root Axis"; this.miSquareRoot.Click += new System.EventHandler(this.miSquareRoot_Click); // // miLineColor // this.miLineColor.Index = 1; this.miLineColor.Text = "&Change second area,second line\'s color"; this.miLineColor.Click += new System.EventHandler(this.miLineColor_Click); // // miCrossCursor // this.miCrossCursor.Index = 2; this.miCrossCursor.Text = "&Show/hide cross cursor"; this.miCrossCursor.Click += new System.EventHandler(this.miCrossCursor_Click); // // miFormulaValue // this.miFormulaValue.Index = 3; this.miFormulaValue.Text = "Show second area,first line\'s last value"; this.miFormulaValue.Click += new System.EventHandler(this.miFormulaValue_Click); // // miLineType // this.miLineType.Index = 4; this.miLineType.Text = "Change line type"; this.miLineType.Click += new System.EventHandler(this.miLineType_Click); // // miGetData // this.miGetData.Index = 5; this.miGetData.Text = "Get data from the chart"; this.miGetData.Click += new System.EventHandler(this.miGetData_Click); // // miOverlayVolume // this.miOverlayVolume.Index = 6; this.miOverlayVolume.Text = "Overlay Volume"; this.miOverlayVolume.Click += new System.EventHandler(this.miOverlayVolume_Click); // // miChangeFormulaParameter // this.miChangeFormulaParameter.Index = 7; this.miChangeFormulaParameter.Text = "Change Formula Parameter"; this.miChangeFormulaParameter.Click += new System.EventHandler(this.miChangeFormulaParameter_Click); // // miDemo2 // this.miDemo2.Index = 4; this.miDemo2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miAddFormula1, this.miAddFormula2, this.miAddFormula3, this.miMoveFormula, this.miRemoveSelectedArea }); this.miDemo2.Text = "D&emo2"; // // miAddFormula1 // this.miAddFormula1.Index = 0; this.miAddFormula1.Text = "Add Formula to Third Area"; this.miAddFormula1.Click += new System.EventHandler(this.miAddFormula1_Click); // // miAddFormula2 // this.miAddFormula2.Index = 1; this.miAddFormula2.Text = "Add Formula to Selected Area"; this.miAddFormula2.Click += new System.EventHandler(this.miAddFormula2_Click); // // miAddFormula3 // this.miAddFormula3.Index = 2; this.miAddFormula3.Text = "Add Formula to New Area"; this.miAddFormula3.Click += new System.EventHandler(this.miAddFormula3_Click); // // miMoveFormula // this.miMoveFormula.Index = 3; this.miMoveFormula.Text = "Move Formula from Area 3 to 4"; this.miMoveFormula.Click += new System.EventHandler(this.miMoveFormula_Click); // // miRemoveSelectedArea // this.miRemoveSelectedArea.Index = 4; this.miRemoveSelectedArea.Text = "Remove Selected Area"; this.miRemoveSelectedArea.Click += new System.EventHandler(this.miRemoveSelectedArea_Click); // // odLoadData // this.odLoadData.DefaultExt = "csv"; this.odLoadData.Filter = "csv files (*.csv)|*.csv|data files (*.dat)|*.dat|All files (*.*)|*.*"; // // pnBottom // this.pnBottom.Controls.Add(this.sizeToolControl); this.pnBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.pnBottom.Location = new System.Drawing.Point(0, 426); this.pnBottom.Name = "pnBottom"; this.pnBottom.Size = new System.Drawing.Size(776, 24); this.pnBottom.TabIndex = 3; // // pnClient // this.pnClient.Controls.Add(this.ChartControl); this.pnClient.Dock = System.Windows.Forms.DockStyle.Fill; this.pnClient.Location = new System.Drawing.Point(0, 0); this.pnClient.Name = "pnClient"; this.pnClient.Size = new System.Drawing.Size(776, 426); this.pnClient.TabIndex = 4; // // ChartControl // this.ChartControl.AdjustData = ((bool)(configurationAppSettings.GetValue("ChartControl.AdjustData", typeof(bool)))); this.ChartControl.AreaPercent = ((string)(configurationAppSettings.GetValue("ChartControl.AreaPercent", typeof(string)))); this.ChartControl.BackColor = System.Drawing.SystemColors.Control; this.ChartControl.CausesValidation = false; this.ChartControl.ChartDragMode = Easychart.Finance.ChartDragMode.Chart; this.ChartControl.ColumnWidth = 5D; this.ChartControl.DefaultFormulas = ((string)(configurationAppSettings.GetValue("ChartControl.DefaultFormulas", typeof(string)))); this.ChartControl.Designing = false; this.ChartControl.Dock = System.Windows.Forms.DockStyle.Fill; this.ChartControl.EndTime = new System.DateTime(((long)(0))); this.ChartControl.FavoriteFormulas = ((string)(configurationAppSettings.GetValue("ChartControl.FavoriteFormulas", typeof(string)))); this.ChartControl.ForeColor = System.Drawing.Color.Coral; exchangeIntraday1.TimePeriods = new Easychart.Finance.TimePeriod[0]; exchangeIntraday1.TimeZone = -5D; this.ChartControl.IntradayInfo = exchangeIntraday1; this.ChartControl.Location = new System.Drawing.Point(0, 0); this.ChartControl.MaxPrice = 0D; this.ChartControl.MinColumnWidth = 1D; this.ChartControl.MinPrice = 0D; this.ChartControl.MouseZoomMode = Easychart.Finance.Win.MouseZoomMode.None; this.ChartControl.Name = "ChartControl"; this.ChartControl.PriceLabelFormat = "{CODE} O:{OPEN} H:{HIGH} L:{LOW} C:{CLOSE} Chg:{CHANGE}"; this.ChartControl.ResetYAfterXChanged = false; this.ChartControl.ShowCrossCursor = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowCrossCursor", typeof(bool)))); this.ChartControl.ShowCursorLabel = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowCursorLabel", typeof(bool)))); this.ChartControl.ShowIndicatorValues = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowIndicatorValues", typeof(bool)))); this.ChartControl.ShowOverlayValues = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowOverlayValues", typeof(bool)))); this.ChartControl.ShowStatistic = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowStatistic", typeof(bool)))); this.ChartControl.Size = new System.Drawing.Size(776, 426); this.ChartControl.Skin = ((string)(configurationAppSettings.GetValue("ChartControl.Skin", typeof(string)))); this.ChartControl.StartTime = new System.DateTime(((long)(0))); this.ChartControl.StickRenderType = Easychart.Finance.StickRenderType.Column; this.ChartControl.TabIndex = 0; this.ChartControl.BeforeApplySkin += new Easychart.Finance.Win.ApplySkinHandler(this.ChartControl_BeforeApplySkin); this.ChartControl.AfterApplySkin += new System.EventHandler(this.ChartControl_AfterApplySkin); this.ChartControl.NativePaint += new Easychart.Finance.NativePaintHandler(this.ChartControl_NativePaint); this.ChartControl.DataChanged += new System.EventHandler(this.ChartControl_DataChanged); // // sizeToolControl // this.sizeToolControl.ChartControl = this.ChartControl; this.sizeToolControl.Dock = System.Windows.Forms.DockStyle.Fill; this.sizeToolControl.Location = new System.Drawing.Point(0, 0); this.sizeToolControl.Name = "sizeToolControl"; this.sizeToolControl.Size = new System.Drawing.Size(776, 24); this.sizeToolControl.TabIndex = 0; // // DemoForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(776, 450); this.Controls.Add(this.pnClient); this.Controls.Add(this.pnBottom); this.Cursor = System.Windows.Forms.Cursors.Default; this.Font = new System.Drawing.Font("Verdana", 8.25F); this.Menu = this.mmMain; this.Name = "DemoForm"; this.Text = "DemoForm"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Closed += new System.EventHandler(this.DemoForm_Closed); this.Load += new System.EventHandler(this.DemoForm_Load); this.pnBottom.ResumeLayout(false); this.pnClient.ResumeLayout(false); this.ResumeLayout(false); }
/// <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(); Easychart.Finance.ExchangeIntraday exchangeIntraday1 = new Easychart.Finance.ExchangeIntraday(); this.sizeToolControl = new Easychart.Finance.Win.SizeToolControl(); this.Designer = new Easychart.Finance.Win.ChartWinControl(); this.ToolPanel = new Easychart.Finance.Objects.ObjectToolPanel(); this.spTool = new System.Windows.Forms.Splitter(); this.pg = new System.Windows.Forms.PropertyGrid(); this.spProperty = new System.Windows.Forms.Splitter(); this.mmMain = new System.Windows.Forms.MainMenu(this.components); this.miFile = new System.Windows.Forms.MenuItem(); this.miOpen = new System.Windows.Forms.MenuItem(); this.miSave = new System.Windows.Forms.MenuItem(); this.mneLoad = new System.Windows.Forms.MenuItem(); this.submnuYhoo = new System.Windows.Forms.MenuItem(); this.mnuSaveImage = new System.Windows.Forms.MenuItem(); this.miSp1 = new System.Windows.Forms.MenuItem(); this.miExit = new System.Windows.Forms.MenuItem(); this.miHelp = new System.Windows.Forms.MenuItem(); this.mAboutMenuItem = new System.Windows.Forms.MenuItem(); this.ofd = new System.Windows.Forms.OpenFileDialog(); this.sfd = new System.Windows.Forms.SaveFileDialog(); this.pnRight = new System.Windows.Forms.Panel(); this.spTree = new System.Windows.Forms.Splitter(); this.ObjectTree = new Easychart.Finance.Objects.ObjectTree(); this.panel1 = new System.Windows.Forms.Panel(); this.pnRight.SuspendLayout(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // sizeToolControl // this.sizeToolControl.ChartControl = this.Designer; this.sizeToolControl.Dock = System.Windows.Forms.DockStyle.Bottom; this.sizeToolControl.Location = new System.Drawing.Point(0, 466); this.sizeToolControl.Name = "sizeToolControl"; this.sizeToolControl.Size = new System.Drawing.Size(304, 20); this.sizeToolControl.TabIndex = 0; // // Designer // this.Designer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.Designer.CausesValidation = false; this.Designer.DefaultFormulas = "MAIN#AreaBB#MA(13)#MA(50)#MA(200);VOLMA;SlowSTO;MACD;RSI(14)#RSI(28);BIAS"; this.Designer.Designing = false; this.Designer.StickRenderType = StickRenderType.ThickLine; this.Designer.EndTime = new System.DateTime(((long)(0))); this.Designer.FavoriteFormulas = "VOLMA;AreaRSI;BIAS;MACD;CCI;OBV;ATR;FastSTO;SlowSTO;ROC;TRIX;WR;AD;CMF;PPO;StochR" + "SI;ULT;BBWidth;PVO"; exchangeIntraday1.TimePeriods = new Easychart.Finance.TimePeriod[0]; exchangeIntraday1.TimeZone = -5; this.Designer.IntradayInfo = exchangeIntraday1; this.Designer.LatestValueType = Easychart.Finance.LatestValueType.None; this.Designer.Location = new System.Drawing.Point(0, 0); this.Designer.MaxPrice = 0; this.Designer.MinPrice = 0; this.Designer.Name = "Designer"; this.Designer.PriceLabelFormat = null; this.Designer.ShowStatistic = false; this.Designer.Size = new System.Drawing.Size(304, 460); this.Designer.StartTime = new System.DateTime(((long)(0))); this.Designer.Symbol = null; this.Designer.TabIndex = 5; // // ToolPanel // this.ToolPanel.Dock = System.Windows.Forms.DockStyle.Left; this.ToolPanel.Location = new System.Drawing.Point(3, 0); this.ToolPanel.Name = "ToolPanel"; this.ToolPanel.ResetAfterEachDraw = true; this.ToolPanel.Size = new System.Drawing.Size(140, 486); this.ToolPanel.TabIndex = 0; // // spTool // this.spTool.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.spTool.Location = new System.Drawing.Point(0, 0); this.spTool.MinExtra = 80; this.spTool.MinSize = 80; this.spTool.Name = "spTool"; this.spTool.Size = new System.Drawing.Size(3, 486); this.spTool.TabIndex = 1; this.spTool.TabStop = false; // // pg // this.pg.Dock = System.Windows.Forms.DockStyle.Fill; this.pg.LineColor = System.Drawing.SystemColors.ScrollBar; this.pg.Location = new System.Drawing.Point(0, 179); this.pg.Name = "pg"; this.pg.Size = new System.Drawing.Size(200, 307); this.pg.TabIndex = 3; // // spProperty // this.spProperty.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.spProperty.Dock = System.Windows.Forms.DockStyle.Right; this.spProperty.Location = new System.Drawing.Point(447, 0); this.spProperty.MinExtra = 0; this.spProperty.MinSize = 0; this.spProperty.Name = "spProperty"; this.spProperty.Size = new System.Drawing.Size(3, 486); this.spProperty.TabIndex = 4; this.spProperty.TabStop = false; // // mmMain // this.mmMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miFile, this.miHelp }); // // miFile // this.miFile.Index = 0; this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miOpen, this.miSave, this.mneLoad, this.mnuSaveImage, this.miSp1, this.miExit }); this.miFile.Text = "&File"; // // miOpen // this.miOpen.Index = 0; this.miOpen.Text = "&Open"; this.miOpen.Click += new System.EventHandler(this.miOpen_Click); // // miSave // this.miSave.Index = 1; this.miSave.Text = "&Save"; this.miSave.Click += new System.EventHandler(this.miSave_Click); // // mneLoad // this.mneLoad.Index = 2; this.mneLoad.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.submnuYhoo }); this.mneLoad.Text = "&Load"; // // submnuYhoo // this.submnuYhoo.Index = 0; this.submnuYhoo.Text = "Yahoo"; this.submnuYhoo.Click += new System.EventHandler(this.submnuYhoo_Click); // // mnuSaveImage // this.mnuSaveImage.Index = 3; this.mnuSaveImage.Text = "Save &Image"; this.mnuSaveImage.Click += new System.EventHandler(this.mnuSaveImage_Click); // // miSp1 // this.miSp1.Index = 4; this.miSp1.Text = "-"; // // miExit // this.miExit.Index = 5; this.miExit.Text = "&Exit"; this.miExit.Click += new System.EventHandler(this.miExit_Click); // // miHelp // this.miHelp.Index = 1; this.miHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mAboutMenuItem }); this.miHelp.Text = "&Help"; // // mAboutMenuItem // this.mAboutMenuItem.Index = 0; this.mAboutMenuItem.Text = "&About Adam"; this.mAboutMenuItem.Click += new System.EventHandler(this.miWebSite_Click); // // ofd // this.ofd.Filter = "Object File(*.xml)|*.xml"; // // sfd // this.sfd.DefaultExt = "xml"; this.sfd.Filter = "Object File(*.xml)|*.xml"; // // pnRight // this.pnRight.Controls.Add(this.pg); this.pnRight.Controls.Add(this.spTree); this.pnRight.Controls.Add(this.ObjectTree); this.pnRight.Dock = System.Windows.Forms.DockStyle.Right; this.pnRight.Location = new System.Drawing.Point(450, 0); this.pnRight.Name = "pnRight"; this.pnRight.Size = new System.Drawing.Size(200, 486); this.pnRight.TabIndex = 6; // // spTree // this.spTree.Dock = System.Windows.Forms.DockStyle.Top; this.spTree.Location = new System.Drawing.Point(0, 176); this.spTree.Name = "spTree"; this.spTree.Size = new System.Drawing.Size(200, 3); this.spTree.TabIndex = 5; this.spTree.TabStop = false; // // ObjectTree // this.ObjectTree.Dock = System.Windows.Forms.DockStyle.Top; this.ObjectTree.Location = new System.Drawing.Point(0, 0); this.ObjectTree.Name = "ObjectTree"; this.ObjectTree.Size = new System.Drawing.Size(200, 176); this.ObjectTree.TabIndex = 4; // // panel1 // this.panel1.Controls.Add(this.sizeToolControl); this.panel1.Controls.Add(this.Designer); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(143, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(304, 486); this.panel1.TabIndex = 7; // // ObjectDesignerForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(650, 486); this.Controls.Add(this.panel1); this.Controls.Add(this.ToolPanel); this.Controls.Add(this.spProperty); this.Controls.Add(this.spTool); this.Controls.Add(this.pnRight); this.Font = new System.Drawing.Font("Verdana", 8.25F); this.KeyPreview = true; this.Menu = this.mmMain; this.Name = "ObjectDesignerForm"; this.Text = "Adam Chart Demo"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.ObjectDesignerForm_Load); this.pnRight.ResumeLayout(false); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <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.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader(); Easychart.Finance.ExchangeIntraday exchangeIntraday1 = new Easychart.Finance.ExchangeIntraday(); this.mmMain = new System.Windows.Forms.MainMenu(this.components); this.mmData = new System.Windows.Forms.MenuItem(); this.miExport2CSV = new System.Windows.Forms.MenuItem(); this.mmLoadData = new System.Windows.Forms.MenuItem(); this.mmLoadDataForecast = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.miExit = new System.Windows.Forms.MenuItem(); this.mmMining = new System.Windows.Forms.MenuItem(); this.miCreateDM = new System.Windows.Forms.MenuItem(); this.miUpdateData = new System.Windows.Forms.MenuItem(); this.miForecast = new System.Windows.Forms.MenuItem(); this.miConfig = new System.Windows.Forms.MenuItem(); this.miHelp = new System.Windows.Forms.MenuItem(); this.miGuide = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.miAbout = new System.Windows.Forms.MenuItem(); this.miStat = new System.Windows.Forms.MenuItem(); this.miStatConfig = new System.Windows.Forms.MenuItem(); this.miStatPerPrice = new System.Windows.Forms.MenuItem(); this.miStatDurPerPrice = new System.Windows.Forms.MenuItem(); this.miStatPerVolume = new System.Windows.Forms.MenuItem(); this.miStatChangePrice = new System.Windows.Forms.MenuItem(); this.miStatFinance = new System.Windows.Forms.MenuItem(); this.miFinance = new System.Windows.Forms.MenuItem(); this.miFinBranch = new System.Windows.Forms.MenuItem(); this.miFinStock = new System.Windows.Forms.MenuItem(); this.odLoadData = new System.Windows.Forms.OpenFileDialog(); this.cdFormulaColor = new System.Windows.Forms.ColorDialog(); this.pnBottom = new System.Windows.Forms.Panel(); this.sizeToolControl = new Easychart.Finance.Win.SizeToolControl(); this.ChartControl = new Easychart.Finance.Win.ChartWinControl(); this.pnClient = new System.Windows.Forms.Panel(); this.miStatMarket = new System.Windows.Forms.MenuItem(); this.pnBottom.SuspendLayout(); this.pnClient.SuspendLayout(); this.SuspendLayout(); // // mmMain // this.mmMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mmData, this.mmMining, this.miHelp, this.miStat, this.miFinance }); // // mmData // this.mmData.Index = 0; this.mmData.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miExport2CSV, this.mmLoadData, this.mmLoadDataForecast, this.menuItem1, this.miExit }); this.mmData.Text = "&Dữ Liệu"; // // miExport2CSV // this.miExport2CSV.Index = 0; this.miExport2CSV.Text = "Xuất dữ liệu ra CSV file"; this.miExport2CSV.Click += new System.EventHandler(this.miExport2CSV_Click); // // mmLoadData // this.mmLoadData.Index = 1; this.mmLoadData.Shortcut = System.Windows.Forms.Shortcut.CtrlO; this.mmLoadData.Text = "&Vẽ Dữ Liệu Nguồn"; this.mmLoadData.Click += new System.EventHandler(this.mmLoadData_Click); // // mmLoadDataForecast // this.mmLoadDataForecast.Index = 2; this.mmLoadDataForecast.Text = "Vẽ Dữ Liệu Nguồn và Dự Báo"; this.mmLoadDataForecast.Click += new System.EventHandler(this.mmLoadDataForecast_Click); // // menuItem1 // this.menuItem1.Index = 3; this.menuItem1.Text = "-"; // // miExit // this.miExit.Index = 4; this.miExit.Shortcut = System.Windows.Forms.Shortcut.AltF4; this.miExit.Text = "Thoát"; this.miExit.Click += new System.EventHandler(this.miExit_Click); // // mmMining // this.mmMining.Index = 1; this.mmMining.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miCreateDM, this.miUpdateData, this.miForecast, this.miConfig }); this.mmMining.Text = "Dự &Báo"; // // miCreateDM // this.miCreateDM.Index = 0; this.miCreateDM.Text = "&Tạo mô hình cho Stock mới"; this.miCreateDM.Click += new System.EventHandler(this.miCreateDM_Click); // // miUpdateData // this.miUpdateData.Index = 1; this.miUpdateData.Text = "&Cập nhật dữ liệu mới"; this.miUpdateData.Click += new System.EventHandler(this.miUpdateData_Click); // // miForecast // this.miForecast.Index = 2; this.miForecast.Text = "&Dự báo tương lai"; this.miForecast.Click += new System.EventHandler(this.miForecast_Click); // // miConfig // this.miConfig.Index = 3; this.miConfig.Text = "Cấu &hình"; this.miConfig.Click += new System.EventHandler(this.miConfig_Click); // // miHelp // this.miHelp.Index = 2; this.miHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miGuide, this.menuItem3, this.miAbout }); this.miHelp.Text = "&Trợ Giúp"; this.miHelp.Visible = false; // // miGuide // this.miGuide.Index = 0; this.miGuide.Text = "&Hướng dẫn"; this.miGuide.Click += new System.EventHandler(this.miGuide_Click); // // menuItem3 // this.menuItem3.Index = 1; this.menuItem3.Text = "-"; // // miAbout // this.miAbout.Index = 2; this.miAbout.Text = ""; // // miStat // this.miStat.Index = 3; this.miStat.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miStatConfig, this.miStatPerPrice, this.miStatDurPerPrice, this.miStatPerVolume, this.miStatChangePrice, this.miStatFinance, this.miStatMarket }); this.miStat.Text = "Thống Kê"; // // miStatConfig // this.miStatConfig.Index = 0; this.miStatConfig.Text = "Cấu Hình"; this.miStatConfig.Click += new System.EventHandler(this.miStatConfig_Click); // // miStatPerPrice // this.miStatPerPrice.Index = 1; this.miStatPerPrice.Text = "Theo giá min/max"; this.miStatPerPrice.Click += new System.EventHandler(this.miStatPerPrice_Click); // // miStatDurPerPrice // this.miStatDurPerPrice.Index = 2; this.miStatDurPerPrice.Text = "Theo giá first/last"; this.miStatDurPerPrice.Click += new System.EventHandler(this.miStatDurPerPrice_Click); // // miStatPerVolume // this.miStatPerVolume.Index = 3; this.miStatPerVolume.Text = "Theo lượng giao dịch"; this.miStatPerVolume.Click += new System.EventHandler(this.miStatPerVolume_Click); // // miStatChangePrice // this.miStatChangePrice.Index = 4; this.miStatChangePrice.Text = "Thay đổi giá"; this.miStatChangePrice.Click += new System.EventHandler(this.miStatChangePrice_Click); // // miStatFinance // this.miStatFinance.Index = 5; this.miStatFinance.Text = "Tài chính"; this.miStatFinance.Click += new System.EventHandler(this.miStatFinance_Click); // // miFinance // this.miFinance.Index = 4; this.miFinance.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miFinBranch, this.miFinStock }); this.miFinance.Text = "Tài Chính"; // // miFinBranch // this.miFinBranch.Index = 0; this.miFinBranch.Text = "Tài chính Ngành"; this.miFinBranch.Click += new System.EventHandler(this.miFinBranch_Click); // // miFinStock // this.miFinStock.Index = 1; this.miFinStock.Text = "Tài chính Công Ty"; this.miFinStock.Click += new System.EventHandler(this.miFinStock_Click); // // odLoadData // this.odLoadData.DefaultExt = "csv"; this.odLoadData.Filter = "csv files (*.csv)|*.csv|data files (*.dat)|*.dat|All files (*.*)|*.*"; // // pnBottom // this.pnBottom.Controls.Add(this.sizeToolControl); this.pnBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.pnBottom.Location = new System.Drawing.Point(0, 291); this.pnBottom.Name = "pnBottom"; this.pnBottom.Size = new System.Drawing.Size(695, 24); this.pnBottom.TabIndex = 3; // // sizeToolControl // this.sizeToolControl.ChartControl = this.ChartControl; this.sizeToolControl.Dock = System.Windows.Forms.DockStyle.Fill; this.sizeToolControl.Location = new System.Drawing.Point(0, 0); this.sizeToolControl.Name = "sizeToolControl"; this.sizeToolControl.Size = new System.Drawing.Size(695, 24); this.sizeToolControl.TabIndex = 0; // // ChartControl // this.ChartControl.AdjustData = ((bool)(configurationAppSettings.GetValue("ChartControl.AdjustData", typeof(bool)))); this.ChartControl.AreaPercent = ((string)(configurationAppSettings.GetValue("ChartControl.AreaPercent", typeof(string)))); this.ChartControl.BackColor = System.Drawing.SystemColors.Control; this.ChartControl.CausesValidation = false; this.ChartControl.ChartDragMode = Easychart.Finance.ChartDragMode.Chart; this.ChartControl.ColumnWidth = 5; this.ChartControl.DefaultFormulas = ((string)(configurationAppSettings.GetValue("ChartControl.DefaultFormulas", typeof(string)))); this.ChartControl.Designing = false; this.ChartControl.Dock = System.Windows.Forms.DockStyle.Fill; this.ChartControl.EndTime = new System.DateTime(((long)(0))); this.ChartControl.FavoriteFormulas = ((string)(configurationAppSettings.GetValue("ChartControl.FavoriteFormulas", typeof(string)))); this.ChartControl.ForeColor = System.Drawing.Color.Coral; exchangeIntraday1.TimePeriods = new Easychart.Finance.TimePeriod[0]; exchangeIntraday1.TimeZone = -4; this.ChartControl.IntradayInfo = exchangeIntraday1; this.ChartControl.Location = new System.Drawing.Point(0, 0); this.ChartControl.MaxPrice = 0; this.ChartControl.MinColumnWidth = 1; this.ChartControl.MinPrice = 0; this.ChartControl.Name = "ChartControl"; this.ChartControl.PriceLabelFormat = "{CODE} O:{OPEN} H:{HIGH} L:{LOW} C:{CLOSE} Chg:{CHANGE}"; this.ChartControl.ResetYAfterXChanged = false; this.ChartControl.ShowCrossCursor = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowCrossCursor", typeof(bool)))); this.ChartControl.ShowCursorLabel = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowCursorLabel", typeof(bool)))); this.ChartControl.ShowIndicatorValues = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowIndicatorValues", typeof(bool)))); this.ChartControl.ShowOverlayValues = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowOverlayValues", typeof(bool)))); this.ChartControl.ShowStatistic = ((bool)(configurationAppSettings.GetValue("ChartControl.ShowStatistic", typeof(bool)))); this.ChartControl.Size = new System.Drawing.Size(695, 291); this.ChartControl.Skin = ((string)(configurationAppSettings.GetValue("ChartControl.Skin", typeof(string)))); this.ChartControl.StartTime = new System.DateTime(((long)(0))); this.ChartControl.StickRenderType = Easychart.Finance.StickRenderType.Column; this.ChartControl.TabIndex = 0; this.ChartControl.NativePaint += new Easychart.Finance.NativePaintHandler(this.ChartControl_NativePaint); this.ChartControl.AfterApplySkin += new System.EventHandler(this.ChartControl_AfterApplySkin); this.ChartControl.BeforeApplySkin += new Easychart.Finance.Win.ApplySkinHandler(this.ChartControl_BeforeApplySkin); this.ChartControl.DataChanged += new System.EventHandler(this.ChartControl_DataChanged); // // pnClient // this.pnClient.Controls.Add(this.ChartControl); this.pnClient.Dock = System.Windows.Forms.DockStyle.Fill; this.pnClient.Location = new System.Drawing.Point(0, 0); this.pnClient.Name = "pnClient"; this.pnClient.Size = new System.Drawing.Size(695, 291); this.pnClient.TabIndex = 4; // // miStatMarket // this.miStatMarket.Index = 6; this.miStatMarket.Text = "Điểm thị trường"; this.miStatMarket.Click += new System.EventHandler(this.miStatMarket_Click); // // frmMainForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(695, 315); this.Controls.Add(this.pnClient); this.Controls.Add(this.pnBottom); this.Cursor = System.Windows.Forms.Cursors.Default; this.Font = new System.Drawing.Font("Verdana", 8.25F); this.MaximizeBox = false; this.Menu = this.mmMain; this.Name = "frmMainForm"; this.Text = "Chuong trinh chinh"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.DemoForm_Load); this.Closed += new System.EventHandler(this.DemoForm_Closed); this.pnBottom.ResumeLayout(false); this.pnClient.ResumeLayout(false); this.ResumeLayout(false); }
public void DrawXAxisTick(FormulaCanvas Canvas, double[] Date, FormulaData fdDate, PointF[] pfs, FormulaAxisX fax, ExchangeIntraday ei) { if (DataCycle == null) { return; } try { int LastCycle = -1; int NowCycle = 0; string LastExtDate = ""; string NowExtDate; int LastX = -10000; int LastIndex = -1; Graphics g = Canvas.CurrentGraph; double DateSpan = 0; if (Date.Length > 0) { DateSpan = Date[Date.Length - 1] - Date[0]; } double[] SeqDate = Date; if (ei != null && ei.NativeCycle) { SeqDate = new double[Date.Length]; for (int i = 0; i < SeqDate.Length; i++) { SeqDate[i] = (int)Date[i] + ei.OneDayTime(Date[i]); } } ArrayList alTick = new ArrayList(); Font F = fax.LabelFont; Pen LP = LinePen.GetPen(); Pen TP = TickPen.GetPen(); for (int i = pfs.Length - 1; i >= 0; i--) { int DateIndex = Date.Length - 1 - Math.Max(0, Canvas.Start) - i; double d = Date[DateIndex]; DateTime D = DateTime.FromOADate(d); NowCycle = DataCycle.GetSequence(SeqDate[DateIndex]); if (NowCycle != LastCycle) { PointF P = pfs[i]; LastCycle = NowCycle; if (ShowLine) { int B = Canvas.Rect.Bottom; if (!fax.Visible) { B = Canvas.FrameRect.Bottom; } g.DrawLine(LP, P.X, Canvas.FrameRect.Top, P.X, B); } if (fax.Visible && ShowTick) { int TickHeight = TickWidth; if (FullTick) { TickHeight = fax.Rect.Height; } if (Inside) { TickHeight = -TickHeight; } g.DrawLine(TP, P.X, fax.Rect.Top, P.X, TickHeight + fax.Rect.Top); } string s = D.ToString(Format, DateFormatProvider); int i1 = s.IndexOf('{'); int i2 = s.IndexOf('}'); if (i2 > i1) { NowExtDate = s.Substring(i1 + 1, i2 - i1 - 1); if (NowExtDate != LastExtDate) { if (NowExtDate.StartsWith("$")) { s = s.Remove(i2, s.Length - i2).Remove(i1, 2); } else { s = s.Remove(i1, 1).Remove(i2 - 1, 1); } } else { s = s.Substring(0, i1) + s.Substring(i2 + 1); } LastExtDate = NowExtDate; } float LabelWidth = g.MeasureString(s, F).Width; float LabelX = P.X; switch (fax.AxisLabelAlign) { case AxisLabelAlign.TickCenter: LabelX -= LabelWidth / 2; break; case AxisLabelAlign.TickLeft: LabelX -= LabelWidth; break; } if (LabelX < fax.Rect.Left) { LabelX = fax.Rect.Left; } if (fax.Visible && ShowText /*&& LastX+MinimumPixel<LabelX*/) { if (ei == null || ei.ShowFirstXLabel || i < pfs.Length - 1 || DateSpan > 1) { alTick.Add(new object[] { s, LabelX, LabelWidth, d, LastX + MinimumPixel < LabelX }); //g.DrawString(s,F,fax.LabelBrush,LabelX,fax.Rect.Top); LastX = (int)(LabelX + LabelWidth); } LastIndex = i; } } //if (NowCycle!=LastCycle) } //for //Second pass for (int i = 0; i < alTick.Count; i++) { object[] os = (object[])alTick[i]; if (!(bool)os[4]) { if ((int)(double)((object[])alTick[i - 1])[3] == (int)(double)((object[])alTick[i])[3]) { alTick.RemoveAt(i); } else { alTick.RemoveAt(i - 1); } i--; } } //Third pass Brush lb = fax.LabelBrush.GetBrush(); for (int i = 0; i < alTick.Count; i++) { object[] os = (object[])alTick[i]; g.DrawString((string)os[0], F, lb, (float)os[1], fax.Rect.Top); } } catch { } }
public void DrawXAxisTick(FormulaCanvas Canvas, double[] Date, FormulaData fdDate, PointF[] pfs, FormulaAxisX fax, ExchangeIntraday ei) { if (this.DataCycle != null) { int num = 0; int sequence = 0; string str = ""; int num3 = -10000; int num4 = -1; Graphics currentGraph = Canvas.CurrentGraph; double num5 = 0.0; if (Date.Length > 0) { num5 = Date[Date.Length - 1] - Date[0]; } double[] numArray = Date; if ((ei != null) && ei.NativeCycle) { numArray = new double[Date.Length]; for (int j = 0; j < numArray.Length; j++) { numArray[j] = ((int)Date[j]) + ei.OneDayTime(Date[j]); } } for (int i = pfs.Length - 1; i >= 0; i--) { int index = ((Date.Length - 1) - Canvas.Start) - i; double d = Date[index]; DateTime time = DateTime.FromOADate(d); sequence = this.DataCycle.GetSequence(numArray[index]); if (sequence != num) { PointF tf = pfs[i]; num = sequence; if (this.ShowLine) { int bottom = Canvas.Rect.Bottom; if (!fax.Visible) { bottom = Canvas.FrameRect.Bottom; } currentGraph.DrawLine(this.LinePen, tf.X, (float)Canvas.FrameRect.Top, tf.X, (float)bottom); } if (fax.Visible && this.ShowTick) { int tickWidth = this.TickWidth; if (this.FullTick) { tickWidth = fax.Rect.Height; } if (this.Inside) { tickWidth = -tickWidth; } currentGraph.DrawLine(this.TickPen, tf.X, (float)fax.Rect.Top, tf.X, (float)(tickWidth + fax.Rect.Top)); } string text = time.ToString(this.Format, this.DateFormatProvider); int startIndex = text.IndexOf('{'); int num13 = text.IndexOf('}'); if (num13 > startIndex) { string str2 = text.Substring(startIndex + 1, (num13 - startIndex) - 1); if (str2 != str) { text = text.Remove(startIndex, 1).Remove(num13 - 1, 1); } else { text = text.Substring(0, startIndex) + text.Substring(num13 + 1); } str = str2; } Font labelFont = fax.LabelFont; float width = currentGraph.MeasureString(text, labelFont).Width; float x = tf.X; switch (fax.AxisLabelAlign) { case AxisLabelAlign.TickCenter: x -= width / 2f; break; case AxisLabelAlign.TickLeft: x -= width; break; } if (x < fax.Rect.Left) { x = fax.Rect.Left; } if ((fax.Visible && this.ShowText) && ((num3 + this.MinimumPixel) < x)) { if (((ei == null) || ei.ShowFirstXLabel) || ((i < (pfs.Length - 1)) || (num5 > 1.0))) { currentGraph.DrawString(text, labelFont, fax.LabelBrush, x, (float)fax.Rect.Top); num3 = (int)(x + width); } num4 = i; } } } } }