private void board_add_Click(object sender, RoutedEventArgs e) { InfoObject info = SystemInterface.AddBoard(userName, ADB.BoardName); if (info.getIsSucceeded()) { main.show(SystemInterface.getBoard(userName)); this.Close(); } else { MessageBox.Show(info.getMessage()); } }