コード例 #1
0
        private void menuModify_Click(object sender, EventArgs e)
        {
            AddRecord addRecord = new AddRecord();

            addRecord.Modify(Convert.ToInt32(ItemList.SelectedItems[0].SubItems[0].Text.ToString()), Convert.ToDateTime(ItemList.SelectedItems[0].SubItems[1].Text.ToString()));
            if (addRecord.ShowDialog() != DialogResult.Cancel)
            {
                MainRefresh();
            }
        }
コード例 #2
0
        private void btnAddRecord_Click(object sender, EventArgs e)
        {
            AddRecord addRecord = new AddRecord();

            if (addRecord.ShowDialog() != DialogResult.Cancel)
            {
                MainRefresh();
                if (addRecord.DialogResult == DialogResult.Retry)
                {
                    btnAddRecord_Click(sender, e);
                }
            }
        }