Exemplo n.º 1
0
        private void googleMapToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            var objGmapForm = new GmapForm();

            objGmapForm.MdiParent = this;
            objGmapForm.Show();
        }
Exemplo n.º 2
0
      private async void MainForm_Load(object sender, EventArgs e) {
         try {
            using(var objProvider = new BankProvider()) {
               var objLoadingForm = new LoadingForm();
               objLoadingForm.MdiParent = this;
               objLoadingForm.Show();

               await objProvider.LoadCurrencyRateInfo();
               objLoadingForm.Close();
            }
            var objGmapForm = new GmapForm();
            objGmapForm.MdiParent = this;
            googleMapToolStripMenuItem.Enabled = true;
            loadGoogleMapToolStripMenuItem.Enabled = true;
            objGmapForm.Show();
         }
         catch(Exception ex) {
            MessageBox.Show(ex.Message);
         }
      }
Exemplo n.º 3
0
        private async void MainForm_Load(object sender, EventArgs e)
        {
            try {
                using (var objProvider = new BankProvider()) {
                    var objLoadingForm = new LoadingForm();
                    objLoadingForm.MdiParent = this;
                    objLoadingForm.Show();

                    await objProvider.LoadCurrencyRateInfo();

                    objLoadingForm.Close();
                }
                var objGmapForm = new GmapForm();
                objGmapForm.MdiParent = this;
                googleMapToolStripMenuItem.Enabled     = true;
                loadGoogleMapToolStripMenuItem.Enabled = true;
                objGmapForm.Show();
            }
            catch (Exception ex) {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 4
0
 private void googleMapToolStripMenuItem_Click_1(object sender, EventArgs e) {
    var objGmapForm = new GmapForm();
    objGmapForm.MdiParent = this;
    objGmapForm.Show();
 }