コード例 #1
0
        public MainPage()
        {
            this.InitializeComponent();

            var layers = Component.Hen.Layers;

            Component.Hen oHen = new Component.Hen();
            oHen.Clucked        += OHen_Clucked;
            oHen.GenericClucked += OHen_GenericClucked;
            var brood = oHen.Brood;

            foreach (var b in brood)
            {
                System.Diagnostics.Debug.WriteLine(b);
            }
            //oHen.GenericClucked += new TypedEventHandler<Hen, int>();
            // new Constructor
            Component.Hen oHen2 = new Component.Hen(12);
        }
コード例 #2
0
 private void OHen_Clucked(Component.Hen sender, int args)
 {
     // throw new NotImplementedException();
 }