Пример #1
0
        private void ShowDatabaseLoading()
        {
            var control = new LoadingControl();

            control.Canceled   += (m) => ShowFileSelection();
            control.FileLoaded += ShowData;
            MainContent         = control;
            control.LoadFromDatabase();
        }
Пример #2
0
        private void ShowLoading(string fileName)
        {
            var control = new LoadingControl();

            control.Canceled   += (m) => ShowFileSelection();
            control.FileLoaded += ShowData;
            MainContent         = control;
            control.LoadFile(fileName);
        }