Beispiel #1
0
        public AccountTag(AccountList accountList, Model.AccountModel account)
        {
            InitializeComponent();
            this._accountList = accountList;
            this.Account = account;

            RegisterEvent();
        }
        public AccountSetting(AccountList accList, AccountModel acc, bool isNew)
        {
            InitializeComponent();
            this.account = acc;
            this.IsNew = isNew;
            this.accountList = accList;
            source = Buz.GetDestinationByAccount(acc.AccountName);
            tyCannelList = new ChannelList(acc.TYChannelList, false);
            tyCannelList.Dock = DockStyle.Fill;
            this.tabPage1.Controls.Add(tyCannelList);

            cdCannelList = new ChannelList(acc.CDChannelList, true);
            cdCannelList.Dock = DockStyle.Fill;
            this.tabPage2.Controls.Add(cdCannelList);

            this.accountBasicInfo1.SetChannelSource(source);
            this.tyCannelList.SetChannelSource(source);
            this.cdCannelList.SetChannelSource(source);
            this.accountBasicInfo1.Account = this.account;
        }