示例#1
0
 public void LoadAccount()
 {
     var Accounts = new AccountBuz().LoadAccounts();
     foreach (var item in Accounts)
     {
         AddAccount(item);
     }
 }
 private void btn_RefreshChannel_Click(object sender, EventArgs e)
 {
     Buz = new AccountBuz();
     List<string> source = Buz.GetDestinationByAccount(this.accountBasicInfo1.tbx_AccountName.Text);
     if (!source.IsNullOrEmpty<string>())
     {
         this.accountBasicInfo1.SetChannelSource(source);
         var sourceNew = source.Clone();
         this.tyCannelList.SetChannelSource(sourceNew);
         sourceNew = source.Clone();
         this.cdCannelList.SetChannelSource(sourceNew);
     }
 }
 private void SaveAccount(AccountModel res)
 {
     AccountBuz buz = new AccountBuz();
     buz.Save(res);
 }