{"id":19638380,"url":"https://github.com/maherzaidoune/banquec-project","last_synced_at":"2026-04-25T22:31:21.467Z","repository":{"id":94608654,"uuid":"103442101","full_name":"maherzaidoune/BanqueC-Project","owner":"maherzaidoune","description":"a simple banking project written in c# using visual studio 2015,use it as a blueprint for your projects development ","archived":false,"fork":false,"pushed_at":"2017-09-13T21:13:22.000Z","size":651,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-09T17:16:44.536Z","etag":null,"topics":["csharp","database","desktop-app","school-project"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maherzaidoune.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-13T19:31:16.000Z","updated_at":"2022-05-29T13:36:48.000Z","dependencies_parsed_at":"2023-04-24T14:01:53.015Z","dependency_job_id":null,"html_url":"https://github.com/maherzaidoune/BanqueC-Project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherzaidoune%2FBanqueC-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherzaidoune%2FBanqueC-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherzaidoune%2FBanqueC-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherzaidoune%2FBanqueC-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maherzaidoune","download_url":"https://codeload.github.com/maherzaidoune/BanqueC-Project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941516,"owners_count":19882063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","database","desktop-app","school-project"],"created_at":"2024-11-11T12:38:28.595Z","updated_at":"2026-04-25T22:31:16.445Z","avatar_url":"https://github.com/maherzaidoune.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Banque C# Project\nthis program was created as a essths c# project\na simple banking project written in **c#** using visual studio 2015,use it as a blueprint for your projects development \nthis an oop project\n\n*code Exemple :*\n\ncode from dbManip class (data base manipulation)\n\n```\npublic int verifConnection(String user,String pass)\n        {\n            //dbManip db = new dbManip();\n            SqlCommand cmd = new SqlCommand(\"Select Count(*) from admin where userid = @username and pass = @password\", getConnection());\n            cmd.Parameters.AddWithValue(\"@username\", user);\n            cmd.Parameters.AddWithValue(\"@password\", pass);\n            openConnection();\n            //MessageBox.Show(userField.Text + password.Text);\n            int result = (int)cmd.ExecuteScalar();\n            closeConnection();\n            return result;\n        }\n```\n\ncode from Withdraw class \n\n```\nprivate void withdrawW_Click(object sender, EventArgs e)\n        {\n            \n            dbManip db = new dbManip();\n            try\n            {\n                float a = float.Parse(amountW.Text);\n                int id = int.Parse(idW.Text);\n            \n            if (float.Parse(amountW.Text) \u003c db.getBalance(id))\n            {\n                db.withdraw(float.Parse(amountW.Text), id);\n                MessageBox.Show(\"Withdraw \" + amountW.Text + \" !\");\n            }else\n            {\n                MessageBox.Show(\"Insufficient Funds\");\n            }\n            }\n            catch (Exception ex) { MessageBox.Show(\"Enter a valid amount\"); }\n        }\n```\nadd data base files [here](https://github.com/maherzaidoune/BanqueC-Project/blob/master/Banque/bdb.mdf) and [here](https://github.com/maherzaidoune/BanqueC-Project/blob/master/Banque/bdb_log.ldf) to the project directory and change dbManip constructor with your dirctory \nc:\\users\\user\\documents\\visual studio 2015\\Projects\\Banque\\Banque\\bdb.mdf to yourDirectory/bdb.mdf here :\n```\npublic dbManip()\n        {\n            connection = new SqlConnection(@\"Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=c:\\users\\user\\documents\\visual studio 2015\\Projects\\Banque\\Banque\\bdb.mdf;Integrated Security=True\");\n        }\n   ```     \n   or create your own data base and name it **bdb** with 2 table : admin and \n   ```\n   CREATE TABLE [dbo].[admin] (\n    [userid] VARCHAR (50) NOT NULL,\n    [pass]   VARCHAR (50) NOT NULL,\n    CONSTRAINT [PK_admin] PRIMARY KEY CLUSTERED ([userid] ASC)\n);\n   ```\n   ```\n   CREATE TABLE [dbo].[client] (\n    [Id]       INT          NOT NULL,\n    [name]     VARCHAR (50) NULL,\n    [lastName] VARCHAR (50) NULL,\n    [phone]    VARCHAR (50) NULL,\n    [NCI]      INT          NULL,\n    [balance]  FLOAT (53)   NULL,\n    CONSTRAINT [PK_client] PRIMARY KEY CLUSTERED ([Id] ASC)\n);\n   ```\n   and refer to it in the dbManip constructor\n   \nuser name and password to use on testing :\n\n**user maher** ||\n**pass 12346**\n\nwhen you add a new customer , the ID is automatically generated and copied to BanqueC-Project/Banque/info.txt \nuse that id to access to the account later\n        \n        \n[Download it from here](https://github.com/maherzaidoune/BanqueC-Project/blob/master/Banque.exe)\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaherzaidoune%2Fbanquec-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaherzaidoune%2Fbanquec-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaherzaidoune%2Fbanquec-project/lists"}