示例#1
0
        private void toolStripButtonAddNew_Click(object sender, EventArgs e)
        {
            var newForm = new NewEntryForm();

            if (newForm.ShowDialog() == DialogResult.OK)
            {
                _data.Items.Add(newForm.GetEntry());
                _repo.Save(_data);

                LoadData();
            }
        }
示例#2
0
        private void toolStripButtonAddNew_Click(object sender, EventArgs e)
        {
            var newForm = new NewEntryForm();

            if (newForm.ShowDialog() == DialogResult.OK)
            {
                _data.Items.Add(newForm.GetEntry());
                _repo.Save(_data);

                LoadData();
            }
        }