Can anyone help me to make a calendar planner in c# console. Please.

12/26/2014 05:40 allenborgie#1
Guys i need a program in c# for our project and i dont know how to do it. My professor said make a calendar planner that when you click the date you can input an event and save it to that date please someone who is kind please help me because if i failed to pass it i will fail again please guys. it would be a big help for me.
12/26/2014 15:22 Mostey#2
What exactly do you expect from us? One is for sure: If you expect something trivial such as "Click the button called Magic that is performing the Magic.DoMagic() method and your software will be delivered to you within the next few hours by your local packet logistic company", I will terribly disappoint you.

Step 1: Learn the basics of C# (and .NET in general)
Step 2: Setup a database (either use a virtual machine, get your own server or host your database locally)
Step 3: While setting up the database, learn about the system you are using and how you can retrieve and write data persistently.
Step 4: Get yourself the driver (connector) that works best with your database system
Step 5: Include the driver in your project (reference it) and follow up with the documentation and their examples to establish the connection and learn about how to perform queries.
Step 6: Implement your user interface and connect the logic of your exercise with persistent storage (using the driver)

If the mentioned steps above seem to be to hard or to expensive (in terms of time) for you, you will probably fail the test. To be completely honest: The fact that you didn't put any effort into this project (by researching via google or anything like that) speaks for itself.
12/26/2014 17:30 Black Tiger ツ#3
That is something you can do in 5minutes, but...

.. I believe that you are not allowed to use any date or calender classes and have to write it on your own, right? Are you allowed to use dynamic structures (lists, dictionaries, ...)? I think that this is not allowed, too.

Models:
1. Make a class called Appointment

Appointment consists of:
String Title
Object Date
Object Time
String Description

2. Make the Date class

Date consists of:
int (or byte) Day
int (or byte) Month
int Year
Optional:
String DayOfTheWeek
int (or byte) NumberOfTheWeek

3. Make the Time class

Time consists of:
int (or byte) Hour
int (or byte) Minute

4. If you are not allowed to use dynamic structures:
AppointmentList
Consists of:

Appointment[] List
with the methods:

Add(Appointment)
Add(int id, Appointment)
Remove(int id)
Optional:
Sort()

Controller:

KeyboardController with ReadString, ReadInt, (ReadByte), GetNewAppointment
IOController with Load, Save, Edit, Delete, Display (which makes your Model to a ViewModel, but I think that this ok for your prof), (SortAscending), (SortDescending), (ExportToCsv)

Views:
Main - Display a menu and uses controllers to get shit done.
12/27/2014 00:32 snow#4
Sorry, we're not here to do your homework / assignments, I'm sure your professor has shown everything you'd need for successful completion in their lectures.
Feel free to create threads if you have any specific questions.

#closed