Exemplo n.º 1
0
 private void txt_State_Click(object sender, EventArgs e)
 {
     View.TradeManagement.Frm_ModifyTrade form = new View.TradeManagement.Frm_ModifyTrade(trade);
     form.ShowDialog();
     Setting();
     frmDashBoard.TradeListShow();
 }
Exemplo n.º 2
0
        /// <summary>
        /// 그리드뷰 셀 더블클릭 이벤트, 해당 ROW의 수정폼을 띄운다
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gViewTrade_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex > -1)
            {
                foreach (var item in trades)
                {
                    if (item.Trade_code == gViewTrade.Rows[e.RowIndex].Cells["code"].Value.ToString())
                    {
                        if (rdo_sell.Checked)
                        {
                            item.Trade_standard = rdo_sell.Text;
                        }
                        else
                        {
                            item.Trade_standard = rdo_buy.Text;
                        }

                        Frm_ModifyTrade frm = new Frm_ModifyTrade(item);
                        if (frm.ShowDialog() != DialogResult.Cancel)
                        {
                            GViewSetData();
                        }
                        break;
                    }
                }
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// 셀 더블클릭이벤트, 거래수정폼을 띄운다.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gViewTrade_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex > -1 && e.ColumnIndex != 8)
     {
         foreach (var item in trades)
         {
             if (item.Trade_code == gViewTrade.Rows[e.RowIndex].Cells["trade_code"].Value.ToString())
             {
                 Frm_ModifyTrade frm = new Frm_ModifyTrade(item);
                 if (frm.ShowDialog() != DialogResult.Cancel)
                 {
                     GViewSetData();
                 }
                 break;
             }
         }
     }
 }