private void OnUpdatingFinished()
        {
            newAccountForm = new NewAccountForm(this);

            mainForm          = new MainForm(this);
            mainForm.Closing += OnFormClosing;
            mainForm.Show();

            // Get the news!
            newsController = new NewsController("http://infdir1.aaerox.com/news/news.xml");

            newsController.OnNewsControllerDownloadProgressChanged += OnNewsControllerDownloadProgressChanged;
            newsController.OnNewsControllerDownloadCompleted       += OnNewsControllerDownloadCompleted;
        }
Example #2
0
        void toolStripButtonNewAccount_Click(object sender, EventArgs e)
        {
            var form = new NewAccountForm();
            var res  = form.ShowDialog(MainForm);

            if (res == System.Windows.Forms.DialogResult.OK)
            {
                if (OnCreateNewAccount != null)
                {
                    OnCreateNewAccount.Invoke(this, new NameDetailsEventArgs()
                    {
                        Name = form.textName.Text
                    });
                }
            }
        }
Example #3
0
        private void newAccountToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewAccountForm form = new NewAccountForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                SavingsAccountControl tmp = new SavingsAccountControl();

                tmp.data = form.newAccount;
                tmp.Dock = DockStyle.Left;
                tmp.refreshViews();
                accountsPanel.Controls.Add(tmp);

                saveAll();
            }
        }