private void LoadAccount(Account a) { selectedAccount = a; menu.Enabled = true; Controls.Clear(); ac = new AccountControl(a, ctx) { Dock = DockStyle.Fill }; Controls.Add(ac); }
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(); }
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(); }
private void LoadAccount( Account a ) { selectedAccount = a; menu.Enabled = true; Controls.Clear(); ac = new AccountControl( a, ctx ){Dock = DockStyle.Fill}; Controls.Add( ac ); }