Esempio n. 1
0
        private void productGridControl_MouseClick(object sender, MouseEventArgs e)
        {
            if (productGridView.RowCount > 0)
            {
                btnSave.Enabled = true;
                try
                {
                    lblProductName.Text = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["ProductName"]);
                    Param.product       = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["Product"]);

                    if (Param.status == "Return")
                    {
                        FmReturnSell frm    = new FmReturnSell();
                        var          result = frm.ShowDialog(this);
                        if (result == System.Windows.Forms.DialogResult.OK)
                        {
                        }
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                }
            }
        }
Esempio n. 2
0
 private void FmProductQty_Load(object sender, EventArgs e)
 {
     if (Param.status == "Return")
     {
         FmReturnSell frm    = new FmReturnSell();
         var          result = frm.ShowDialog(this);
         if (result == System.Windows.Forms.DialogResult.OK)
         {
         }
     }
 }
Esempio n. 3
0
        private void productGridControl_MouseClick(object sender, MouseEventArgs e)
        {
            if (productGridView.RowCount > 0)
            {
                btnSave.Enabled = true;
                try
                {
                    lblProductName.Text = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["ProductName"]);
                    Param.product = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["Product"]);

                    if (Param.status == "Return")
                    {
                        FmReturnSell frm = new FmReturnSell();
                        var result = frm.ShowDialog(this);
                        if (result == System.Windows.Forms.DialogResult.OK)
                        {

                        }
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                }
            }
        }
Esempio n. 4
0
        private void FmProductQty_Load(object sender, EventArgs e)
        {
            if (Param.status == "Return")
            {
                FmReturnSell frm = new FmReturnSell();
                var result = frm.ShowDialog(this);
                if (result == System.Windows.Forms.DialogResult.OK)
                {

                }
            }
        }