public DextopConfig CreateWindow(String type) { IDextopRemotable window; switch (type) { case "simple": window = new SimpleWindow(); break; // ... default: throw new DextopErrorMessageException("Unknown window type: {0}", type); } return Remote.Register(window); }
public DextopConfig CreateWindow(String type) { IDextopRemotable window; switch (type) { case "simple": window = new SimpleWindow(); break; // ... default: throw new DextopErrorMessageException("Unknown window type: {0}", type); } return(Remote.Register(window)); }