Browse Source

Suppress more warnings

pull/59/merge
Daniel Grunwald 12 years ago
parent
commit
ce4ca4e81c
  1. 1
      src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Gui/AddComponentsDialog.cs
  2. 1
      src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Gui/ConfigureSideBarDialog.cs
  3. 1
      src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Gui/RenameCategoryDialog.cs
  4. 1
      src/AddIns/Misc/FiletypeRegisterer/Project/Src/RegisterFiletypesPanel.cs
  5. 3
      src/AddIns/Misc/RegExpTk/Project/Src/Dialogs/GroupForm.cs
  6. 1
      src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportWizard/WizardPanels/Wizard/AbstractOptionPanel.cs
  7. 1
      src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplaceDialog.cs
  8. 5
      src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplacePanel.cs
  9. 115
      src/Main/Base/Test/WebReferences/UnsupportedLanguageTest.cs

1
src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Gui/AddComponentsDialog.cs

@ -18,6 +18,7 @@ using ICSharpCode.SharpDevelop.Parser; @@ -18,6 +18,7 @@ using ICSharpCode.SharpDevelop.Parser;
namespace ICSharpCode.FormsDesigner.Gui
{
#pragma warning disable 618
public class AddComponentsDialog : BaseSharpDevelopForm
{
ArrayList selectedComponents;

1
src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Gui/ConfigureSideBarDialog.cs

@ -13,6 +13,7 @@ using ICSharpCode.SharpDevelop.Gui.XmlForms; @@ -13,6 +13,7 @@ using ICSharpCode.SharpDevelop.Gui.XmlForms;
namespace ICSharpCode.FormsDesigner.Gui
{
#pragma warning disable 618
public class ConfigureSideBarDialog : BaseSharpDevelopForm
{
ArrayList oldComponents;

1
src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Gui/RenameCategoryDialog.cs

@ -11,6 +11,7 @@ using ICSharpCode.SharpDevelop.Widgets.SideBar; @@ -11,6 +11,7 @@ using ICSharpCode.SharpDevelop.Widgets.SideBar;
namespace ICSharpCode.FormsDesigner.Gui
{
#pragma warning disable 618
public class RenameCategoryDialog : BaseSharpDevelopForm
{
string categoryName = String.Empty;

1
src/AddIns/Misc/FiletypeRegisterer/Project/Src/RegisterFiletypesPanel.cs

@ -12,6 +12,7 @@ using ICSharpCode.SharpDevelop.Gui; @@ -12,6 +12,7 @@ using ICSharpCode.SharpDevelop.Gui;
namespace ICSharpCode.FiletypeRegisterer
{
#pragma warning disable 618
public partial class RegisterFiletypesPanel : XmlFormsOptionPanel
{
sealed class ListEntry

3
src/AddIns/Misc/RegExpTk/Project/Src/Dialogs/GroupForm.cs

@ -8,7 +8,8 @@ using System.Windows.Forms; @@ -8,7 +8,8 @@ using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Gui.XmlForms;
namespace Plugins.RegExpTk {
// TODO: remove XmlForms
#pragma warning disable 618
public class GroupForm : BaseSharpDevelopForm
{
public GroupForm(Match match)

1
src/AddIns/Misc/Reports/ICSharpCode.Reports.Addin/Project/ReportWizard/WizardPanels/Wizard/AbstractOptionPanel.cs

@ -10,6 +10,7 @@ using ICSharpCode.SharpDevelop.Project; @@ -10,6 +10,7 @@ using ICSharpCode.SharpDevelop.Project;
namespace ICSharpCode.Reports.Addin.ReportWizard
{
#pragma warning disable 618
public class AbstractOptionPanel : BaseSharpDevelopUserControl, IDialogPanel
{
bool wasActivated = false;

1
src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplaceDialog.cs

@ -16,7 +16,6 @@ namespace SearchAndReplace @@ -16,7 +16,6 @@ namespace SearchAndReplace
Replace
}
[Obsolete("TODO: rewrite me without XML forms")]
public class SearchAndReplaceDialog : Form
{
public static string SearchPattern = String.Empty;

5
src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplacePanel.cs

@ -19,8 +19,9 @@ using ICSharpCode.SharpDevelop.Gui.XmlForms; @@ -19,8 +19,9 @@ using ICSharpCode.SharpDevelop.Gui.XmlForms;
namespace SearchAndReplace
{
[Obsolete("TODO: rewrite me without XML forms")]
public class SearchAndReplacePanel : BaseSharpDevelopUserControl
// TODO: remove XmlForms
#pragma warning disable 618
class SearchAndReplacePanel : BaseSharpDevelopUserControl
{
SearchAndReplaceMode searchAndReplaceMode;

115
src/Main/Base/Test/WebReferences/UnsupportedLanguageTest.cs

@ -1,58 +1,57 @@ @@ -1,58 +1,57 @@
#warning
//// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
//// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
//
//using ICSharpCode.SharpDevelop;
//using SD = ICSharpCode.SharpDevelop.Gui;
//using ICSharpCode.SharpDevelop.Project;
//using NUnit.Framework;
//using System;
//using System.IO;
//using System.Collections.Generic;
//using System.Web.Services.Description;
//using System.Web.Services.Discovery;
//
//namespace ICSharpCode.SharpDevelop.Tests.WebReferences
//{
// /// <summary>
// /// Tests that an exception is thrown if an unsupported project language
// /// is used with the web reference
// /// </summary>
// [TestFixture]
// public class UnsupportedLanguageTest
// {
// SD.WebReference webReference;
// DiscoveryClientProtocol protocol;
// FileProjectItem proxyFileProjectItem;
// MSBuildBasedProject project;
//
// string name = "localhost";
// string proxyNamespace = "WebReferenceNamespace";
// string updateFromUrl = "http://localhost/test.asmx";
//
// [Test]
// [ExpectedException(typeof(NotSupportedException))]
// public void NotSupportedProjectLanguage()
// {
// project = WebReferenceTestHelper.CreateTestProject("Foo");
//
// protocol = new DiscoveryClientProtocol();
// DiscoveryDocumentReference discoveryRef = new DiscoveryDocumentReference();
// discoveryRef.Url = updateFromUrl;
// protocol.References.Add(discoveryRef);
//
// ContractReference contractRef = new ContractReference();
// contractRef.Url = "http://localhost/test.asmx?wsdl";
// contractRef.ClientProtocol = new DiscoveryClientProtocol();
// ServiceDescription desc = new ServiceDescription();
// contractRef.ClientProtocol.Documents.Add(contractRef.Url, desc);
// protocol.References.Add(contractRef);
//
// WebReferenceTestHelper.InitializeProjectBindings();
//
// webReference = new SD.WebReference(project, updateFromUrl, name, proxyNamespace, protocol);
//
// proxyFileProjectItem = WebReferenceTestHelper.GetFileProjectItem(webReference.Items, "Web References\\localhost\\Reference.vb", ItemType.Compile);
// }
// }
//}
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using ICSharpCode.SharpDevelop;
using SD = ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Project;
using NUnit.Framework;
using System;
using System.IO;
using System.Collections.Generic;
using System.Web.Services.Description;
using System.Web.Services.Discovery;
namespace ICSharpCode.SharpDevelop.Tests.WebReferences
{
/// <summary>
/// Tests that an exception is thrown if an unsupported project language
/// is used with the web reference
/// </summary>
[TestFixture]
public class UnsupportedLanguageTest : SDTestFixtureBase
{
Gui.WebReference webReference;
DiscoveryClientProtocol protocol;
FileProjectItem proxyFileProjectItem;
MSBuildBasedProject project;
string name = "localhost";
string proxyNamespace = "WebReferenceNamespace";
string updateFromUrl = "http://localhost/test.asmx";
[Test]
[ExpectedException(typeof(NotSupportedException))]
public void NotSupportedProjectLanguage()
{
project = WebReferenceTestHelper.CreateTestProject("Foo");
protocol = new DiscoveryClientProtocol();
DiscoveryDocumentReference discoveryRef = new DiscoveryDocumentReference();
discoveryRef.Url = updateFromUrl;
protocol.References.Add(discoveryRef);
ContractReference contractRef = new ContractReference();
contractRef.Url = "http://localhost/test.asmx?wsdl";
contractRef.ClientProtocol = new DiscoveryClientProtocol();
ServiceDescription desc = new ServiceDescription();
contractRef.ClientProtocol.Documents.Add(contractRef.Url, desc);
protocol.References.Add(contractRef);
WebReferenceTestHelper.InitializeProjectBindings();
webReference = new Gui.WebReference(project, updateFromUrl, name, proxyNamespace, protocol);
proxyFileProjectItem = WebReferenceTestHelper.GetFileProjectItem(webReference.Items, "Web References\\localhost\\Reference.vb", ItemType.Compile);
}
}
}

Loading…
Cancel
Save