예제 #1
0
 //解析抽奖方式
 private void parseDrawWays(string str)
 {
     string[] strArr = str.Split('#');
     ways = new DrawWaySample[strArr.Length];
     for (int i = 0; i < strArr.Length; i++)
     {
         ways [i] = new DrawWaySample(strArr [i]);
     }
 }
예제 #2
0
    public override void copy(object destObj)
    {
        base.copy(destObj);
        DrawWaySample dest = destObj as DrawWaySample;

        if (this.factors != null)
        {
            dest.factors = new int[this.factors.Length];
            for (int i = 0; i < this.factors.Length; i++)
            {
                dest.factors [i] = this.factors [i];
            }
        }
    }
예제 #3
0
 public DrawWay(DrawWaySample sample)
 {
     this.sample = sample;
 }