Esempio n. 1
0
        public void CsharpSanityTest()
        {
            EventBus bus = new EventBus();

            EventBase eventBase = new CustomEvent1();

            int i = 0;

            bus.Subscribe <EventBase>(e => {
                i = 1;
            });

            bus.Publish(eventBase);
            Assert.AreEqual(1, i);
        }
Esempio n. 2
0
 private void ControlCanvas_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     CustomEvent1?.Invoke(sender, new CustomEvent1Args(new Point(13, 37)));
 }