コード例 #1
0
 private void frmStockChart_IDoSymbolLinked(object sender, SymbolLinkSource source, string newStock)
 {
     if (source == SymbolLinkSource.SwitchAccount)
     {
         if (this._currPage == "NEWS")
         {
             this.ReloadData();
         }
     }
 }
コード例 #2
0
 private void frmStockSummary_IDoSymbolLinked(object sender, SymbolLinkSource source, string newStock)
 {
     try
     {
         if (source == SymbolLinkSource.StockSymbol)
         {
             if (this.currentPage == "Stock in Play")
             {
                 this.StockInPlay_SetNewStock(newStock, false);
             }
             else if (this.currentPage == "Sale by Price")
             {
                 this.SaleByPrice_SetNewStock(newStock, false);
             }
             else if (this.currentPage == "Sale by Time")
             {
                 this.SaleByTime_SetNewStock(newStock, false);
             }
             else if (this.currentPage == "View Oddlot")
             {
                 this.ViewOddLotSetNewStock(newStock, false);
             }
         }
     }
     catch (Exception ex)
     {
         this.ShowError("frmStockSummary_IDoSymbolLinked", ex);
     }
 }
コード例 #3
0
 private void frmAutoTrade_IDoSymbolLinked(object sender, SymbolLinkSource source, string newStock)
 {
     if (source == SymbolLinkSource.SwitchAccount)
     {
         this.SetAutoTradeType(this._typeId);
     }
 }
コード例 #4
0
 public void SendSymbolLink1(object sender, SymbolLinkSource source, string newStock)
 {
     if (this.formObj.GetType() != sender.GetType())
     {
         ((ClientBaseForm)this.formObj).SetSymbolLink(sender, source, newStock);
     }
 }
コード例 #5
0
ファイル: frmMain.cs プロジェクト: Padungsak/efinTradePlus
 public void SetSmartStock(object sender, SymbolLinkSource source, string newStock)
 {
     if (this.Smart1ClickBox.Visible)
     {
         this.Smart1ClickBox.SetSmartStock(sender, source, newStock);
     }
 }
コード例 #6
0
 public void SendSymbolLink(object sender, SymbolLinkSource source, string newStock)
 {
     try
     {
         if (this.currentActiveTemplateView != null)
         {
             this.currentActiveTemplateView.SendSymbolLink1(sender, source, newStock);
         }
         if (source == SymbolLinkSource.SmartStock)
         {
             this.mainForm.SetSmartStock(sender, source, newStock);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #7
0
 public void SetSymbolLink(object sender, SymbolLinkSource source, string newStock)
 {
     if (this._IDoSymbolLinked != null)
     {
         this._IDoSymbolLinked(sender, source, newStock);
     }
 }
コード例 #8
0
 private void frmViewOrder_IDoSymbolLinked(object sender, SymbolLinkSource source, string newStock)
 {
     if (source == SymbolLinkSource.SwitchAccount)
     {
         if (!ApplicationInfo.IsEquityAccount)
         {
             this.SetPage(0);
         }
         else
         {
             this.SetPage(this._currentPage);
         }
     }
 }
コード例 #9
0
 private void frmMarketWatch_IDoSymbolLinked(object sender, SymbolLinkSource source, string newStock)
 {
     if (source == SymbolLinkSource.StockSymbol)
     {
         this.SetNewStock_Info(newStock, false);
     }
     else if (source == SymbolLinkSource.SwitchAccount)
     {
         if (this._mainGroupType == "My Port")
         {
             this.ReloadDataBBO();
         }
     }
 }
コード例 #10
0
 private void frmPortfolio_IDoSymbolLinked(object sender, SymbolLinkSource source, string newStock)
 {
     if (source == SymbolLinkSource.SwitchAccount)
     {
         if (!this.bgwLoadReport.IsBusy)
         {
             if (this._currAccount != ApplicationInfo.AccInfo.CurrentAccount)
             {
                 this._reportType = "Portfolio";
                 this._subReportType = "Summary";
                 this.StartReloadTimer(200, true);
             }
         }
     }
 }
コード例 #11
0
 public void SetSmartStock(object sender, SymbolLinkSource source, string newStock)
 {
     if (this._isInit)
     {
         if (source == SymbolLinkSource.SmartStock && Settings.Default.SmartClickLink)
         {
             this.setNewStock(newStock, false);
         }
     }
 }