예제 #1
0
 public static DropData GetInstance()
 {
     if (instance == null)
     {
         instance = new DropData();
     }
     return(instance);
 }
예제 #2
0
        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());
        }
예제 #3
0
        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();
            }
        }
예제 #4
0
 public static DropData GetInstance()
 {
     if (instance == null)
         instance = new DropData();
     return instance;
 }