コード例 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmRecord f = new frmRecord(OperationType.Add, "0");

            if (f.ShowDialog(this.ParentForm) == DialogResult.OK)
            {
                LoadData(m_DataTimeString);
            }
        }
コード例 #2
0
        private void btnModify_Click(object sender, EventArgs e)
        {
            if (lvRecording.SelectedItems == null || this.lvRecording.SelectedItems.Count < 1)
            {
                return;
            }
            frmRecord f = new frmRecord(OperationType.Modify, this.lvRecording.SelectedItems[0].Tag.ToString());

            if (f.ShowDialog(this.ParentForm) == DialogResult.OK)
            {
                LoadData(m_DataTimeString);
            }
        }