Exemplo n.º 1
0
        private void MenuMold_Click(object sender, EventArgs e)
        {
            frm_moldRef moldRef = new frm_moldRef();

            if (labelMachineName.Text.Length > 0)
            {
                moldRef.setMachineID(Convert.ToString(labelMachineName.Tag));
            }

            moldRef.SendMoldInfoEvent   += new frm_moldRef.SendMoldDataHandler(setMoldInfo);
            moldRef.MoldRefClosingEvent += new frm_moldRef.MoldRefClosingHandler(TileMenu_Leave);
            moldRef.ShowDialog();
        }
Exemplo n.º 2
0
        private void txt_mold_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_moldRef moldRef = new frm_moldRef();

            moldRef.SendMoldInfoEvent += new frm_moldRef.SendMoldDataHandler(setMoldInfo);
            moldRef.ShowDialog();

            bgimg.Visible = false;
        }