Exemplo n.º 1
0
        private void sysToolBar_OnItemNew_Click(object sender, EventArgs e)
        {
            frmDeviceInfoDetail frmDetail = new frmDeviceInfoDetail();
            frmDetail.UserInformation = this.UserInformation;
            frmDetail.ShowDialog();

            ShwoView();
        }
Exemplo n.º 2
0
        private void sysToolBar_OnItemModify_Click(object sender, EventArgs e)
        {
            if (this.lvMachines.SelectedItems.Count > 0)
            {
                ConsumeMachineMaster_cmm_Info ccmInfo = _infoList[Int32.Parse(this.lvMachines.SelectedItems[0].SubItems[0].Text) - 1] as ConsumeMachineMaster_cmm_Info;

                frmDeviceInfoDetail frmDetail = new frmDeviceInfoDetail(ccmInfo);
                frmDetail.UserInformation = this.UserInformation;
                frmDetail.ShowDialog();

                ShwoView();
            }
            else
            {
                base.ShowErrorMessage("请选择一条记录!");
            }
        }