Example #1
0
        void AddAccToolStripMenuItemClick(object sender, EventArgs e)
        {
            AccEditForm acc_form = new AccEditForm();

            if (acc_form.ShowDialog() == DialogResult.OK && acc_form.accResult != null)
            {
                acc_form.accResult.upCall = sInsMgr;
                this.lstAccs.Add(acc_form.accResult);
                RefreshAccounts();
                sInsMgr.SaveAccounts(this.lstAccs);
            }
        }
Example #2
0
        void EditAccToolStripMenuItemClick(object sender, EventArgs e)
        {
            if (this.lvAcc.SelectedIndices.Count < 1)
            {
                return;
            }
            AccEditForm acc_form = new AccEditForm();

            acc_form.accResult = this.lstAccs[this.lvAcc.SelectedIndices[0]];
            if (acc_form.ShowDialog() == DialogResult.OK)
            {
                RefreshAccounts();
                sInsMgr.SaveAccounts(this.lstAccs);
            }
        }