Choreoh.MainWindow.addCommentSegmentButton_Clicked C# (CSharp) Метод

addCommentSegmentButton_Clicked() приватный Метод

private addCommentSegmentButton_Clicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void addCommentSegmentButton_Clicked(object sender, EventArgs e)
        {
            if (segmentButtonCanvas.Visibility == Visibility.Collapsed)
                return;
            commentSegment();
            Canvas.SetZIndex(segmentButtonCanvas, oldButtonZIndex);
            segmentButtonCanvas.Visibility = Visibility.Collapsed;
            oldCommentBoxIndex = Canvas.GetZIndex(commentBox);
            Canvas.SetZIndex(commentBox, Canvas.GetZIndex(blackBack) + 1);
            //fixSegmentIndices();
            Canvas.SetZIndex(commentButtonCanvas, Canvas.GetZIndex(blackBack) + 1);
            commentButtonCanvas.Visibility = Visibility.Visible;
        }