예제 #1
0
        private void OnDetails_Click(PkKiteUpdateEventArgs e)
        {
            PkKiteUpdateHandler handler = this.KiteDetail_Click;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #2
0
        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);
                }
            }
        }
예제 #3
0
        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);
        }
예제 #4
0
        private void OnDetails_Click(PkKiteUpdateEventArgs e)
        {
            PkKiteUpdateHandler handler = this.KiteDetail_Click;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #5
0
        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);
        }
예제 #6
0
        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);
                }
            }
        }