DesktopLiveStreamer.ListGames.getSize C# (CSharp) Method

getSize() public method

public getSize ( ) : int
return int
        public int getSize()
        {
            return listGames.Count;
        }

Usage Example

Example #1
0
        public static void saveGameListConfig(ListGames list)
        {
            XmlTextWriter xw      = null;
            Game          tmpGame = null;

            try
            {
                xw            = new XmlTextWriter(GameXMLFile, Encoding.UTF8);
                xw.Formatting = Formatting.Indented;

                xw.WriteStartDocument(true);

                xw.WriteStartElement("DesktopLiveStreamer");

                // Le parametre du jeu par défaut
                xw.WriteElementString("DefaultGame", DefaultGame);


                for (int i = 0; i < list.getSize(); i++)
                {
                    tmpGame = list[i];

                    xw.WriteStartElement("Game");
                    xw.WriteElementString("Caption", tmpGame.Caption);
                    xw.WriteElementString("Twitch_ID", tmpGame.TwitchGameID);
                    xw.WriteElementString("Own3D_ID", tmpGame.Own3DGameID);
                    xw.WriteEndElement();
                }

                xw.WriteEndElement();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                if (xw != null)
                {
                    xw.Close();
                }
            }
        }
All Usage Examples Of DesktopLiveStreamer.ListGames::getSize