public MainWindowViewModel()
        {
            // get current IP and show it
            Networking.Networking.GetLocalIPAddressAsync().ContinueWith(t => CurrentIP = t.Result);
            StartGameCommand = new RelayCommand(StartGameMethod, o => CurrentIP != null);

            // replace with method
            OpenEditorCommand = new RelayCommand(o => {
                var editor = new QuizEditor();
                editor.Show();
            }, o => true);
        }
Exemplo n.º 2
0
    static void Init()
    {
        QuizEditor window = EditorWindow.GetWindow <QuizEditor>();

        window.Show();
    }