Beispiel #1
0
        public void method_3(DatabaseClient class6_0)
        {
            Logging.Write("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!", ConsoleColor.Green);
            }
        }
Beispiel #2
0
		public void method_3(DatabaseClient class6_0)
		{
			Logging.Write("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!", ConsoleColor.Green);
			}
		}