Пример #1
0
        private void SwitchToTheMainApplication(IClosableScreen thisLoginScreen, Person connectedUser)
        {
            ApplicationMainWindow appMainWindow = new ApplicationMainWindow();
            ApplicationViewModel  context       = new ApplicationViewModel(connectedUser, _messageBoxService);

            appMainWindow.DataContext = context;
            appMainWindow.Show();

            // Close this Login Window
            thisLoginScreen.CloseScreen();
        }
Пример #2
0
        public static void Main(string[] args)
        {
            Application.Init();

            var app = new Application("org.athene.athene", GLib.ApplicationFlags.None);

            app.Register(GLib.Cancellable.Current);

            //ClearDb();
            // todo right click menu in treeview

            var win = new ApplicationMainWindow();

            app.AddWindow(win);

            win.DeleteEvent += delegate { Application.Quit(); };

            win.Show();
            Application.Run();
        }