Skip to content

Commit 679bd41

Browse files
committed
Corrigido o salvamento de configurações e adicionado ícone do executável.
1 parent d73170f commit 679bd41

16 files changed

Lines changed: 1800 additions & 7 deletions

.vs/VerificaVersaoDlls/v16/.suo

2 KB
Binary file not shown.

VerificaVersaoDlls/Settings.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
namespace VerificaVersaoDlls.Properties {
2+
3+
4+
// This class allows you to handle specific events on the settings class:
5+
// The SettingChanging event is raised before a setting's value is changed.
6+
// The PropertyChanged event is raised after a setting's value is changed.
7+
// The SettingsLoaded event is raised after the setting values are loaded.
8+
// The SettingsSaving event is raised before the setting values are saved.
9+
internal sealed partial class Settings {
10+
11+
public Settings() {
12+
// // To add event handlers for saving and changing settings, uncomment the lines below:
13+
//
14+
// this.SettingChanging += this.SettingChangingEventHandler;
15+
//
16+
// this.SettingsSaving += this.SettingsSavingEventHandler;
17+
//
18+
}
19+
20+
private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
21+
// Add code to handle the SettingChangingEvent event here.
22+
}
23+
24+
private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
25+
// Add code to handle the SettingsSaving event here.
26+
}
27+
}
28+
}

VerificaVersaoDlls/VerificaVersaoDlls.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
<ErrorReport>prompt</ErrorReport>
3333
<WarningLevel>4</WarningLevel>
3434
</PropertyGroup>
35+
<PropertyGroup>
36+
<ApplicationIcon>icon.ico</ApplicationIcon>
37+
</PropertyGroup>
3538
<ItemGroup>
3639
<Reference Include="System" />
3740
<Reference Include="System.Core" />
@@ -52,6 +55,7 @@
5255
<Compile Include="AlteraNomeCliente.Designer.cs">
5356
<DependentUpon>AlteraNomeCliente.cs</DependentUpon>
5457
</Compile>
58+
<Compile Include="Settings.cs" />
5559
<Compile Include="VersionChecker.cs">
5660
<SubType>Form</SubType>
5761
</Compile>
@@ -95,5 +99,8 @@
9599
<ItemGroup>
96100
<Folder Include="Resources\" />
97101
</ItemGroup>
102+
<ItemGroup>
103+
<Content Include="icon.ico" />
104+
</ItemGroup>
98105
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
99106
</Project>

VerificaVersaoDlls/VersionChecker.Designer.cs

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

VerificaVersaoDlls/VersionChecker.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ public void GetSettings()
3636
public void SaveSettings()
3737
{
3838
Properties.Settings.Default.FilePath1 = FilePath1.Text;
39-
Properties.Settings.Default.FilePath1 = FilePath2.Text;
40-
Properties.Settings.Default.FilePath1 = FilePath3.Text;
41-
Properties.Settings.Default.FilePath1 = FilePath4.Text;
39+
Properties.Settings.Default.FilePath2 = FilePath2.Text;
40+
Properties.Settings.Default.FilePath3 = FilePath3.Text;
41+
Properties.Settings.Default.FilePath4 = FilePath4.Text;
4242
Properties.Settings.Default.lbl_Cliente1 = lbl_Cliente1.Text;
4343
Properties.Settings.Default.lbl_Cliente2 = lbl_Cliente2.Text;
4444
Properties.Settings.Default.lbl_Cliente3 = lbl_Cliente3.Text;
4545
Properties.Settings.Default.lbl_Cliente4 = lbl_Cliente4.Text;
46-
Properties.Settings.Default.Save();
46+
Properties.Settings.Default.Save();
4747
}
4848
private void Form1_Load(object sender, EventArgs e)
4949
{

0 commit comments

Comments
 (0)