示例#1
0
        /// <summary>
        /// On Click: apply the contrast change to the actual image.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void ApplyButton_Click(object sender, EventArgs e)
        {
            //TODO refactor
            this.ccToolbar.CCMainForm.takeSnap("Contrast Changed");
            this.ccToolbar.CCMainForm.MainImage.Contrast(this.contrastValue);

            //TODO refactor
            this.ccToolbar.CCMainForm.centerImage();
            this.ccToolbar.CCMainForm.MainImage.Invalidate();
            this.ccToolbar.CCMainForm.getImagePanel().Invalidate();

            choiceForm.Close();
        }
示例#2
0
 /// <summary>
 /// On Click: Close the form.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BottomButton_Click(object sender, EventArgs e)
 {
     zoomChoiceForm.Close();
     ccMainForm.resetState();
 }