Ejemplo n.º 1
0
        public static InstanceDungeon MakeInstance(String str, MainForm main)
        {
            InstanceDungeon indun = null;

            if (InstanceDungeon.InDunNameList[(int)InstanceDungeon.DungeonList.루나디움] == str)
            {
                indun = new InstanceDungeon루나디움(str, main);
            }
            else if (InstanceDungeon.InDunNameList[(int)InstanceDungeon.DungeonList.용제의안식처] == str)
            {
                indun = new InstanceDungeon용제의안식처(str, main);
            }
            else if (InstanceDungeon.InDunNameList[(int)InstanceDungeon.DungeonList.카탈라마이즈] == str)
            {
                indun = new InstanceDungeon카탈라마이즈(str, main);
            }
            else if (InstanceDungeon.InDunNameList[(int)InstanceDungeon.DungeonList.룬의보호탑] == str)
            {
                indun = new InstanceDungeon룬의보호탑(str, main);
            }
            return(indun);
        }
Ejemplo n.º 2
0
        public int SendRecordInDun(InstanceDungeon indun)
        {
            try
            {
                String       url           = indun.GetQuery();// url + indun.GetQuery();
                WebRequest   myWebRequest  = WebRequest.Create(url);
                WebResponse  myWebResponse = myWebRequest.GetResponse();
                StreamReader reader        = new StreamReader(myWebResponse.GetResponseStream());
                string       temp          = reader.ReadToEnd();

                int ret = -1;
                try
                {
                    ret = Int32.Parse(temp);
                }
                catch { }
                return(ret);
            }
            catch (Exception ee)
            {
                ee.ToString();
                return(-1);
            }
        }
Ejemplo n.º 3
0
 public void SetIndun(InstanceDungeon indun)
 {
     this.Text = indun.DungeonName;
     this.textBox1.AppendText(indun.GetInfo());
 }