private void OpenForm_Load(object sender, EventArgs e) { Display(accounts, symbols); //创建加载框 loading = new Loading(); loading.Showed += loading_Showed; loading.Hided += loading_Hided; this.Controls.Add(loading); }
private async void MainForm_Load(object sender, EventArgs e) { dataGridViewData.AutoGenerateColumns = false; //创建加载框 loading = new Loading(); loading.Showed += loading_Showed; loading.Hided += loading_Hided; this.Controls.Add(loading); //加载所有产品 PumpingService.SymbolInfoSE[] array = await Core.CustomService.Service.GetAllSymbolInfoAsync(); symbols.AddRange(array.Select(ee => ee.Symbol)); StartSymbolUpdate(monitorSymbol); TradingHelper.MainForm = this; TradingHelper.WriteLogs = WriteLogs; }