private void buttonHistory_Click(object sender, EventArgs e)
        {
            if (grid.CurrentRow.Cells["ProductId"].Value == null)
            {
                return;
            }

            Guid productId = (System.Guid)grid.CurrentRow.Cells["ProductId"].Value;
            var  history   = new ProductHistory(productId);

            history.MdiParent = this.MdiParent;
            Singleton.Instance.CheckForm(history);
            history.Show();
        }
示例#2
0
        private void buttonProductHistory_Click(object sender, EventArgs e)
        {
            Log("buttonProductHistory_Click");

            try {
                Log("buttonProductHistory_Click: ProductId: " + _productContract.Product.ProductId);
                var history = new ProductHistory(_productContract.Product.ProductId);
                history.MdiParent = this.MdiParent;
                CheckForm(history);
                history.Show();
            } catch (Exception ex) {
                Error("buttonProductHistory_Click", ex);
            }
        }