Exemplo n.º 1
0
 private void startGeneralModelToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //交易模式
     if (!Market)
     {
         timer1.Enabled = true;
         Market         = true; ModelTimer.Enabled = true;
         startGeneralModelToolStripMenuItem.Text = "Market Model (√)";
         GoldPrice.BalloonTipTitle = "交易模式已启动";       //设置系统托盘启动时显示的文本
         GoldPrice.BalloonTipText  = "只接收每天9点到18点数据"; //设置系统托盘启动时显示的文本
         GoldPrice.BalloonTipIcon  = ToolTipIcon.Info;
         GoldPrice.Visible         = true;
         GoldPrice.ShowBalloonTip(3000);
     }
     else
     {
         timer1.Enabled = true;
         Market         = false; ModelTimer.Enabled = false;
         startGeneralModelToolStripMenuItem.Text = "Start Market Model";
         GoldPrice.BalloonTipTitle = "交易模式已关闭";//设置系统托盘启动时显示的文本
         GoldPrice.BalloonTipIcon  = ToolTipIcon.Info;
         GoldPrice.Visible         = true;
         GoldPrice.ShowBalloonTip(3000);
     }
 }
Exemplo n.º 2
0
 private void concernModelToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!concern)
     {
         concern = true; ModelTimer.Enabled = true;
         concernModelToolStripMenuItem.Text = "Concern Model (√)";
         GoldPrice.BalloonTipTitle          = "关注模式已启动";         //设置系统托盘启动时显示的文本
         GoldPrice.BalloonTipText           = "仅每天下午的2点到4点显示报表"; //设置系统托盘启动时显示的文本
         GoldPrice.BalloonTipIcon           = ToolTipIcon.Info;
         GoldPrice.Visible = true;
         GoldPrice.ShowBalloonTip(3000);
     }
     else
     {
         concern = false; ModelTimer.Enabled = false;
         concernModelToolStripMenuItem.Text = "Start Concern Model";
         this.Visible = true;
         GoldPrice.BalloonTipTitle = "关注模式已关闭";//设置系统托盘启动时显示的文本
         GoldPrice.BalloonTipIcon  = ToolTipIcon.Info;
         GoldPrice.Visible         = true;
         GoldPrice.ShowBalloonTip(3000);
     }
 }