コード例 #1
0
        void OnUCMenuClick(string TitleCode, string MenuCode)
        {
            //MessageBox.Show(TitleCode + " / " + MenuCode);
            ComVar.Var._strValue1 = TitleCode;
            ComVar.Var._strValue2 = MenuCode;

            if (!MenuCode.Equals("114"))
            {
                ComVar.Var.callForm = MenuCode;
            }
            else
            {
                FRM_SMT_EMD_UNDER under = new FRM_SMT_EMD_UNDER();
                under.ShowDialog();
                // PictureBox pt = new PictureBox();
                //
                // pictureBox1
                //
                //pt.Dock = System.Windows.Forms.DockStyle.Fill;
                //pt.Image = global::FORM.Properties.Resources.undermaintanance;
                //pt.Location = new System.Drawing.Point(0, 0);
                //pt.Name = "pictureBox1";
                //pt.Size = new System.Drawing.Size(759, 393);
                //pt.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
                //pt.TabIndex = 0;
                //pt.TabStop = false;
                //pt.DoubleClick += pt_DoubleClick;
                //this.Controls.Add(pt);
                //pt.BringToFront();
            }
        }
コード例 #2
0
        private void btnFTY_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            //Doing Sth
            string MenuCode = ((Button)sender).Tag.ToString();

            if (!MenuCode.Equals("0"))
            {
                ComVar.Var._IsBack  = true;
                ComVar.Var.callForm = MenuCode;
            }
            else
            {
                FRM_SMT_EMD_UNDER under = new FRM_SMT_EMD_UNDER();
                under.ShowDialog();
            }
            this.Cursor = Cursors.Default;
        }