Esempio n. 1
0
            public SaveArgs()
            {
                Random rnd   = new Random(2019);
                string seed  = "MintyProjects";
                string contr = "";

                char[] lib = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' };
                for (int i = 0; i < 6; i++)
                {
                    contr += lib[rnd.Next(lib.Length - 1)];
                }
                name     = "Task" + contr;
                desc     = "";
                taskType = TaskType.center;
                lenght   = 9;
            }
Esempio n. 2
0
            public SaveArgs(string nam, string descr, string type, int leng)
            {
                name   = nam;
                desc   = descr;
                lenght = leng;
                switch (type)
                {
                case "start":
                    taskType = TaskType.start;
                    break;

                case "end":
                    taskType = TaskType.end;
                    break;

                default:
                    taskType = TaskType.center;
                    break;
                }
            }