Beispiel #1
0
        public void SetButtonTooltip(FormatType type, string toolTip)
        {
            var b = _FormatButtons.FirstOrDefault(f => PNUtils.GetFormatType(f) == type);

            if (b != null)
            {
                b.ToolTip = toolTip;
            }
        }
Beispiel #2
0
        private void FormatButton_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            var image = sender as Image;

            if (image == null || FormatButtonClicked == null)
            {
                return;
            }
            var formatType = PNUtils.GetFormatType(image);

            FormatButtonClicked(this, new FormatButtonClickedEventArgs(formatType));
            e.Handled = true;
        }