Changes to make it .NET 2.0 compatible

This commit is contained in:
Stefan Persson 2008-11-10 17:54:55 +00:00
parent 6b91f5be22
commit 04ca3e400c
10 changed files with 48 additions and 29 deletions

View file

@ -299,7 +299,7 @@ namespace DeviceScheduler {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class JobDataTable : global::System.Data.TypedTableBase<JobRow> {
public partial class JobDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
private global::System.Data.DataColumn columnID;
@ -444,6 +444,11 @@ namespace DeviceScheduler {
ID})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual global::System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override global::System.Data.DataTable Clone() {
JobDataTable cln = ((JobDataTable)(base.Clone()));
@ -616,7 +621,7 @@ namespace DeviceScheduler {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class JobActionsDataTable : global::System.Data.TypedTableBase<JobActionsRow> {
public partial class JobActionsDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
private global::System.Data.DataColumn columnID;
@ -734,6 +739,11 @@ namespace DeviceScheduler {
ID})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual global::System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override global::System.Data.DataTable Clone() {
JobActionsDataTable cln = ((JobActionsDataTable)(base.Clone()));

View file

@ -13,7 +13,7 @@
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>2.0</OldToolsVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<PublishUrl>publish\</PublishUrl>
@ -31,6 +31,8 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkSubset>
</TargetFrameworkSubset>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -51,13 +53,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Deployment" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
@ -176,6 +172,7 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="DataStorage.xsc">
<DependentUpon>DataStorage.xsd</DependentUpon>
</None>

View file

@ -66,7 +66,7 @@ namespace DeviceScheduler
return ResMngr.GetString(name);
}
catch (Exception ex)
catch
{
return "";
}

View file

@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2007.1.*")]
[assembly: AssemblyFileVersion("2007.1.*")]
[assembly: AssemblyVersion("2007.1.1.2")]
[assembly: AssemblyFileVersion("2007.1.1.2")]

View file

@ -280,7 +280,7 @@ namespace DeviceScheduler
else
task.SetAccountInformation(m_Job.Username, password);
}
catch (Exception e)
catch
{
MessageBox.Show(Localization.GetString("FailedToSetPassword"),
Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);