Exemple #1
0
        public void AddAccount(Account account)
        {
            AccountStatusWidget widget = new AccountStatusWidget(account, this, (MainWindow)base.TopLevelWidget());

            m_AccountsContainer.Layout().AddWidget(widget);
            widget.Show();
        }
Exemple #2
0
 public void RemoveAccount(Account account)
 {
     for (int x = 0; x < m_AccountsContainer.Layout().Count(); x++)
     {
         var item = m_AccountsContainer.Layout().ItemAt(x);
         if (item is QWidgetItem)
         {
             AccountStatusWidget widget = (AccountStatusWidget)((QWidgetItem)item).Widget();
             if (widget.Account == account)
             {
                 m_AccountsContainer.Layout().RemoveWidget(widget);
                 widget.SetParent(null);
                 break;
             }
         }
     }
 }
Exemple #3
0
 public void AddAccount(Account account)
 {
     AccountStatusWidget widget = new AccountStatusWidget(account, this, (MainWindow)base.TopLevelWidget());
     m_AccountsContainer.Layout().AddWidget(widget);
     widget.Show();
 }