public static string GetNewId(string oldId, BusinessItemType itemType, string className, out string codeId) { FrmNewID wid = new FrmNewID(oldId, itemType, className) { newId = false }; if (ServiceSwitches.IsTiIntegratorTopMost) { wid.TopMost = true; } wid.ShowDialog(); codeId = wid.txtId.Tag as string; return(wid.id); }
public static string GetNewId(string oldId, BusinessItemType itemType, string className, RevisionEffectivityWay oldEff, out string codeId, out RevisionEffectivityWay newEff) { FrmNewID wid = new FrmNewID(oldId, itemType, className) { newId = false }; if (ServiceSwitches.IsTiIntegratorTopMost) { wid.TopMost = true; } wid.effway = oldEff; wid.ShowDialog(); codeId = wid.txtId.Tag as string; newEff = wid.effway; return(wid.id); }