public static bool SearchesCode() { FrmGetCode code = new FrmGetCode("", "", BusinessItemType.Unknown, false) { cmd = "CX" }; return(code.ShowDialog() == DialogResult.OK); }
public static void GenerateCode(string oldId, string ClassName, string cmd, BusinessItemType ItemType, bool isNextSeg, out string Id, out string codeId) { FrmGetCode code = new FrmGetCode(oldId, ClassName, cmd, ItemType, isNextSeg); Id = ""; codeId = ""; if (code.ShowDialog() == DialogResult.OK) { Id = code.Id; codeId = code.CodeId; } }
private void btnecms_Click(object sender, EventArgs e) { FrmGetCode code = new FrmGetCode { ItemType = this.itemType, ClassName = this.className }; if (code.ShowDialog() == DialogResult.OK) { this.txtId.Text = code.Id; this.txtId.Tag = code.CodeId; this.btnOK.Enabled = true; this.labCodeInfo.Visible = false; } }
public static bool RecycleCode(string oldId, string ClassName, string cmd, BusinessItemType ItemType) { FrmGetCode code = new FrmGetCode(oldId, ClassName, cmd, ItemType, true); return(code.ShowDialog() == DialogResult.OK); }