title: Cannot implicitly convert DialogResult to MessageBoxResult
body: <p>I am receiving the error 'Cannot implicititly convert type 'System.Windows.Forms.DialogResult' to System.Windows.MessageBoxResult'</p>
  
  <p>At first I thought this was just a missing import so I put imported System.Windows.Forms but it came to no avail as doing this throws up an error on my actual message box which is 'MessageBox' is an ambigous reference between 'System.Windows.MessageBox' and 'System.Windows.Forms.MessageBox' (Which isn't to hard to figure out :P) but the original message remains the same.</p>
  
  <pre><code>    private void DisplayOnWebsiteChecked(Object sender, EventArgs e)
      {
          var departments = model.Name;
          var departmentChildren = model.Children;
  
          var messagebox = MessageBox.Show("Do you wish to hide all sub deparments and products.",
               "List of Box",
               MessageBoxButton.YesNo);
  
          if (messagebox = System.Windows.Forms.DialogResult.Yes)
          {
              if (departmentChildren != null)
              {
                  int zeroChildren = 0;
  
                  if (departmentChildren.Count.Equals(zeroChildren)) ;
                   {
                      foreach (Department Children in departmentChildren)
                          Children.IsVisibleOnWebsite = false;
                  }
              }
          }
          else
              return;
      }
  </code></pre>
  
  <p>I have included the whole method just incase you need anything from it.</p>