Esempio n. 1
0
        public static Module CreateInstance(XMileModel model, string name, ConnectCollection connects)
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }

            var variable = new Module(name, connects, model.Name);

            model.Variables.Add(variable);
            return(variable);
        }
Esempio n. 2
0
 public Module(string name, ConnectCollection connects, string model) : this(name, model)
 {
     Connects = connects;
 }