34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
|
using AppLogic;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.Windows.Forms;
|
|||
|
|
|||
|
namespace Tutorial_4
|
|||
|
{
|
|||
|
static class Program
|
|||
|
{
|
|||
|
public static List<IStoreFront> storeFronts;
|
|||
|
/// <summary>
|
|||
|
/// The main entry point for the application.
|
|||
|
/// </summary>
|
|||
|
[STAThread]
|
|||
|
static void Main()
|
|||
|
{
|
|||
|
// These could be fed via file
|
|||
|
storeFronts = new List<IStoreFront>();
|
|||
|
string[] days = new string[] { "Monday", "Tuesday" };
|
|||
|
TimeSpan[] times = new TimeSpan[] { TimeSpan.FromHours(7), TimeSpan.FromHours(8).Add(TimeSpan.FromMinutes(30)) };
|
|||
|
|
|||
|
storeFronts.Add(new VTNZ_StoreFront("VTNZ Albany", "21 Albany Highway", "099900999", days, times));
|
|||
|
storeFronts.Add(new CompetitorStoreFront("Other Competitor", "22 Albany Highway", "099900990", days, times));
|
|||
|
|
|||
|
Application.EnableVisualStyles();
|
|||
|
Application.SetCompatibleTextRenderingDefault(false);
|
|||
|
Application.Run(new Form1());
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|