示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (DestinationBar != null)
            {
                DestinationBar.Dispose();
                DestinationBar = null;
            }

            if (ListView != null)
            {
                ListView.Dispose();
                ListView = null;
            }

            if (RestaurantMap != null)
            {
                RestaurantMap.Dispose();
                RestaurantMap = null;
            }

            if (YasssBootun != null)
            {
                YasssBootun.Dispose();
                YasssBootun = null;
            }
        }
示例#2
0
 protected override void Because_of()
 {
     _resultFoo = Mapper.Map <SourceFoo, DestinationFoo>(new SourceFoo {
         SourceFooValue = 5
     });
     _resultBar = Mapper.Map <SourceBar, DestinationBar>(new SourceBar {
         SourceBarValue = 6
     });
 }
示例#3
0
 DestinationBar ITypeConverter <SourceBar, DestinationBar> .Convert(
     SourceBar source,
     DestinationBar destination,
     ResolutionContext context
     )
 {
     return(new DestinationBar {
         DestinationBarValue = source.SourceBarValue + 1000
     });
 }
        void ReleaseDesignerOutlets()
        {
            if (DestinationBar != null)
            {
                DestinationBar.Dispose();
                DestinationBar = null;
            }

            if (RestaurantMap != null)
            {
                RestaurantMap.Dispose();
                RestaurantMap = null;
            }

            if (ResultList != null)
            {
                ResultList.Dispose();
                ResultList = null;
            }
        }
 public DestinationFoo(DestinationBar bar = null)
 {
     _bar = bar;
 }
 public DestinationFoo(DestinationBar bar=null,string str="hello")
 {
     _bar = bar;
     _str = str;
 }
示例#7
0
 public DestinationFoo(DestinationBar bar = null)
 {
     _bar = bar;
 }
示例#8
0
 public DestinationFoo(DestinationBar bar = null, string str = "hello")
 {
     _bar = bar;
     _str = str;
 }
示例#9
0
 public DestinationFoo(DestinationBar bar, DestinationBar bar2)
 {
     _bar = bar;
     Bar2 = bar2;
 }
示例#10
0
 public DestinationFoo(DestinationBar bar, DestinationBar bar2)
 {
     _bar = bar;
     Bar2 = bar2;
 }
示例#11
0
 public DestinationFoo(DestinationBar bar)
 {
     Bar = bar;
 }