ThibaultMontaufray/Droid-Image

View on GitHub
Project/Droid.Image.UI/ToolStripMenuIMG.cs

Summary

Maintainability
F
4 days
Test Coverage

File ToolStripMenuIMG.cs has 578 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Diagnostics.SymbolStore;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Threading;
Severity: Major
Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs - About 1 day to fix

    Class ToolStripMenuIMG has 37 methods (exceeds 20 allowed). Consider refactoring.
    Open

        public class ToolStripMenuIMG : ToolStripMenuManager
        {
            #region Attributes
            private GUI gui;
    
    
    Severity: Minor
    Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs - About 4 hrs to fix

      Method BuildToolsPanel has 71 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              private void BuildToolsPanel()
              {
                  ts_tool_contrast = new RibbonButton("Contraste");
                  ts_tool_contrast.Click += new EventHandler(tsb_contrast_Click);
                  ts_tool_contrast.SmallImage = gui.imageListManager16.Images[gui.imageListManager16.Images.IndexOfKey("contrast")];
      Severity: Major
      Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs - About 2 hrs to fix

        Method BuildReturnPanel has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                private void BuildReturnPanel()
                {
                    ts_returnH = new RibbonButton("Return horizontal");
                    ts_returnH.MinSizeMode = RibbonElementSizeMode.DropDown;
                    ts_returnH.Click += new EventHandler(tsb_returnH_Click);
        Severity: Minor
        Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs - About 1 hr to fix

          Method BuildSizePanel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  private void BuildSizePanel()
                  {
                      ts_imgcenter = new RibbonButton("Center");
                      ts_imgcenter.Click += new EventHandler(tsb_imgcenter_Click);
                      ts_imgcenter.MinSizeMode = RibbonElementSizeMode.DropDown;
          Severity: Minor
          Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs - About 1 hr to fix

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                    private void tsb_crop_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            _intImg.FlagCrop = !_intImg.FlagCrop;
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 1 other location - About 1 hr to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 456..470

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 108.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                    private void tsb_layer_resize_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            _intImg.FlagResize = !_intImg.FlagResize;
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 1 other location - About 1 hr to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 495..509

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 108.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                    public void ts_zoom_TextBoxTextChanged(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("zoom_" + ts_zoom.Text);
            Severity: Minor
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 1 other location - About 45 mins to fix
            Project/Droid.Image.UI/Vues/ToolStripMenuIMG.cs on lines 966..977

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 76.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_gray_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("gray");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void rl_red_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("rgb_red");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_codeqr_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("codeqr");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_insert_image_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("insert_image");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_next_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("next");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_insert_text_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("insert_text");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_contrast_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("contrast");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_light_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("light");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_codebar_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("codebar");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_invert_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("invert");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void rl_green_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("rgb_green");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void rl_blue_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("rgb_blue");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 444..455
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 13 locations. Consider refactoring.
            Open

                    private void tsb_open_Click(object sender, EventArgs e)
                    {
                        try
                        {
                            ToolBarEventArgs action = new ToolBarEventArgs("open");
            Severity: Major
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 12 other locations - About 40 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 432..443
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 471..482
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 483..494
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 510..521
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 522..533
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 534..545
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 546..557
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 558..569
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 570..581
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 582..593
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 594..605
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 606..617

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 70.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                    public void DisableAll()
                    {
                        panelMain.Enabled = false;
                        panelSize.Enabled = false;
                        panelTools.Enabled = false;
            Severity: Minor
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 1 other location - About 30 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 109..117

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 60.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                    public void EnableAll()
                    {
                        panelMain.Enabled = true;
                        panelSize.Enabled = true;
                        panelTools.Enabled = true;
            Severity: Minor
            Found in Project/Droid.Image.UI/ToolStripMenuIMG.cs and 1 other location - About 30 mins to fix
            Project/Droid.Image.UI/ToolStripMenuIMG.cs on lines 118..126

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 60.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            There are no issues that match your filters.

            Category
            Status