private void OnDetails_Click(PkKiteUpdateEventArgs e) { PkKiteUpdateHandler handler = this.KiteDetail_Click; if (handler != null) { handler(this, e); } }
private void OnShowDetails_Click(object sender, PkKiteUpdateEventArgs e) { string key = e.Kite.Domain; using (PkKiteDetailsForm detailsForm = new PkKiteDetailsForm()) { detailsForm.setDetails(this.data.Kites[key], this.flying); var result = detailsForm.ShowDialog(); if (result == DialogResult.OK) { this.SaveKite(detailsForm.Kite); } } }
private void kiteDataView_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0 || e.ColumnIndex != this.kiteDataView.Columns["Details"].Index) { return; } string key = this.kiteDataView.Rows[e.RowIndex].Cells["Domain"].Value.ToString(); PkKite kite = new PkKite(); kite.Domain = key; PkKiteUpdateEventArgs args = new PkKiteUpdateEventArgs("details", kite); this.OnDetails_Click(args); }
private void kiteDataView_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0 || e.ColumnIndex != this.kiteDataView.Columns["Details"].Index) return; string key = this.kiteDataView.Rows[e.RowIndex].Cells["Domain"].Value.ToString(); PkKite kite = new PkKite(); kite.Domain = key; PkKiteUpdateEventArgs args = new PkKiteUpdateEventArgs("details", kite); this.OnDetails_Click(args); }