public static void OpenStartWindow() { var model = new AppViewModel(); model.BindEvent(); mainWindow.DataContext = model; mainWindow.Show(); }