コード例 #1
0
        public void method_3(DatabaseClient class6_0)
        {
            Console.BackgroundColor = ConsoleColor.Black;
            Logging.Write("Fragen und Antworten (Hilfe) werden geladen...");
            this.dictionary_1.Clear();
            DataTable dataTable = class6_0.ReadDataTable("SELECT Id, title, body, subject, known_issue FROM help_topics");

            if (dataTable != null)
            {
                foreach (DataRow dataRow in dataTable.Rows)
                {
                    HelpTopic @class = new HelpTopic((uint)dataRow["Id"], (string)dataRow["title"], (string)dataRow["body"], (uint)dataRow["subject"]);
                    this.dictionary_1.Add((uint)dataRow["Id"], @class);
                    int num = int.Parse(dataRow["known_issue"].ToString());
                    if (num == 1)
                    {
                        this.list_1.Add(@class);
                    }
                    else
                    {
                        if (num == 2)
                        {
                            this.list_0.Add(@class);
                        }
                    }
                }
                Logging.WriteLine("Fertig!", ConsoleColor.Green);
            }
        }
コード例 #2
0
        public ServerMessage method_9(HelpTopic class130_0)
        {
            ServerMessage Message = new ServerMessage(520u);

            Message.AppendUInt(class130_0.UInt32_0);
            Message.AppendStringWithBreak(class130_0.string_1);
            return(Message);
        }