static void Main() { #if DEBUG debugStream.AutoFlush = true; debugStream.WriteLine("Starting new Session " + System.DateTime.Now); #endif // read Data NpcNames.GetInstance(); ItemNames.GetInstance(); DropData.GetInstance().OpenDb(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); OptionsForm.Instance.ReadIniFile(); Application.Run(new Form1()); }
public void Show(int mobId) { this.activeList = DropData.GetInstance().GetDrops(mobId); if (this.activeList.Count == 0) { this.myClose(); return; } this.dataGridView1.DataSource = this.activeList; this.Size = calcNewSize(); this.Text = NpcNames.GetInstance().GetName(mobId); // Show the Form if (!this.isShown) { this.isShown = true; this.Show(); } }