Exemplo n.º 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;
            }
        }
Exemplo n.º 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
     });
 }
Exemplo n.º 3
0
 DestinationBar ITypeConverter <SourceBar, DestinationBar> .Convert(
     SourceBar source,
     DestinationBar destination,
     ResolutionContext context
     )
 {
     return(new DestinationBar {
         DestinationBarValue = source.SourceBarValue + 1000
     });
 }
Exemplo n.º 4
0
        void ReleaseDesignerOutlets()
        {
            if (DestinationBar != null)
            {
                DestinationBar.Dispose();
                DestinationBar = null;
            }

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

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