예제 #1
0
        //================================================================================================================================================//
        // NEW INVOICE SEND CLICK                                                                                                                         //
        //================================================================================================================================================//
        private void Btn_IIS_NewIS_Click(object sender, EventArgs e)
        {
            if (isFiltered)
            {
                RemoveFilter();
            }

            using (Inv_Send_Add frmISA = new Inv_Send_Add())
                frmISA.ShowDialog(this);

            LoadInvSend();

            if (send == null)
            {
                foreach (DataGridViewRow row in dgv_IInvSent.Rows)
                {
                    if (row.Cells[1].Value.ToString().Equals(NEW_INVOICE))
                    {
                        SELECTED_INVSEND = row.Index;
                        break;
                    }
                }
                using (Inv_Send_Edit_DelOld frmISED = new Inv_Send_Edit_DelOld())
                {
                    frmISED.ShowDialog(this);
                }
                LoadInvSend();
            }
            else
            {
                send = null;
            }
        }
예제 #2
0
        //================================================================================================================================================//
        // DATAGRIDVIEW CELL DOUBLECLICK                                                                                                                  //
        //================================================================================================================================================//
        private void Dgv_IInvSent_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (isFiltered)
            {
                RemoveFilter();
            }

            SELECTED_INVSEND = e.RowIndex;

            using (Inv_Send_Edit_DelOld frmISED = new Inv_Send_Edit_DelOld())
                frmISED.ShowDialog(this);

            LoadInvSend();
        }