예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            editValue editValueWindow = new editValue();

            editValueWindow.editValueOperationType = operationType.noeNew;

            editValueWindow.ShowDialog();

            if (editValueWindow.DialogResult == DialogResult.OK)
            {
                lwValueList.Items.Add(editValueWindow.edtString.Text);
            }
        }
예제 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            editValue editValueWindow = new editValue();

            editValueWindow.editValueOperationType = operationType.noeEdit;

            editValueWindow.edtString.Text = lwValueList.SelectedItems[0].Text;
            editValueWindow.edtFile.Text = lwValueList.SelectedItems[0].Text;
            editValueWindow.edtPath.Text = lwValueList.SelectedItems[0].Text;

            editValueWindow.ShowDialog();

            if (editValueWindow.DialogResult == DialogResult.OK)
            {
                lwValueList.SelectedItems[0].Text = editValueWindow.edtString.Text;
            }
        }