Example #1
0
 private void iconMenuView1_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
 {
     if (e.Item.ID.Equals("conn"))
     {
         SmobilerFormCon form = new SmobilerFormCon( );
         Show(form);
     }
     else if (e.Item.ID.Equals("ChuKu"))
     {
         Utils.BaseColumn.storage = "出库";
         SmobilerFormScan form = new SmobilerFormScan( );
         Show(form);
     }
     else if (e.Item.ID.Equals("OtherChuKu"))
     {
         Utils.BaseColumn.storage = "其它出库";
         SmobilerFormScan form = new SmobilerFormScan( );
         Show(form);
     }
     else if (e.Item.ID.Equals("zhanghuxinxi"))
     {
         SmobilerFormAbout form = new SmobilerFormAbout( );
         Show(form);
     }
     else if (e.Item.ID.Equals("Barcode"))
     {
         SmobilerFormCode form = new SmobilerFormCode( );
         Show(form);
     }
 }
Example #2
0
        private void iconMenuView1_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
        {
            switch (e.Item.ID)
            {
            case "2":
                frmSmobiler_算术 frm_算术 = new frmSmobiler_算术();
                Show(frm_算术);
                break;

            default:
                break;
            }
        }
        public static int choose_flag = 2;   //性别选择标志,0代表男生,1代表女生
        private void iconMenuView1_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
        {
            switch (e.Item.Text)
            {
            case "男生":
                choose_flag = 0;       //若选择男生,标志位置0
                this.Close();
                break;

            case "女生":
                choose_flag = 1;       //若选择女生,标志位置1
                this.Close();
                break;
            }
        }
Example #4
0
        //iconMenuView1菜单项选择
        private void iconMenuView2_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
        {
            switch (e.Item.Text)
            {
            case "当前水位和等级":       //显示当前水位和水位等级的弹窗
                ShowDialog(new watercontrol());
                break;

            case "历史报警情况":         //跳转到历史报警情况界面
                waterhistoryForm waterhistory = new waterhistoryForm();
                Show(waterhistory);
                break;

            case "当前设定阈值":         //显示水位阈值弹窗
                ShowDialog(new waterthresholdcontrol());
                break;
            }
        }
Example #5
0
        //iconMenuView1菜单项选择
        private void iconMenuView1_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
        {
            switch (e.Item.Text)
            {
            case "温湿度":               //显示温湿度数据的弹窗
                ShowDialog(new wsdcontrol());
                break;

            case "历史报警情况":         //跳转到历史报警情况界面
                wsdbiubiuForm wsdbiubiu = new wsdbiubiuForm();
                Show(wsdbiubiu);
                break;

            case "当前设定阈值":         //显示当前温度阈值弹窗
                ShowDialog(new Tthresholdcontrol());
                break;
            }
        }
Example #6
0
 private void iconMenuView1_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
 {
     MessageBox.Show(e.Item.Text);
 }
Example #7
0
        private void iconMenuView1_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
        {
            MobileForm demoForm = Activator.CreateInstance((Type)e.Item.Tag) as MobileForm;

            this.Show(demoForm);
        }
Example #8
0
        AutofacConfig AutofacConfig = new AutofacConfig();            //调用配置类
        #endregion

        /// <summary>
        /// IconMenuDate点击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void iconMenuData_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
        {
            MenuItem(e.Item.ID);
        }
Example #9
0
        private void iconMenu_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
        {
            switch (e.Item.Value)
            {
            //资产
            case "Assets":
                frmAssets frmAssets = new frmAssets();
                if (btnWareHouse.Tag != null)
                {
                    frmAssets.wareId = btnWareHouse.Tag.ToString();
                }
                this.Form.Show(frmAssets);
                break;

            case "AssTemplate":
                frmAssTemplate frmAssTemplate = new frmAssTemplate();
                this.Form.Show(frmAssTemplate);
                break;

            case "AssIn":
                frmAssIn frmAssIn = new frmAssIn();
                this.Form.Show(frmAssIn);
                break;

            case "AssOut":
                frmAssOut frmAssOut = new frmAssOut();
                this.Form.Show(frmAssOut);
                break;

            case "AssTransfer":
                frmAssTransferRows frmAssTransferRows = new frmAssTransferRows();
                this.Form.Show(frmAssTransferRows);
                break;

            case "AssInventory":
                frmAssInventory frmAssInventory = new frmAssInventory();
                this.Form.Show(frmAssInventory);
                break;

            //耗材
            case "ConManage":
                frmConsumables frmConsumables = new frmConsumables();
                this.Form.Show(frmConsumables);
                break;

            case "ConIn":
                frmConPORInSto frmConPORInSto = new frmConPORInSto();
                this.Form.Show(frmConPORInSto);
                break;

            case "ConOut":
                frmConSOROutbound frmConSOROutbound = new frmConSOROutbound();
                this.Form.Show(frmConSOROutbound);
                break;

            case "ConTransfer":
                frmTransferRows frmTransferRows = new frmTransferRows();
                this.Form.Show(frmTransferRows);
                break;

            case "ConInventory":
                frmConInventory frmConInventory = new frmConInventory();
                this.Form.Show(frmConInventory);
                break;
            }
        }
Example #10
0
 private void AbilityMenuView_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
 {
     MenuItem(e.Item.ID);
 }
Example #11
0
 private void iconMenuView1_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
 {
     MenuItem(e.Item.ID, e.Item.Text);
 }
Example #12
0
 private void iconMenuView1_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
 {
     Show(new QuestionTypeList(int.Parse(e.Item.ID)));
 }
Example #13
0
 private void iconMenu_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
 {
 }