示例#1
0
文件: GUI.cs 项目: radtek/HomeFinance
 private void LoadAccount(Account a)
 {
     selectedAccount = a;
     menu.Enabled    = true;
     Controls.Clear();
     ac = new AccountControl(a, ctx)
     {
         Dock = DockStyle.Fill
     };
     Controls.Add(ac);
 }
示例#2
0
文件: GUI.cs 项目: radtek/HomeFinance
        private void LoadAccounts()
        {
            selectedAccount = null;
            menu.Enabled    = false;
            Controls.Clear();
            ac = null;
            BackgroundWorker bw = new BackgroundWorker();

            bw.DoWork             += BWGetAccounts;
            bw.RunWorkerCompleted += BWComplete;
            TE(false);
            bw.RunWorkerAsync();
        }
示例#3
0
 private void LoadAccounts()
 {
     selectedAccount = null;
     menu.Enabled = false;
     Controls.Clear();
     ac = null;
     BackgroundWorker bw = new BackgroundWorker();
     bw.DoWork += BWGetAccounts;
     bw.RunWorkerCompleted += BWComplete;
     TE( false );
     bw.RunWorkerAsync();
 }
示例#4
0
 private void LoadAccount( Account a )
 {
     selectedAccount = a;
     menu.Enabled = true;
     Controls.Clear();
     ac = new AccountControl( a, ctx ){Dock = DockStyle.Fill};
     Controls.Add( ac );
 }