예제 #1
0
        private void skinButton12_Click(object sender, EventArgs e)
        {
            ActionProductCtr addProductCtr = new ActionProductCtr(ActoinType.add);

            addProductCtr.StartPosition = FormStartPosition.CenterScreen;
            addProductCtr.Text          = "增加产品";
            addProductCtr.Icon          = this.Icon;
            addProductCtr.ShowDialog();
        }
예제 #2
0
        private void skinButton5_Click(object sender, EventArgs e)
        {
            ActionProductCtr addProductCtr = new ActionProductCtr(ActoinType.modify);

            addProductCtr.StartPosition = FormStartPosition.CenterScreen;
            addProductCtr.Text          = "修改产品";
            addProductCtr.Icon          = this.Icon;

            DataGridViewRow gridViewRow = product_grid.CurrentRow;

            addProductCtr.SetGoodTextValue(Goods[gridViewRow.Index]);

            addProductCtr.ShowDialog();
        }