Esempio n. 1
0
        private void SetValue(NoteNoteObjectRec note, InlineParamVis param, string value)
        {
            ValueInfo valueInfo = ValueInfo.FindInlineParamVis(param);

            valueInfo.SetValue(note, value);
            if (ValueChanged != null)
            {
                ValueChanged.Invoke(this, EventArgs.Empty);
            }
        }
Esempio n. 2
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            base.OnMouseUp(e);

            if (mouseTrackingIndex >= 0)
            {
                int i = mouseTrackingIndex;
                int l = mouseTrackingLine;
                mouseTrackingIndex = -1;
                mouseTrackingLine  = -1;

                if (highlightedIndex >= 0)
                {
                    //BeginFieldEdit(i, l, GetValue(info[i].note, lines[l]));
                    ValueInfo valueInfo = ValueInfo.FindInlineParamVis(lines[l]);
                    valueInfo.DoClick(info[i].note, i, this);
                }

                highlightedIndex = -1;
                highlightedLine  = -1;
            }
            Invalidate();
        }
Esempio n. 3
0
        private string GetValue(NoteNoteObjectRec note, InlineParamVis param)
        {
            ValueInfo valueInfo = ValueInfo.FindInlineParamVis(param);

            return(valueInfo.GetValue(note));
        }