Example #1
0
        private void showManageOrderOfPayment()
        {
            frmOrPayManageData f        = frmOrPayManageData.CreateInstance();
            MsgHandler         dbAction = new MsgHandler(f.DbAction);

            showOptions(true);
            modDbAction = dbAction;
            f.MdiParent = this;

            //  f.lvManageRecord.Width = this.Width / 2;
            f.lvManageRecord.Height = this.Height - 295;

            showManaged(f);
            f.manageTopMenu(toolStrip1);
        }
        public static frmOrPayManageData CreateInstance()
        {
            frmOrPayManageData f;
            if (thisForm == null)
            {
                thisForm = new frmOrPayManageData();
            }
            else if (thisForm != new frmOrPayManageData())
            {
                thisForm = new frmOrPayManageData();
            }

            f = (frmOrPayManageData)thisForm;

            return f;
        }
        public static frmOrPayManageData CreateInstance()
        {
            frmOrPayManageData f;

            if (thisForm == null)
            {
                thisForm = new frmOrPayManageData();
            }
            else if (thisForm != new frmOrPayManageData())
            {
                thisForm = new frmOrPayManageData();
            }

            f = (frmOrPayManageData)thisForm;

            return(f);
        }
        //  "show as" functions
        public static void show_asAdd(frmOrPayManageData.MsgHandler msg)
        {
            dbAction = "add";
            modRefreshData = msg;

            frmOrPayDataEntry f = new frmOrPayDataEntry();

            if (studentData != null && checkedItems != null)
            {
                // hide text boxes

                f.tbFirstname.Visible = false;
                f.tbLastname.Visible = false;
                f.tbMiddlename.Visible = false;

            }

            f.showPayor(f);
        }