コード例 #1
0
        private void lvFileMateCopyOps_ItemActivate(object sender, EventArgs e)
        {
            CopyOperationDTO     op         = (CopyOperationDTO)lvFileMateCopyOps.SelectedItems[0].Tag;
            AddEditCopyOperation editCopyOp = new AddEditCopyOperation(op);

            editCopyOp.ShowDialog();    // clicking ok will update the copy operation dto
        }
コード例 #2
0
        private void btnAddCopyOp_Click(object sender, EventArgs e)
        {
            // will create a new copy operation dto which will need to be added to the collection
            AddEditCopyOperation copyOpfrm = new AddEditCopyOperation();
            DialogResult         result    = copyOpfrm.ShowDialog();

            if (result == DialogResult.OK)
            {
                _fileMateSettings.Operations.Add(copyOpfrm.CopyOperation);
                ShowAllSettings();
            }
        }