示例#1
0
        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);
        }
示例#2
0
        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));
        }