Exemple #1
0
        // this method can be called with DefaultGUIFactory or SkinnedGUIFactory для получениия окна заданного вида.
        public string GetUserInput(IGUIFactory guiFactory)
        {
            // Create UI elements
            IWindow wndInput = guiFactory.CreateWindow();
            IButton btnOk = guiFactory.CreateButton();
            IButton btnCancel = guiFactory.CreateButton();
            ITextBox tbInput = guiFactory.CreateTextBox();

            //TODO: Setup the window and elements
            //wndInput.AddChild(btnOk);
            //wndInput.AddChild(btnCancel);
            //wndInput.AddChild(tbInput);

            // TODO: Show dialog
            // TODO: Get the result

            return string.Empty; //tbInput.GetText();

        }