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;
namespace ICSharpCode.FormsDesigner.Gui namespace ICSharpCode.FormsDesigner.Gui
{ {
#pragma warning disable 618
public class AddComponentsDialog : BaseSharpDevelopForm public class AddComponentsDialog : BaseSharpDevelopForm
{ {
ArrayList selectedComponents; ArrayList selectedComponents;

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

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

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

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

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

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

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

@ -8,7 +8,8 @@ using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Gui.XmlForms; using ICSharpCode.SharpDevelop.Gui.XmlForms;
namespace Plugins.RegExpTk { namespace Plugins.RegExpTk {
// TODO: remove XmlForms
#pragma warning disable 618
public class GroupForm : BaseSharpDevelopForm public class GroupForm : BaseSharpDevelopForm
{ {
public GroupForm(Match match) 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;
namespace ICSharpCode.Reports.Addin.ReportWizard namespace ICSharpCode.Reports.Addin.ReportWizard
{ {
#pragma warning disable 618
public class AbstractOptionPanel : BaseSharpDevelopUserControl, IDialogPanel public class AbstractOptionPanel : BaseSharpDevelopUserControl, IDialogPanel
{ {
bool wasActivated = false; bool wasActivated = false;

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

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

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

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

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

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

Loading…
Cancel
Save