Easy Steps:
1. On
C#.NET create project named:MarioSoft.PhoneBook and create folders and files as
shown below:
2. On
Program.cs write the following code:
using System;
using MarioSoft.PhoneBook.UI;
namespace MarioSoft.PhoneBook
{
class Program
{
static void Main(string[] args)
{
new ContactsUI();
}
}
}
3. On
ContactsUI.cs write the following code:
using System;
namespace MarioSoft.PhoneBook.UI
{
class ContactsUI
{
public ContactsUI() {
CreateUI();
}
private void
CreateUI()
{
menu();
}
private void menu()
{
WriteLine("---Menu---");
WriteLine("1. Add Contact");
WriteLine("2. Edit Contact");
WriteLine("3. Delete Contact");
WriteLine("4. Quit");
Console.ReadKey();
}
private void
WriteLine(string str)
{
Console.WriteLine(str);
}
}
}
4. Put
your code to the test by clicking debug and you will see like this:
5. Perfect!,
nice jobJ

Hi sir..joje here! What about using Win Form App foe this sir..ahhh is it possible sir to insert data but when clicking ADD BUTTON it refreshes too the datagridview?
ReplyDelete