コード例 #1
0
        /// <summary>
        /// Removes the selected account
        /// </summary>
        private void removeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (accList.LastHoveredItem() != null)
            {
                xml.RemoveAccount(accList.LastHoveredItem().Account);
                xml.Save();

                LoadAccounts();
            }
        }
コード例 #2
0
 /// <summary>
 /// Removes the selected account
 /// </summary>
 private void removeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (tvAccounts.SelectedNode != null)
     {
         if (tvAccounts.SelectedNode.Nodes.Count == 0)
         {
             xml.RemoveAccount((Account)tvAccounts.SelectedNode.Tag);
             xml.Save();
             LoadAccounts();
         }
     }
 }