Beispiel #1
0
 public PathForm(IApplication app, TravelEventFormFactory travelEventFormFactory) :
     base(app.UserSessionHandler.CurrentTravelEvents.GetItems, () => app)
 {
     this.app = app;
     this.travelEventFormFactory = travelEventFormFactory;
     Size = new Size(800, 600);
     Text = "События";
 }
Beispiel #2
0
        static void Main()
        {
            var application            = GetApplication();
            var travelEventFormFactory = new TravelEventFormFactory(application);

            System.Windows.Forms.Application.EnableVisualStyles();
            System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
            System.Windows.Forms.Application.Run(new ApplicationForm(application,
                                                                     () => new PathForm(application, travelEventFormFactory),
                                                                     s => new EnterForm(s)));
        }