public UserAlertActionRequired(string message, Type codeElementType, CodeElement ce, ref DTE2 applicationObject, UnitTestCodeType codeType, object testFramework)
        {
            InitializeComponent();

            ivType = codeElementType;

            FormCodeElement = ce;

            FromCodeType = codeType;

            FormApplicationObject = applicationObject;

            TestFramework = testFramework;

            Dictionary <Type, ApplicableAcction> .KeyCollection.Enumerator it =
                lstApplicableTypes.Keys.GetEnumerator();

            while (it.MoveNext())
            {
                Type itemType = it.Current;

                if (itemType == codeElementType)
                {
                    ApplicableAcction tvApplicableAcction;

                    lstApplicableTypes.TryGetValue(itemType, out tvApplicableAcction);

                    if (tvApplicableAcction == ApplicableAcction.ignore)
                    {
                        ApplicableAcctionState = ApplicableAcction.ignore;
                    }
                    else if (tvApplicableAcction == ApplicableAcction.mutate)
                    {
                        ApplicableAcctionState = ApplicableAcction.mutate;
                    }
                    else if (tvApplicableAcction == ApplicableAcction.overwrite)
                    {
                        ApplicableAcctionState = ApplicableAcction.overwrite;
                    }

                    this.Close();
                    return;
                }
            }

            this.txtContent.Text += message;
        }
 private void btnOverwrite_Click(object sender, EventArgs e)
 {
     ApplicableAcctionState = ApplicableAcction.overwrite;
     this.Close();
 }
 private void btnDismiss_Click(object sender, EventArgs e)
 {
     ApplicableAcctionState = ApplicableAcction.ignore;
     this.Close();
 }
      public UserAlertActionRequired(string message, Type codeElementType, CodeElement ce, ref DTE2 applicationObject, UnitTestCodeType codeType, object testFramework)
      {
         InitializeComponent();

         ivType = codeElementType;

         FormCodeElement = ce;

         FromCodeType = codeType;

         FormApplicationObject = applicationObject;

         TestFramework = testFramework;

         Dictionary<Type, ApplicableAcction>.KeyCollection.Enumerator it =
            lstApplicableTypes.Keys.GetEnumerator();

         while (it.MoveNext())
         {
            Type itemType = it.Current;

            if (itemType == codeElementType)
            {
               ApplicableAcction tvApplicableAcction;

               lstApplicableTypes.TryGetValue(itemType, out tvApplicableAcction);

               if (tvApplicableAcction == ApplicableAcction.ignore)
               {
                  ApplicableAcctionState = ApplicableAcction.ignore;
               }
               else if (tvApplicableAcction == ApplicableAcction.mutate)
               {
                  ApplicableAcctionState = ApplicableAcction.mutate;
               }
               else if (tvApplicableAcction == ApplicableAcction.overwrite)
               {
                  ApplicableAcctionState = ApplicableAcction.overwrite;
               }

               this.Close();
               return;
            }
         }

         this.txtContent.Text += message;
      }
 private void btnOverwrite_Click(object sender, EventArgs e)
 {
    ApplicableAcctionState = ApplicableAcction.overwrite;
    this.Close();
 }
 private void btnDismiss_Click(object sender, EventArgs e)
 {
    ApplicableAcctionState = ApplicableAcction.ignore;
    this.Close();
 }