Skip to content

Commit

Permalink
Adicionado AsXML extension method.
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusjarina committed Jul 18, 2015
1 parent 5cebd38 commit f212d30
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions Banco/Banco.csproj
Expand Up @@ -47,6 +47,7 @@
<ItemGroup>
<Compile Include="Busca\GeradorDeDevedores.cs" />
<Compile Include="Cliente\Cliente.cs" />
<Compile Include="Contas\Class1.cs" />
<Compile Include="Contas\Conta.cs" />
<Compile Include="Contas\ContaCorrente.cs" />
<Compile Include="Contas\ContaPoupanca.cs" />
Expand Down
2 changes: 1 addition & 1 deletion Banco/Contas/Conta.cs
Expand Up @@ -25,7 +25,7 @@ public static int ProximaConta ()

public int Numero { get; set; }

public double Saldo { get; protected set; }
public double Saldo { get; set; }

public Cliente Titular { get; set; }

Expand Down
13 changes: 13 additions & 0 deletions Banco/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Banco/Form1.cs
Expand Up @@ -224,5 +224,12 @@ private void relatorioButton_Click (object sender, EventArgs e)
FormRelatorios form = new FormRelatorios (contas);
form.ShowDialog ();
}

private void buttonXML_Click (object sender, EventArgs e)
{
if (contaSelectionada == null)
return;
MessageBox.Show (contaSelectionada.AsXml());
}
}
}

0 comments on commit f212d30

Please sign in to comment.