Example #1
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            if (this.action == "view")
            {
                return;
            }

            GridView    view    = sender as GridView;
            GridHitInfo hitInfo = view.CalcHitInfo(view.GridControl.PointToClient(Cursor.Position));

            if (hitInfo.InRow && !view.IsGroupRow(hitInfo.RowHandle))
            {
                Model.process prcoess = bindingSource1.Current as Model.process;
                if (prcoess != null)
                {
                    ProcessEdit processedit = new ProcessEdit(prcoess.processId, "update");
                    if (processedit.ShowDialog(this) == DialogResult.OK)
                    {
                        loadprocess();
                    }
                    else
                    {
                        return;
                    }
                }
            }
        }
Example #2
0
        /// <summary>
        ///  add process of the workflow event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void simpleButtonAppend_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(wf.WorkflowId))
            {
                ProcessEdit from = new ProcessEdit(wf.WorkflowId);

                if (from.ShowDialog() == DialogResult.OK)
                {
                    loadprocess();
                }
            }
        }