public void ExportFile(Object.User u, Object.Profile p, List <Object.ShortcutInfo> lst) { mPathKey = p.PathKey + mName; mPathData = p.PathData + mName; string s = ObtainTemplateKey(); foreach (Object.ShortcutInfo i in lst) { s += ObtainScriptFromShortcutInfo(i); } base.ExportKeyFile(s); s = ObtainTemplateData(); foreach (Object.ShortcutInfo i in lst) { s += i.Hotkey; s += ","; s += i.Name; s += "\r\n"; } base.ExportDataFile(s); }
public void ExportFile(Object.User u, Object.Profile p, ref List <compte> lTop5) { mPathKey = p.PathKey + mName; mPathData = p.PathData + mName; string s = ObtainTemplateKey(); base.ExportKeyFile(s); s = ObtainTemplateData(); for (int i = 1; i <= 5; i++) { string sTarget = "<user" + i.ToString() + ">"; if (i <= lTop5.Count) { string sLine = i.ToString() + "," + lTop5[i - 1].sUser + ":" + lTop5[i - 1].sProfile; s = s.Replace(sTarget, sLine); } else { sTarget += "\r\n"; s = s.Replace(sTarget, ""); } } base.ExportDataFile(s); }
public void ExportFile(Object.User u, Object.Profile p) { mPathKey = p.PathKey + mName; string s = ObtainTemplateKey(); base.ExportKeyFile(s); }
public void ExportFile(Object.User u, Object.Profile p) { mPathKey = p.PathUI + mName; string s = ObtainTemplateKey(); s = s.Replace("<name>", u.NAME); s = s.Replace("<profile>", p.Name); base.ExportKeyFile(s); }