Example #1
0
        public void SetMarkButtonTooltip(MarkType type, string toolTip)
        {
            var b = _MarkButtons.FirstOrDefault(m => PNUtils.GetMarkType(m) == type);

            if (b != null)
            {
                b.ToolTip = toolTip;
            }
        }
Example #2
0
        public bool IsMarkButtonVisible(MarkType type)
        {
            var b = _MarkButtons.FirstOrDefault(m => PNUtils.GetMarkType(m) == type);

            if (b != null)
            {
                return(b.Visibility == Visibility.Visible);
            }
            return(false);
        }
Example #3
0
        public void SetMarkButtonVisibility(MarkType type, bool value)
        {
            var b = _MarkButtons.FirstOrDefault(m => PNUtils.GetMarkType(m) == type);
            var v = value ? Visibility.Visible : Visibility.Collapsed;

            if (b != null)
            {
                b.Visibility = v;
            }
        }
Example #4
0
        private void MarkButton_Click(object sender, MouseButtonEventArgs e)
        {
            var image = sender as Image;

            if (image == null || MarkButtonClicked == null)
            {
                return;
            }
            MarkButtonClicked(this, new MarkButtonClickedEventArgs(PNUtils.GetMarkType(image)));
        }