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(); } }
void clickMenu(string argFrom) { FRM_SMT_EMD_UNDER u = new FRM_SMT_EMD_UNDER(); //switch (((DevExpress.XtraEditors.SimpleButton)sender).TabIndex) //{ if (argFrom == "PRINTING") { ComVar.Var.callForm = "366"; } if (argFrom == "HF") { ComVar.Var.callForm = "346"; } //if (argFrom == "LASER") //{ // ComVar.Var.callForm = "310"; //} if (argFrom == "NOSEW") { ComVar.Var.callForm = "356"; } if (argFrom == "EMB") { ComVar.Var.callForm = "528"; } }
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; }