Example #1
0
 public IType FromNative(Type type)
 {
     IType cached;
     if(typeCache.TryGetValue(type, out cached))
         return cached;
     cached = new PencilType(this, type);
     typeCache.Add(type, cached);
     return cached;
 }
Example #2
0
        public void SetDrawingType(object sender, EventArgs args)
        {
            Button btnSender = (Button)sender;

            drawType = (sender == btnCircle)?PencilType.Circle:PencilType.Rectangle;
        }
Example #3
0
 public void SetDrawingType(object sender,EventArgs args)
 {
     Button btnSender = (Button)sender;
       drawType = (sender==btnCircle)?PencilType.Circle:PencilType.Rectangle;
 }