Example #1
0
        /// <summary>
        /// 查看变量
        /// </summary>
        /// <param name="sender">事件发送者</param>
        /// <param name="e">事件参数</param>
        private void bView_Click(object sender, EventArgs e)
        {
            ViewForm     vForm  = new ViewForm(table);
            DialogResult result = vForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                Hashtable viewData   = vForm.ViewData;
                string    userName   = viewData["userName"] as string;
                string    varType    = viewData["type"] as string;
                string    bindType   = viewData["bindType"] as string;
                string    bindObject = viewData["bindObject"] as string;

                RefreshDataGridView(userName, varType, bindType, bindObject);
            }
        }
Example #2
0
        /// <summary>
        /// 查看变量
        /// </summary>
        /// <param name="sender">事件发送者</param>
        /// <param name="e">事件参数</param>
        private void bView_Click(object sender, EventArgs e)
        {
            ViewForm vForm = new ViewForm(table);
            DialogResult result = vForm.ShowDialog();
            if(result == DialogResult.OK)
            {
                Hashtable viewData = vForm.ViewData;
                string userName = viewData["userName"] as string;
                string varType = viewData["type"] as string;
                string bindType = viewData["bindType"] as string;
                string bindObject = viewData["bindObject"] as string;

                RefreshDataGridView(userName, varType, bindType, bindObject);
            }
        }