Exemplo n.º 1
0
        private void pnl_add_Click(object sender, EventArgs e)
        {
            var frm = new AdEdit();

            frm.ShowDialog();
            pageChanged();
        }
Exemplo n.º 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();
            }
        }