Inheritance: System.Windows.Forms.Form
コード例 #1
0
 private void onAddAccount(object sender, EventArgs e)
 {
     CsvAccount account = new CsvAccount();
     CsvAccountEditDialog dlg = new CsvAccountEditDialog(mManager, account);
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         account = dlg.getAccount();
         if (account != null)
         {
             mManager.AddAccount(account);
             updateList();
         }
     }
 }
コード例 #2
0
        private void onAddAccount(object sender, EventArgs e)
        {
            CsvAccount           account = new CsvAccount();
            CsvAccountEditDialog dlg     = new CsvAccountEditDialog(mManager, account);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                account = dlg.getAccount();
                if (account != null)
                {
                    mManager.AddAccount(account);
                    updateList();
                }
            }
        }
コード例 #3
0
        private void onModifyAccount(object sender, EventArgs e)
        {
            int idx = listBox.SelectedIndex;

            if (idx >= 0)
            {
                CsvAccount           account = mManager.GetAt(idx);
                CsvAccountEditDialog dlg     = new CsvAccountEditDialog(mManager, account);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    account = dlg.getAccount();
                    if (account != null)
                    {
                        mManager.ModifyAccount(account);
                        updateList();
                    }
                }
            }
        }
コード例 #4
0
 private void onModifyAccount(object sender, EventArgs e)
 {
     int idx = listBox.SelectedIndex;
     if (idx >= 0)
     {
         CsvAccount account = mManager.GetAt(idx);
         CsvAccountEditDialog dlg = new CsvAccountEditDialog(mManager, account);
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             account = dlg.getAccount();
             if (account != null)
             {
                 mManager.ModifyAccount(account);
                 updateList();
             }
         }
     }
 }