Ejemplo n.º 1
0
 private void MakeTableAndDraw(int plotEnd)
 {
     if (MyMeigara != null)
     {
         MyMeigara.MakeTable(plotEnd,
                             MyMeigara.PlotWide.Value,
                             MyConfig.ChartScale,
                             MyConfig.AveStep);
         DrawTable(MyMeigara, chart1);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 1ページ後へ移動
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ToolStripButton4_Click(object sender, EventArgs e)
 {
     if (MyMeigara != null)
     {
         System.Windows.Forms.Cursor _Cursor = this.Cursor;
         this.Cursor = Cursors.WaitCursor;
         MyMeigara.ShiftKabukaTable(CandleSizeList[(int)MyConfig.CandleSize].Days);
         DrawTable(MyMeigara, chart1);
         this.Cursor = _Cursor;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 1日後に移動
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ToolStripButton3_Click(object sender, EventArgs e)
 {
     if (MyMeigara != null)
     {
         System.Windows.Forms.Cursor _Cursor = this.Cursor;
         this.Cursor = Cursors.WaitCursor;
         MyMeigara.ShiftKabukaTable(1);
         DrawTable(MyMeigara, chart1);
         this.Cursor = _Cursor;
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 表示幅の変更
 /// </summary>
 private void SizeChange()
 {
     if (MyMeigara != null)
     {
         System.Windows.Forms.Cursor _Cursor = this.Cursor;
         this.Cursor = Cursors.WaitCursor;
         // テーブル作成
         MyMeigara.MakeTable(MyMeigara.PlotEnd,
                             CandleSizeList[(int)MyConfig.CandleSize].Days,
                             MyConfig.ChartScale,
                             MyConfig.AveStep);
         // 描画
         DrawTable(MyMeigara, chart1);
         this.Cursor = _Cursor;
     }
 }
Ejemplo n.º 5
0
        /// <summary>
        /// 日付選択
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CalendarDialogStripButton5_Click(object sender, EventArgs e)
        {
            ActiveMarket.Calendar calendar = new ActiveMarket.Calendar();
            DateTime _date;
            int      _pos;

            if (MyMeigara != null)
            {
                CalendarDialog _CalendarDialog = new CalendarDialog(
                    MyMeigara.GetPriceBeginDate(),
                    MyMeigara.GetPriceEndDate(),
                    MyMeigara.PlotEndDate)
                {
                    StartPosition = FormStartPosition.Manual,
                    Left          = this.Left + 340,
                    Top           = this.Top + 80,
                    Owner         = this
                };
                _CalendarDialog.ShowDialog(this);

                _date = _CalendarDialog.SelectedDate;

                if (_date != DateTime.Parse("0001/01/01"))
                {
                    try {
                        _pos = calendar.DatePosition(_date, -1);
                    } catch {
                        _pos = calendar.DatePosition(_date, 1);
                    }

                    MakeTableAndDraw(_pos);
                }

                _CalendarDialog.Dispose();
            }
        }