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); }
static void Init() { QuizEditor window = EditorWindow.GetWindow <QuizEditor>(); window.Show(); }