コード例 #1
0
ファイル: Weblink.cs プロジェクト: dgx80/peon
        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);
        }
コード例 #2
0
ファイル: pInterface.cs プロジェクト: dgx80/peon
        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);
        }
コード例 #3
0
ファイル: pAdmin.cs プロジェクト: dgx80/peon
        public void ExportFile(Object.User u, Object.Profile p)
        {
            mPathKey = p.PathKey + mName;

            string s = ObtainTemplateKey();

            base.ExportKeyFile(s);
        }
コード例 #4
0
        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);
        }