static void Main(string[] args) { var manager = new ManagerWcc(args); dp = new WccDp(manager.MyManager); ip = new WccIp(manager.MyManager, dp); ping = new EthernetPing(); redu = new ReduNumConfig(); try { Magic(); } catch (Exception e) { Console.WriteLine("Errors (class Program function Main): " + e); } }
public Factory(IpFactory factory) { dp = factory.CreateDp(); ip = factory.CreateIp(); reduNum = factory.CreateReduNum(); }