private void SelectFolderNameFormKeyPress(object sender, KeyPressEventArgs e)
        {
            try {
                if (e.KeyChar==15) {
                      selectedOperation = new EventsGroupNameAndID(tvOperationNames.SelectedNode.Text, tvOperationNames.SelectedNode.Tag.ToString());
              		      this.DialogResult = DialogResult.OK;
                }

            } catch (Exception ex) {
                FrontendUtils.ShowError(ex.Message,ex);
            }
        }
        private void btnSelectFolderName_Click(object sender, EventArgs e)
        {
            try {
                SelectFolderNameForm form = new SelectFolderNameForm();
                form.Parent = this.Parent;
                form.StartPosition = FormStartPosition.CenterParent;
                DialogResult result =  form.ShowDialog();

                if(result == DialogResult.OK){
                   eventsGroupNameAndID = form.selectedOperation;
                   txtOperation.Text =  form.selectedOperation.OperationName;
                }
            } catch (Exception ex) {
                CommonUtils.ShowError(ex.Message, ex);
            }
        }
 private void tvFolderNames_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     //selectedOperation = new EventsGroupNameAndID(tvFolderNames.SelectedNode.Text,tvFolderNames.SelectedNode);
     selectedOperation = new EventsGroupNameAndID(tvOperationNames.SelectedNode.Text, tvOperationNames.SelectedNode.Tag.ToString());
     this.DialogResult = DialogResult.OK;
 }
        void TvOperationNamesKeyPress(object sender, KeyPressEventArgs e)
        {
            try {
                if (e.KeyChar==13) {
                      selectedOperation = new EventsGroupNameAndID(tvOperationNames.SelectedNode.Text, tvOperationNames.SelectedNode.Tag.ToString());
              		      this.DialogResult = DialogResult.OK;
                }
                if (e.KeyChar==27) {
                      selectedOperation = new EventsGroupNameAndID(tvOperationNames.SelectedNode.Text, tvOperationNames.SelectedNode.Tag.ToString());
              		      this.DialogResult = DialogResult.OK;
                }

            } catch (Exception ex) {
                CommonUtils.ShowError(ex.Message,ex);
            }
        }