Пример #1
0
        private void Button_MouseDown(object sender, MouseButtonEventArgs e)
        {
            var sf = $"{{\"id\": \"{_id}\", \"event\": \"mouseDown\"}}";

            FreSharpHelper.DispatchEvent(ref _ctx, AsCallbackEvent, sf);
            Source = _downState;
        }
Пример #2
0
        private void Button_MouseEnter(object sender, MouseEventArgs e)
        {
            var sf = $"{{\"id\": \"{_id}\", \"event\": \"mouseOver\"}}";

            FreSharpHelper.DispatchEvent(ref _ctx, AsCallbackEvent, sf);
            Source = _overState;
            Cursor = Cursors.Hand;
        }
Пример #3
0
        private void Button_MouseLeave(object sender, MouseEventArgs e)
        {
            var sf = $"{{\"id\": \"{_id}\", \"event\": \"mouseOut\"}}";

            FreSharpHelper.DispatchEvent(ref _ctx, AsCallbackEvent, sf);
            Source = _upState;
            Cursor = Cursors.Arrow;
        }
Пример #4
0
 public void Trace(string value)
 {
     FreHelper.DispatchEvent("TRACE", value);
 }