private async void FormLoaded(object sender, EventArgs e) { await PerformAction(async() => { FrameworkChecker.CheckFrameworkValid(); await Connect(); dataGridView.Sort(dataGridName, ListSortDirection.Ascending); }); }
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(); }