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 WccIp(OaManager manager, IDp dp) { this.manager = manager; this.dp = dp; }
public Factory(IpFactory factory) { dp = factory.CreateDp(); ip = factory.CreateIp(); reduNum = factory.CreateReduNum(); }
public ConfigIp(IDp dp) { this.dp = dp; }