示例#1
0
        private void MenuMachine_Click(object sender, EventArgs e)
        {
            frm_machineRef machineRef = new frm_machineRef();

            machineRef.SendMachineInfoEvent   += new frm_machineRef.SendMachineDataHandler(setMachineInfo);
            machineRef.MachineRefClosingEvent += new frm_machineRef.MachineRefClosingHandler(TileMenu_Leave);
            machineRef.ShowDialog();
        }
        private void txt_machine_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            gridControl1.Visible = false;
            frm_machineRef machineRef = new frm_machineRef();

            machineRef.SendMachineInfoEvent += new frm_machineRef.SendMachineDataHandler(setMachineInfo);
            machineRef.ShowDialog();
            gridControl1.Visible = true;
            btn_search.PerformClick();
        }
示例#3
0
        private void txt_machine_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            Image img = Properties.Resources.black_opacity;

            bgimg.Appearance.Image = commonFX.change_opacity(img, 0.5f);
            bgimg.Dock             = DockStyle.Fill;
            bgimg.Visible          = true;

            frm_machineRef machineRef = new frm_machineRef();

            machineRef.SendMachineInfoEvent += new frm_machineRef.SendMachineDataHandler(setMachineInfo);
            machineRef.ShowDialog();

            bgimg.Visible = false;
        }