Giter VIP home page Giter VIP logo

doctorsschedule's People

Contributors

charbelsako avatar

doctorsschedule's Issues

Make the database

The database is highly needed for this project to work.
We should finish it first.

Problems faced

Visual Studio Problems

Connecting to the database
The problem turned out to be the version of the .NET framework. Had to download a newer version.

Couldn't figure out how to display the result of the query to the user.
Made a MySqlDataAdapter and filled a DataSet with the data.
MySqlDataAdapter adapter = new MySqlDataAdapter(query, connection);
adapter.Fill(ds, "data");
Then I return the data from the dataset. return ds.Tables["data"] and store that in a DataTable object
DataTable table
and now you can modify the DataSource of a DataGridView and display the data.
dataGridView1.DataSource = table

When a window other than the main window closes the program keeps running.
To solve this I had to add the line
Application.Exit()
in the FormClosed event on the other forms

Database problems

  • Because I was stupid enough to make one table for all users. Professor availability is hard to implement.
    So I'm gonna add a new table for professors
  • Because of the latter complication, we have two unforeseen constraints.
    1. the user has to be of type 'b' (Professor) to exist in the professor absence table and to teach a course.
    2. the user has to be of type 'a' (Student) to register in a course.

Questions

  1. If I have an intermediary table are both foreign keys primary? If so how do I determine that?

Make a signup page?

A signup page for no reason.
Or a register new user page that only the registrar sees. That sounds better

Enhancements?

Better way to switch windows.
I don't have to hide the first form.

Better way to logout.
Same idea as above. I pass the main window to a static property of a class to manipulate

Better design for the register form.

Form1.cs Refactor

Now that the database class has been made we can use it in Form1.cs

Make a database class

Should include the following

  • a function to connect to the database
  • a function to run queries. Preferably, 4 to run each type of query. SELECT, DELETE, UPDATE, INSERT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.