예제 #1
0
        public void method_3(DatabaseClient class6_0)
        {
            Logging.smethod_0("Loading Help Topics..");
            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("completed!");
            }
        }
예제 #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);
        }
예제 #3
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;
 }
예제 #4
0
 public void method_3(DatabaseClient class6_0)
 {
     Logging.smethod_0("Loading Help Topics..");
     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("completed!");
     }
 }