private void SetOpacityButton_Click(object sender, RoutedEventArgs e)
        {
            SetOpacityWindow setOpacityWindow = new SetOpacityWindow();

            setOpacityWindow.ShowDialog(AnchorPixelToBeAdded.AnchPixOpacity);
            if (setOpacityWindow.DialogResult == true)
            {
                AnchorPixelToBeAdded.AnchPixOpacity = setOpacityWindow.AnchPixelOpacity;
            }
        }
        private void AnchorPixelControl_OpacityChangeRequested(object sender, EventArgs e)
        {
            SetOpacityWindow   window = new SetOpacityWindow();
            AnchorPixelControl pix    = (AnchorPixelControl)sender;

            window.ShowDialog(pix.AnchPixOpacity);
            if ((bool)window.DialogResult)
            {
                pix.AnchPixOpacity = window.AnchPixelOpacity;
                UpdateAnchorPixelOpacity(pix);

                if (pix.AnchPixOpacity == 255)
                {
                    OnAnchorPixelChanged();
                    UpdateOpacityApplied();
                }
                else
                {
                    UpdateOpacityApplied();
                    OnAnchorPixelChanged();
                }
            }
        }