Skip to content

Commit fc6eb88

Browse files
committed
Feito compatbilidade com c# 5
1 parent f34668f commit fc6eb88

File tree

77 files changed

+254
-332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+254
-332
lines changed

.vs/Zeus NFe/v15/.suo

0 Bytes
Binary file not shown.

CTe.AppTeste/App.config

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
55
</startup>
6-
</configuration>
6+
</configuration>

CTe.AppTeste/CTe.AppTeste.csproj

+29-1
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,27 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>CTe.AppTeste</RootNamespace>
1111
<AssemblyName>CTe.AppTeste</AssemblyName>
12-
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1515
<WarningLevel>4</WarningLevel>
1616
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
17+
<TargetFrameworkProfile />
18+
<PublishUrl>publish\</PublishUrl>
19+
<Install>true</Install>
20+
<InstallFrom>Disk</InstallFrom>
21+
<UpdateEnabled>false</UpdateEnabled>
22+
<UpdateMode>Foreground</UpdateMode>
23+
<UpdateInterval>7</UpdateInterval>
24+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
25+
<UpdatePeriodically>false</UpdatePeriodically>
26+
<UpdateRequired>false</UpdateRequired>
27+
<MapFileExtensions>true</MapFileExtensions>
28+
<ApplicationRevision>0</ApplicationRevision>
29+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
30+
<IsWebBootstrapper>false</IsWebBootstrapper>
31+
<UseApplicationTrust>false</UseApplicationTrust>
32+
<BootstrapperEnabled>true</BootstrapperEnabled>
1733
</PropertyGroup>
1834
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1935
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -469,6 +485,18 @@
469485
<Name>DFe.Utils</Name>
470486
</ProjectReference>
471487
</ItemGroup>
488+
<ItemGroup>
489+
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
490+
<Visible>False</Visible>
491+
<ProductName>Microsoft .NET Framework 4.5.2 %28x86 and x64%29</ProductName>
492+
<Install>true</Install>
493+
</BootstrapperPackage>
494+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
495+
<Visible>False</Visible>
496+
<ProductName>.NET Framework 3.5 SP1</ProductName>
497+
<Install>false</Install>
498+
</BootstrapperPackage>
499+
</ItemGroup>
472500
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
473501
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
474502
Other similar extension points exist, see Microsoft.Common.targets.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp50</s:String></wpf:ResourceDictionary>

CTe.AppTeste/CTe.AppTeste.csproj.user

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<PublishUrlHistory>publish\</PublishUrlHistory>
5+
<InstallUrlHistory />
6+
<SupportUrlHistory />
7+
<UpdateUrlHistory />
8+
<BootstrapperUrlHistory />
9+
<ErrorReportUrlHistory />
10+
<FallbackCulture>en-US</FallbackCulture>
11+
<VerifyUploadedFiles>false</VerifyUploadedFiles>
12+
</PropertyGroup>
13+
</Project>

CTe.AppTeste/ModelBase/ViewModel.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ public class ViewModel : INotifyPropertyChanged
4040

4141
protected virtual void OnPropertyChanged(string propertyName)
4242
{
43-
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
43+
if (PropertyChanged == null) return;
44+
45+
PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
4446
}
4547
}
4648
}

CTe.AppTeste/Properties/Resources.Designer.cs

+17-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CTe.AppTeste/Properties/Settings.Designer.cs

+9-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CTe.AppTeste/obj/Debug/CTe.AppTeste_MarkupCompile.i.cache

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
winexe
55
C#
66
.cs
7-
C:\Users\rober\Documents\Projetos\Zeus.Net.NFe.NFCe\CTe.AppTeste\obj\Debug\
7+
C:\Users\rober\Documents\Projetos\Zeus\Zeus.Net.NFe.NFCe\CTe.AppTeste\obj\Debug\
88
CTe.AppTeste
99
none
1010
false
1111
DEBUG;TRACE
12-
C:\Users\rober\Documents\Projetos\Zeus.Net.NFe.NFCe\CTe.AppTeste\App.xaml
12+
C:\Users\rober\Documents\Projetos\Zeus\Zeus.Net.NFe.NFCe\CTe.AppTeste\App.xaml
1313
21550422159
1414

15-
181144197637
16-
19743822199
15+
15-256805204
16+
182044918683
1717
InputBoxWindow.xaml;MainWindow.xaml;
1818

19-
True
19+
False
2020

Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp50</s:String></wpf:ResourceDictionary>

CTe.Classes/CTe.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public string ProxyVersao
6767
}
6868
}
6969

70-
public bool versaoSpecified => versao.HasValue;
70+
public bool versaoSpecified { get { return versao.HasValue; } }
7171

7272
[XmlElement(Namespace = "http://www.portalfiscal.inf.br/cte")]
7373
public infCte infCte;

CTe.Classes/Informacoes/Complemento/Entrega/noInter.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ namespace CTe.Classes.Informacoes.Complemento
4141
{
4242
public class noInter : comHoraBase
4343
{
44-
public tpHor tpHor { get; set; } = tpHor.NoIntervaloDeTempo;
44+
public tpHor tpHor { get; set; }
45+
46+
public noInter()
47+
{
48+
tpHor = tpHor.NoIntervaloDeTempo;
49+
}
4550

4651
[XmlIgnore]
4752
public TimeSpan hIni { get; set; }

CTe.Classes/Informacoes/Complemento/Entrega/noPeriodo.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ namespace CTe.Classes.Informacoes.Complemento
4141
{
4242
public class noPeriodo : comDataBase
4343
{
44-
public tpPer tpPer { get; set; } = tpPer.NoPeriodo;
44+
public noPeriodo()
45+
{
46+
tpPer = tpPer.NoPeriodo;
47+
}
48+
49+
public tpPer tpPer { get; set; }
4550

4651
[XmlIgnore]
4752
public DateTime dIni { get; set; }

CTe.Classes/Informacoes/Complemento/Entrega/semData.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ namespace CTe.Classes.Informacoes.Complemento
3838
{
3939
public class semData : comDataBase
4040
{
41-
public tpPer tpPer { get; set; } = tpPer.SemDataDefinida;
41+
public semData()
42+
{
43+
tpPer = tpPer.SemDataDefinida;
44+
}
45+
46+
public tpPer tpPer { get; set; }
4247
}
4348
}

CTe.Classes/Informacoes/Complemento/Entrega/semHora.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ namespace CTe.Classes.Informacoes.Complemento
3838
{
3939
public class semHora : comHoraBase
4040
{
41-
public tpHor tpHor { get; set; } = tpHor.SemHoraDefinida;
41+
public semHora()
42+
{
43+
tpHor = tpHor.SemHoraDefinida;
44+
}
45+
46+
public tpHor tpHor { get; set; }
4247
}
4348
}

CTe.Classes/Informacoes/Identificacao/ide.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class ide
6464
/// </summary>
6565
public forPag? forPag { get; set; }
6666

67-
public bool forPagSpecified => forPag.HasValue;
67+
public bool forPagSpecified { get { return forPag.HasValue; } }
6868

6969
/// <summary>
7070
/// B06 - Modelo do Documento Fiscal

CTe.Classes/Informacoes/Identificacao/toma4.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ namespace CTe.Classes.Informacoes.Identificacao
3737
{
3838
public class toma4
3939
{
40-
public toma toma { get; set; } = toma.Outros;
40+
public toma4()
41+
{
42+
toma = toma.Outros;
43+
}
44+
45+
public toma toma { get; set; }
4146

4247
public string CNPJ { get; set; }
4348

CTe.Classes/Informacoes/Impostos/ICMS/ICMS00.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ namespace CTe.Classes.Informacoes.Impostos.ICMS
3939
{
4040
public class ICMS00 : ICMSBasico
4141
{
42+
public ICMS00()
43+
{
44+
CST = CST.ICMS00;
45+
}
46+
4247
private decimal _vBc;
4348
private decimal _pIcms;
4449
private decimal _vIcms;
45-
public CST CST { get; set; } = CST.ICMS00;
50+
public CST CST { get; set; }
4651

4752
public decimal vBC
4853
{

CTe.Classes/Informacoes/Impostos/ICMS/ICMS20.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ namespace CTe.Classes.Informacoes.Impostos.ICMS
3939
{
4040
public class ICMS20 : ICMSBasico
4141
{
42+
public ICMS20()
43+
{
44+
CST = CST.ICMS20;
45+
}
46+
4247
private decimal _pRedBc;
4348
private decimal _vBc;
4449
private decimal _pIcms;
4550
private decimal _vIcms;
46-
public CST CST { get; set; } = CST.ICMS20;
51+
public CST CST { get; set; }
4752

4853
public decimal pRedBC
4954
{

CTe.Classes/Informacoes/Impostos/ICMS/ICMS60.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ namespace CTe.Classes.Informacoes.Impostos.ICMS
3939
{
4040
public class ICMS60 : ICMSBasico
4141
{
42+
public ICMS60()
43+
{
44+
CST = CST.ICMS60;
45+
}
46+
4247
private decimal _vBcstRet;
4348
private decimal _vIcmsstRet;
4449
private decimal _pIcmsstRet;
4550
private decimal _vCred;
46-
public CST CST { get; set; } = CST.ICMS60;
51+
public CST CST { get; set; }
4752

4853
public decimal vBCSTRet
4954
{

CTe.Classes/Informacoes/Impostos/ICMS/ICMS90.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ namespace CTe.Classes.Informacoes.Impostos.ICMS
3939
{
4040
public class ICMS90 : ICMSBasico
4141
{
42+
public ICMS90()
43+
{
44+
CST = CST.ICMS90;
45+
}
46+
4247
private decimal _pRedBc;
4348
private decimal _vBc;
4449
private decimal _pIcms;
4550
private decimal _vIcms;
4651
private decimal _vCred;
47-
public CST CST { get; set; } = CST.ICMS90;
52+
public CST CST { get; set; }
4853

4954
public decimal pRedBC
5055
{

0 commit comments

Comments
 (0)