mirror of
https://github.com/Alvin-Zilverstand/ict-algemeen-opdrachten.git
synced 2026-03-06 02:57:05 +01:00
Remove obsolete project files and caches for Bankrekening project
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
class Bankrekening
|
||||
{
|
||||
@@ -14,11 +15,10 @@ class Bankrekening
|
||||
if (bedrag > 0)
|
||||
{
|
||||
saldo += bedrag;
|
||||
Console.WriteLine($"U heeft {bedrag} gestort. Nieuw saldo: {saldo}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Het bedrag moet positief zijn.");
|
||||
throw new ArgumentException("Het bedrag moet positief zijn.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,29 +27,81 @@ class Bankrekening
|
||||
if (bedrag > 0 && bedrag <= saldo)
|
||||
{
|
||||
saldo -= bedrag;
|
||||
Console.WriteLine($"U heeft {bedrag} opgenomen. Nieuw saldo: {saldo}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Onvoldoende saldo of ongeldig bedrag.");
|
||||
throw new ArgumentException("Onvoldoende saldo of ongeldig bedrag.");
|
||||
}
|
||||
}
|
||||
|
||||
public void ControleerSaldo()
|
||||
public decimal ControleerSaldo()
|
||||
{
|
||||
Console.WriteLine($"Uw huidige saldo is: {saldo}");
|
||||
return saldo;
|
||||
}
|
||||
}
|
||||
|
||||
public class MainForm : Form
|
||||
{
|
||||
private Bankrekening mijnRekening;
|
||||
private Label saldoLabel;
|
||||
private TextBox bedragTextBox;
|
||||
private Button stortenButton;
|
||||
private Button opnemenButton;
|
||||
|
||||
public MainForm()
|
||||
{
|
||||
mijnRekening = new Bankrekening(1000);
|
||||
|
||||
saldoLabel = new Label() { Text = $"Saldo: {mijnRekening.ControleerSaldo()}", Top = 20, Left = 20, Width = 200 };
|
||||
bedragTextBox = new TextBox() { Top = 50, Left = 20, Width = 200 };
|
||||
stortenButton = new Button() { Text = "Storten", Top = 80, Left = 20 };
|
||||
opnemenButton = new Button() { Text = "Opnemen", Top = 110, Left = 20 };
|
||||
|
||||
stortenButton.Click += StortenButton_Click;
|
||||
opnemenButton.Click += OpnemenButton_Click;
|
||||
|
||||
Controls.Add(saldoLabel);
|
||||
Controls.Add(bedragTextBox);
|
||||
Controls.Add(stortenButton);
|
||||
Controls.Add(opnemenButton);
|
||||
}
|
||||
|
||||
private void StortenButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
decimal bedrag = decimal.Parse(bedragTextBox.Text);
|
||||
mijnRekening.Storten(bedrag);
|
||||
saldoLabel.Text = $"Saldo: {mijnRekening.ControleerSaldo()}";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void OpnemenButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
decimal bedrag = decimal.Parse(bedragTextBox.Text);
|
||||
mijnRekening.Opnemen(bedrag);
|
||||
saldoLabel.Text = $"Saldo: {mijnRekening.ControleerSaldo()}";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Bankrekening mijnRekening = new Bankrekening(1000);
|
||||
|
||||
mijnRekening.ControleerSaldo();
|
||||
mijnRekening.Storten(200);
|
||||
mijnRekening.Opnemen(150);
|
||||
mijnRekening.ControleerSaldo();
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainForm());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v9.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v9.0": {
|
||||
"Bankrekening/1.0.0": {
|
||||
"runtime": {
|
||||
"Bankrekening.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Bankrekening/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net9.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "9.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\Csharp\\Bankrekening\\Bankrekening.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\Csharp\\Bankrekening\\Bankrekening.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\Csharp\\Bankrekening\\Bankrekening.csproj",
|
||||
"projectName": "Bankrekening",
|
||||
"projectPath": "C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\Csharp\\Bankrekening\\Bankrekening.csproj",
|
||||
"packagesPath": "C:\\Users\\steen\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\Csharp\\Bankrekening\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\steen\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.102/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\steen\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\steen\.nuget\packages\" />
|
||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,2 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -1,4 +0,0 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||
@@ -1,22 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Bankrekening")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+37ab6093e226af6df6abcdb31fa72fd6d2875c99")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Bankrekening")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Bankrekening")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
b5c984633e2e31edc1d055f8f2ee419c4ab5a87d8d341b13ba35db9e58d7bdb3
|
||||
@@ -1,15 +0,0 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net9.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Bankrekening
|
||||
build_property.ProjectDir = C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
@@ -1,8 +0,0 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
9f86f13d1351cdca964ee699aed7ec1478a1d4a30d1c295d044ab56001f8484d
|
||||
@@ -1,15 +0,0 @@
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\Bankrekening.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\Bankrekening.AssemblyInfoInputs.cache
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\Bankrekening.AssemblyInfo.cs
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\Bankrekening.csproj.CoreCompileInputs.cache
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\Bankrekening.sourcelink.json
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\bin\Debug\net9.0\Bankrekening.exe
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\bin\Debug\net9.0\Bankrekening.deps.json
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\bin\Debug\net9.0\Bankrekening.runtimeconfig.json
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\bin\Debug\net9.0\Bankrekening.dll
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\bin\Debug\net9.0\Bankrekening.pdb
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\Bankrekening.dll
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\refint\Bankrekening.dll
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\Bankrekening.pdb
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\Bankrekening.genruntimeconfig.cache
|
||||
C:\Users\steen\Desktop\Alvin\ict-algemeen-opdrachten\Csharp\Bankrekening\obj\Debug\net9.0\ref\Bankrekening.dll
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
53b068ce9a4b58f73d83ed83022840ec62786d9ef4bf300d719b01e3b7aa5843
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
{"documents":{"C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\*":"https://raw.githubusercontent.com/Alvin-Zilverstand/ict-algemeen-opdrachten/37ab6093e226af6df6abcdb31fa72fd6d2875c99/*"}}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,77 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net9.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net9.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\steen\\.nuget\\packages\\": {},
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\Csharp\\Bankrekening\\Bankrekening.csproj",
|
||||
"projectName": "Bankrekening",
|
||||
"projectPath": "C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\Csharp\\Bankrekening\\Bankrekening.csproj",
|
||||
"packagesPath": "C:\\Users\\steen\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\Csharp\\Bankrekening\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\steen\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.102/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "NHnnkwFtkMM=",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\Csharp\\Bankrekening\\Bankrekening.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
Reference in New Issue
Block a user