示例#1
0
        public static async Task <ViewWardsForm> CreateAsyncViewWardsForm()
        {
            ViewWardsForm form = new ViewWardsForm();
            await form.InitializeAsync();

            return(form);
        }
示例#2
0
        private async void ViewWardBtn_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ViewWardsForm form = await ViewWardsForm.CreateAsyncViewWardsForm();

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