private void OnModifyServer(object sender, RoutedEventArgs e) { ServerInfoWin WindowsFrom = new ServerInfoWin(); ServerInfo obj = ServerList.SelectedItem as ServerInfo; if (obj != null) { WindowsFrom.EditType = CommandMode.Modify; WindowsFrom.SetServerInfo(obj); } WindowsFrom.ShowDialog(); LoadGameInfoList(obj.GameID); }
private void OnCreateServer(object sender, RoutedEventArgs e) { ServerInfoWin WindowsFrom = new ServerInfoWin(); GameInfo obj = AraeList.SelectedItem as GameInfo; if (obj == null || obj.ID == 0) { return; } WindowsFrom.EditType = CommandMode.Insert; WindowsFrom.GameId = obj.ID; WindowsFrom.ShowDialog(); LoadGameInfoList(obj.ID); }
private void OnCreateServer(object sender, RoutedEventArgs e) { ServerInfoWin WindowsFrom = new ServerInfoWin(); GameInfo obj = AraeList.SelectedItem as GameInfo; if (obj == null || obj.ID == 0) return; WindowsFrom.EditType = CommandMode.Insert; WindowsFrom.GameId = obj.ID; WindowsFrom.ShowDialog(); LoadGameInfoList(obj.ID); }