public static async Task <ViewAdmissionsForm> CreateAsyncViewAdmissionsForm()
        {
            ViewAdmissionsForm form = new ViewAdmissionsForm();
            await form.InitializeAsync();

            return(form);
        }
Esempio n. 2
0
        private async void ViewAddmitionBtn_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ViewAdmissionsForm form = await ViewAdmissionsForm.CreateAsyncViewAdmissionsForm();

                form.ShowDialog();
            }
            catch (Exception) { }
        }