Esempio n. 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);
        }
Esempio n. 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));
        }