public void Print(PackageComponent PrintComponent)
 {
     if (!SaveMe() || (IsClass2 && !Validate()))
     {
         return;
     }
     TaxForm.Print(PrintComponent, GUID);
 }
        static public TaxForm NewNF2(TransactionList ParentTransactionList, string SponsorGUID, string SponsorName,
                                     string AuthorizedDependentClientGUID, string AuthorizedDependentName)
        {
            TaxFormPackage pkg = new TaxFormPackage(
                ParentTransactionList: ParentTransactionList,
                IsPending: true,
                SponsorGUID: SponsorGUID,
                AuthorizedDependentClientGUID: AuthorizedDependentClientGUID,
                FormType: FormType.NF2, Qty: 1);

            TaxForm frm = Lookup <TaxForm>(Guid.Empty.ToString()); //empty guid triggers new form logic in sproc

            frm.ParentPackage                 = pkg;
            frm.Fields["SponsorGUID"]         = SponsorGUID;
            frm.Fields["SponsorName"]         = SponsorName;
            frm.Fields["AuthorizedDependent"] = AuthorizedDependentName;

            return(frm);
        }
            public void Execute()
            {
                Assert.Check(GUID == null, String.Format("Invalid: Attempting to re-create a Package that's already been initialzed in the DB. [PacakgeCode: {0}]", PackageCode));

                using (iTRAACProc TaxFormPackage_New = new iTRAACProc("TaxFormPackage_New"))
                {
                    TaxFormPackage_New["@FormTypeID"]  = Convert.ToInt32(FormType);
                    TaxFormPackage_New["@FormCount"]   = Qty;
                    TaxFormPackage_New["@SponsorGUID"] = SponsorGUID;
                    TaxFormPackage_New["@ClientGUID"]  = AuthorizedDependentClientGUID;
                    TaxFormPackage_New["@Pending"]     = IsPending;

                    TaxFormPackage_New.ExecuteNonQuery();

                    this.Price       = (decimal)TaxFormPackage_New["@ServiceFee"];
                    this.GUID        = TaxFormPackage_New["@TaxFormPackageGUID"].ToString();
                    this.PackageCode = TaxFormPackage_New["@PackageCode"].ToString();
                }

                TaxForm.FormStatusChangeCallback(SponsorGUID);
            }