예제 #1
0
    public void select(AdvData data)
    {
        advSelect = (AdvSelect)data;

        lblButton1.text = advSelect.Select1;
        lblButton2.text = advSelect.Select2;
        lblButton3.text = advSelect.Select3;
        lblButton4.text = advSelect.Select4;

        show ();
    }
예제 #2
0
 public static AdvData create(string str)
 {
     AdvData result = null;
     if(str.Equals("select")){
         result = new AdvSelect();
         result.AdvType = AdvType.Select;
     }
     else if(str.Equals("goto")){
         result = new AdvGoTo();
         result.AdvType = AdvType.GoTo;
     }
     else{
         result = new AdvText();
         result.AdvType = AdvType.None;
     }
     return result;
 }