예제 #1
0
 public void Init(int ID, string WPT, IRole uvo, SummonVO svo)
 {
     PickedProduct = ProductFactory.Create(ID, WPT);
     textBox1.Text = PickedProduct.GetName();
     this.UVO      = uvo;
     this.SVO      = svo;
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            WPName wp = new WPName(true, UVO, WPTYPE.WPNAMELIST, false);

            wp.ShowDialog();
            if (wp.PickedID == 0)
            {
                return;
            }

            PickedProduct = ProductFactory.Create(wp.PickedID, wp.PickedType);
            textBox1.Text = PickedProduct.GetName();
        }