Esempio n. 1
0
        public Main()
        {
            frmFundTypeChoices frmFundTypeChoices = new frmFundTypeChoices();

            frmFundTypeChoices.ShowDialog();
            InitializeComponent();
            Init();
            if (!backgroundWorker1.IsBusy)
            {
                backgroundWorker1.RunWorkerAsync();
            }
        }
Esempio n. 2
0
        public Main(string[] param)
        {
            new frmSplashScreen().ShowDialog(this);
            frmFundTypeChoices frmFundTypeChoices = new frmFundTypeChoices();

            frmFundTypeChoices.ShowDialog();
            InitializeComponent();
            Init();
            if (!backgroundWorker1.IsBusy)
            {
                backgroundWorker1.RunWorkerAsync();
            }
        }
Esempio n. 3
0
        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();
            }
        }