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

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

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