Esempio n. 1
0
        public override Tool NewTool(string controlident)
        {
            controlident = controlident.ToUpper();
            if (AllTools.Count > 0 && AllTools.Exists(x => x.ControlIdent == controlident))
            {
                throw new Exception("A tool with this controlident allready exitst!");
            }
            AerotechTool a = new AerotechTool("", controlident, ToolType.NoTool);

            AllTools.Add(a);
            return(a);
        }
 public override Tool NewTool(string controlident)
 {
     controlident = controlident.ToUpper();
     if (AllTools.Count>0 && AllTools.Exists(x => x.ControlIdent == controlident))
     {
         throw new Exception("A tool with this controlident allready exitst!");
     }
     AerotechTool a = new AerotechTool("", controlident, ToolType.NoTool);
     AllTools.Add(a);
     return a;
 }