예제 #1
0
        private void ApplineConfigs()
        {
            this.Closing += MainWindow_Closing;

            NotifyContext <SomeDataContext> notify = new NotifyContext <SomeDataContext>();
            SomeDataContext context = new SomeDataContext()
            {
                FirstName = "Dzmitry",
                LastName  = "Dym"
            };

            this.DataContext       = context;
            notify.Connected      += Notify_Connected;
            notify.Disconnected   += Notify_Disconnected;
            notify.Timeout        += Notify_Timeout;
            notify.Message        += Notify_Message;
            notify.ContextChanges += Notify_ContextChanges;
            notify.Exception      += Notify_Exception;
            line = LineFactory.Launcher <SomeDataContext>(notify, @"..\..\..\Application\bin\Debug\Application.exe", 3000);
        }