public void Initialize(RFForm args)
        {
            CultureInfo invariantCulture = CultureInfo.InvariantCulture;

            if (!(args is frmGetProduct))
            {
                return;
            }
            this.m_Form   = (frmGetProduct)args;
            this.m_Parent = (frmReceipt)args.Parent;
            this.con      = DBConnection.Open(m_Form);
            if (this.m_Form.Parent != null && string.Compare(this.m_Form.Parent.GetType().ToString().ToLower(invariantCulture), "Mantis.LVision.rfReceipt.frmReceipt".ToLower(invariantCulture), false) == 0)
            {
                ReceiptCode = m_Parent.txtReceiptCode.Value.ToString();
                this.m_Form.txtProduct.Validating += new OnValidationEventHandler(this.txtProduct_Validating);

                this.m_bReadOnlyMultiplier       = true;
                this.m_Form.txtMultiplier.Enter += new OnEnterEventHandler(this.txtMultiplier_Enter);
            }
        }
        /*public void Forms_frmEmpty_Validating (object sender, OnValidatingEventArgs e)
         * {
         *      string any = "";
         *
         * }*/
        public void Initialize(RFForm args)
        {
            CultureInfo invariantCulture = CultureInfo.InvariantCulture;

            if (!(args is Forms.frmEmpty))
            {
                return;
            }
            m_EmptyForm = (Forms.frmEmpty)args;


            /*only if current form i Set27IAUpdate.xml*/
            if (m_EmptyForm.FormFile != null &&          /*&& string.Compare(m_EmptyForm.FormFile.ToString(), "Set27IAUpdate.xml", true) == 0*/
                m_EmptyForm.FormFile.ToString().ToLower(invariantCulture).EndsWith("Set27IAUpdate.xml".ToLower(invariantCulture)))
            {
                {
                    /*only if we have parent of parent and it is frmGetProduct: Set27IAUpdate->Set26IASet->frmGetProduct*/
                    if (m_EmptyForm.Parent.Parent != null && string.Compare(m_EmptyForm.Parent.Parent.GetType().ToString().ToLower(invariantCulture), "Mantis.LVision.RFProduct.frmGetProduct".ToLower(invariantCulture), false) == 0)
                    {
                        m_ParentGetProduct = (frmGetProduct)m_EmptyForm.Parent.Parent;
                        Mantis.LVision.RFApi.RFControlText Control_C_PrdID = GetControlByName("ProductID");
                        if (Control_C_PrdID != null)
                        {
                            /*set C_PrdID value equal ProductID entered in frmGetProduct*/
                            Control_C_PrdID.Value         = m_ParentGetProduct.txtProduct.ProductID.ToString();
                            Control_C_PrdID.OriginalValue = m_ParentGetProduct.txtProduct.ProductID.ToString();
                        }
                    }
                }
            }
            /*if Set22IAProductSelect*/
            if (m_EmptyForm.FormFile != null && m_EmptyForm.FormFile.ToString().ToLower(invariantCulture).EndsWith("Set22IAProductSelect.xml".ToLower(invariantCulture)))
            {
                RFControlText Control_C_PrdID = GetControlByName("C_PrdID");
                if (Control_C_PrdID != null)
                {
                    Control_C_PrdID.Validating += new OnValidationEventHandler(this.Control_C_PrdID_Validating);
                }
                //m_EmptyForm.Validating += new OnValidatingEventHandler(this.Forms_frmEmpty_Validating);
            }
        }
 public void Close(RFForm args)
 {
 }