示例#1
0
 private async void FormLoaded(object sender, EventArgs e)
 {
     await PerformAction(async() =>
     {
         FrameworkChecker.CheckFrameworkValid();
         await Connect();
         dataGridView.Sort(dataGridName, ListSortDirection.Ascending);
     });
 }
示例#2
0
        private async void FormLoaded(object sender, EventArgs e)
        {
            await PerformAction(async() =>
            {
                FrameworkChecker.CheckFrameworkValid();
                await Connect();
                dataGridView.Sort(dataGridName, ListSortDirection.Ascending);
            });

            // UX: To make it easy to start searching as soon as you launch.
            this.toolStripFilterBox.Focus();
        }