public Main() { frmFundTypeChoices frmFundTypeChoices = new frmFundTypeChoices(); frmFundTypeChoices.ShowDialog(); InitializeComponent(); Init(); if (!backgroundWorker1.IsBusy) { backgroundWorker1.RunWorkerAsync(); } }
public Main(string[] param) { new frmSplashScreen().ShowDialog(this); frmFundTypeChoices frmFundTypeChoices = new frmFundTypeChoices(); frmFundTypeChoices.ShowDialog(); InitializeComponent(); Init(); if (!backgroundWorker1.IsBusy) { backgroundWorker1.RunWorkerAsync(); } }
public Main() { httpClient = new HttpClient() { BaseAddress = new Uri(Program.URL) }; this.httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer {User.Token.AccessToken}"); frmFundTypeChoices frmFundTypeChoices = new frmFundTypeChoices(); frmFundTypeChoices.ShowDialog(); InitializeComponent(); Init(); if (!backgroundWorker1.IsBusy) { backgroundWorker1.RunWorkerAsync(); } }