コード例 #1
0
        void JournalViewModel_OnEntitySelectedResult(object sender, JournalSelectedNodesEventArgs e)
        {
            var selectedNode = e.SelectedNodes.FirstOrDefault();

            if (selectedNode != null)
            {
                Subject = UoW.GetById(SubjectType, selectedNode.Id);
            }

            ChangedByUser?.Invoke(sender, e);
        }
コード例 #2
0
        /// <summary>
        /// Creates and initializes a new instance of the Entry class.
        /// </summary>
        /// <param name="parent">The EvasObject to which the new Entry will be attached as a child.</param>
        /// <since_tizen> preview </since_tizen>
        public Entry(EvasObject parent) : base(parent)
        {
            _clicked     = new SmartEvent(this, this.RealHandle, "clicked");
            _clicked.On += (s, e) => Clicked?.Invoke(this, EventArgs.Empty);

            _changedByUser     = new SmartEvent(this, this.RealHandle, "changed,user");
            _changedByUser.On += (s, e) => ChangedByUser?.Invoke(this, EventArgs.Empty);

            _cursorChanged     = new SmartEvent(this, this.RealHandle, "cursor,changed");
            _cursorChanged.On += (s, e) => CursorChanged?.Invoke(this, EventArgs.Empty);

            _activated     = new SmartEvent(this, this.RealHandle, "activated");
            _activated.On += (s, e) => Activated?.Invoke(this, EventArgs.Empty);
        }
コード例 #3
0
        void JournalViewModel_OnNodeSelectedResult(object sender, JournalSelectedNodesNodesEventArgs e)
        {
            Subject = e.SelectedNodes[0];

            ChangedByUser?.Invoke(sender, e);
        }
コード例 #4
0
ファイル: Cell.cs プロジェクト: clewrus/SimpleFileManager
 private void OnChangedByUser()
 {
     PreChangedByUser?.Invoke(this, new EventArgs());
     ChangedByUser?.Invoke(this, new EventArgs());
 }