Exemple #1
0
 public StartupInfo(string owner, string name, string command, EStartupType startupType, string location, bool isScored)
 {
     Owner       = owner;
     Name        = name;
     Command     = command;
     StartupType = startupType;
     Location    = location;
     IsScored    = isScored;
 }
Exemple #2
0
        public static StartupInfo Parse(BinaryReader reader)
        {
            // Get all parameters
            string       owner    = reader.ReadString();
            string       name     = reader.ReadString();
            string       command  = reader.ReadString();
            EStartupType type     = (EStartupType)reader.ReadInt32();
            string       location = reader.ReadString();
            bool         isScored = reader.ReadBoolean();

            // Return initialized class
            return(new StartupInfo(owner, name, command, type, location, isScored));
        }