コード例 #1
0
        private void btn_pc_Click(object sender, EventArgs e)
        {
            PCAdEdit ad = new PCAdEdit();

            ad.ShowDialog();
            this.btn_first_Click(btn_first, null);
        }
コード例 #2
0
        private void btn_edit_Click(object sender, EventArgs e)
        {
            var row = this.dg_data.CurrentRow();

            if (row != null)
            {
                var ad_id = row["ad_id"].ToString();
                if (row["ad_type"].ToString() == "1")
                {
                    var frm = new PCAdEdit(ad_id);
                    frm.ShowDialog();
                }
                else
                {
                    var frm = new AdEdit(ad_id);
                    frm.ShowDialog();
                }
                pageChanged();
            }
        }