public CadastroTimeView(TimesListView owner) { InitializeComponent(); this._owner = owner; this.FormClosing += new FormClosingEventHandler(this.OwnerFormPerformRefresh); }
public EditarTimeView(TimesListView owner, string timeID) { InitializeComponent(); this._owner = owner; DB.Times.Load(); int ID; int.TryParse(timeID, out ID); var time = _time = DB.Times.Find(ID); NomeComplexoTextBox.Text = time.NomeCompleto; NomeTextBox.Text = time.Nome; SiglaTextBox.Text = time.Sigla; this.FormClosing += new FormClosingEventHandler(this.OwnerFormPerformRefresh); }
private void TimesButton_Click(object sender, EventArgs e) { var timesListView = new TimesListView(); timesListView.Show(); }