Esempio n. 1
0
        /// <summary>
        /// gridview点击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <remarks></remarks>
        private void GridView1_CellClick(object sender, GridViewCellEventArgs e)
        {
            try
            {
                switch (TextTabBar1.SelectItemIndex)
                {
                case 0:
                    frmOperationalRDetail frm1 = new frmOperationalRDetail();
                    this.Redirect(frm1, (MobileForm form, object args) =>
                    {
                        if (frm1.ShowResult == Smobiler.Core.ShowResult.Yes)
                        {
                            Bind();
                        }
                    });
                    break;

                case 1:
                    frmOperationalREdit frm = new frmOperationalREdit();
                    this.Redirect(frm, (MobileForm form, object args) =>
                    {
                        if (frm.ShowResult == Smobiler.Core.ShowResult.Yes)
                        {
                            Bind();
                        }
                    });
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Esempio n. 2
0
 private void NodeView1_ItemClicked(object sender, EventArgs e)
 {
     try
     {
         string ORNO             = NodeView1.ClickedItem.Text;
         frmOperationalREdit frm = new frmOperationalREdit();
         frm.OR_NO = ORNO;
         this.Redirect(frm, (MobileForm form, object args) =>
         {
             if (frm.ShowResult == Smobiler.Core.ShowResult.Yes)
             {
                 Bind();
             }
         });
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }