コード例 #1
0
        /// <summary>
        /// 적용 버튼 클릭 이벤트
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            products           = new Products();
            products.Pro_No    = Int32.Parse(dgvProInfo.SelectedRows[0].Cells[0].Value.ToString());
            products.Mat_No    = Int32.Parse(dgvProInfo.SelectedRows[0].Cells[1].Value.ToString());
            products.Pro_Price = Int32.Parse(dgvProInfo.SelectedRows[0].Cells[2].Value.ToString());
            products.Pro_Name  = dgvProInfo.SelectedRows[0].Cells[3].Value.ToString();

            FrmBomMatEstimating fbme = (FrmBomMatEstimating)Owner;

            fbme.Products = this.products;
            fbme.CanOrAdd = true;
            this.Close();
        }
コード例 #2
0
ファイル: Test.cs プロジェクト: prowonseok/BOMProject
        /// <summary>
        /// 소요량 예측 페이지로 이동
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnMatEstimating_Click(object sender, EventArgs e)
        {
            FrmBomMatEstimating fme = new FrmBomMatEstimating();

            fme.ShowDialog();
        }