public CheckinsForm OpenCheckinsForm()
        {
            CheckinsForm checkinsForm = new CheckinsForm();

            checkinsForm.LoadingData = true;
            openForm(checkinsForm);

            new Thread(() =>
            {
                // Load checkins:
                Collection <Checkin> checkins = LoggedInUser.Checkins;

                // Invoke UI thread to show the checkins
                checkinsForm.Invoke(new Action(() =>
                                               checkinsForm.Checkins = checkins));
            }).Start();

            return(checkinsForm);
        }
예제 #2
0
        public override void Open(INavigator i_Navigator)
        {
            CheckinsForm checkinsForm = i_Navigator.OpenCheckinsForm();

            checkinsForm.InitialSelectedCheckin = Checkin;
        }