Example #1
0
        /// <summary>
        /// 点击创建按钮,跳转到创建模板界面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCreate_Press(object sender, EventArgs e)
        {
            frmRTypeTempCreate frm = new frmRTypeTempCreate();         //进入模板创建页面

            this.Show(frm, (MobileForm from, object args) =>
            {
                if (frm.ShowResult == ShowResult.Yes)
                {
                    Bind();
                }
            });
        }
Example #2
0
 AutofacConfig AutofacConfig = new AutofacConfig();//调用配置类
 #endregion
 /// <summary>
 /// 创建消费模板
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnCreate_Press(object sender, EventArgs e)
 {
     try
     {
         frmRTypeTempCreate frm = new frmRTypeTempCreate();         //进入模板创建页面
         this.Show(frm, (MobileForm from, object args) =>
         {
             if (frm.ShowResult == ShowResult.Yes)
             {
                 Bind();
             }
         });
     }
     catch (Exception ex)
     {
         Toast(ex.Message);
     }
 }