コード例 #1
0
ファイル: ChartMain.cs プロジェクト: wang-shun/tradelink
        void newChart(BarList bl)
        {
            if (InvokeRequired)
                Invoke(new BarListDelegate(newChart), new object[] { bl });
            else
            {

                Chart c = new Chart(bl, false);
                c.Symbol = bl.Symbol;
                c.chartControl1.SendDebug += new DebugDelegate(debug);


                try
                {
                    c.StartPosition = FormStartPosition.Manual;
                    c.Location = Chartographer.Properties.Settings.Default.chartstart;
                }
                catch (NullReferenceException) { }
                newChartData += new BarListDelegate(c.NewBarList);
                c.Move += new EventHandler(c_Move);
                c.Icon = Chartographer.Properties.Resources.chart;
                if (usemax)
                    c.WindowState = FormWindowState.Maximized;
                if (useblack)
                    c.chartControl1.BackColor = Color.Black;
                c.Show();
            }
        }
コード例 #2
0
ファイル: Quote.cs プロジェクト: blueysnow/cj-at-project
 void rightchart(object sender, EventArgs e)
 {
     Security sec = GetVisibleSecurity(CurrentRow);
     if (!sec.isValid)
         return;
     string sym = sec.Symbol;
     BarList bl;
     if (!bardict.TryGetValue(sec.FullName,out bl))
     {
         debug("Unable to locate chart for: "+sec.FullName);
         return;
     }
     Chart c = new Chart(bl);
     c.Symbol = sym;
     c.Show();
 }
コード例 #3
0
ファイル: ChartMain.cs プロジェクト: antonywu/tradelink
        void newChart(BarList bl)
        {
            if (!blbox.ContainsKey(bl.Symbol))
                blbox.Add(bl.Symbol, bl);
            else blbox[bl.Symbol] = bl;

            Chart c = new Chart(bl, false);
            c.Symbol = bl.Symbol;
            try
            {
                c.StartPosition = FormStartPosition.Manual;
                c.Location = Chartographer.Properties.Settings.Default.chartstart;
            }
            catch (NullReferenceException) { }
            newChartData += new BarListDelegate(c.NewBarList);
            c.Move += new EventHandler(c_Move);
            c.Icon = Chartographer.Properties.Resources.chart;
            if (maxchartbox.Checked) c.WindowState = FormWindowState.Maximized;
            if (blackbackground.Checked) c.chartControl1.BackColor = Color.Black;
            c.Show();
        }