private void ActionAnalyse_Click(object sender, EventArgs e) { DoAnalyse(); if (IsResultValid) { DataGridView.Focus(); } else { EditSource.Focus(); } ActionOK.Enabled = IsResultValid; }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new EditSource(this); source.Root.Add(_fileSection, new Section { _addFileElement }, new Section("Details") { _publicElement, _descriptionElement }); TableView.Source = source; TableView.TableFooterView = new UIView(); }