Beispiel #1
0
        private void tslPayment_Click(object sender, EventArgs e)
        {
            bool IsOpen   = false;
            int  tabcount = 0;

            foreach (Form f in Application.OpenForms)
            {
                if (f.Text == "Purchase Payment")
                {
                    tabForms.SelectedTab = tabForms.TabPages[tabcount - 2];
                    IsOpen = true;
                    f.Focus();
                    break;
                }
                tabcount++;
            }



            if (IsOpen == false)
            {
                frmPayment frm = new frmPayment();
                frm.FormBorderStyle  = FormBorderStyle.None;
                frm.StartPosition    = FormStartPosition.Manual;
                frm.Location         = new Point((this.Width - frm.Width) / 2, this.Location.Y + (this.Height - frm.Height) / 2);
                this.pnlMain.Visible = false;
                frm.MdiParent        = this;

                frm.Show();
            }
        }
Beispiel #2
0
        public void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
        {
            BubbleEvent = true;
            try
            {
                if (pVal.BeforeAction && pVal.MenuUID == "UGRS.AddOn.Auctions.frmPayment")
                {
                    //if (!FormExists("Pymnt"))
                    //{
                    frmPayment activeForm = new frmPayment();
                    activeForm.UIAPIRawForm.Left = 500;
                    activeForm.UIAPIRawForm.Top  = 10;
                    activeForm.Show();
                    //}
                }

                if (pVal.BeforeAction && pVal.MenuUID == "UGRS.AddOn.Auctions.Forms.frmMailSender")
                {
                    if (!FormExists("h1nz1"))
                    {
                        frmMailSender activeForm = new frmMailSender();
                        activeForm.UIAPIRawForm.Left = 500;
                        activeForm.UIAPIRawForm.Top  = 10;
                        activeForm.Show();
                    }
                }
            }
            catch (Exception ex)
            {
                Application.SBO_Application.MessageBox(ex.ToString(), 1, "Ok", "", "");
            }
        }
Beispiel #3
0
 private void addPaymentToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         frmPayment frm  = new frmPayment();
         frmPayment open = Application.OpenForms["frmPayment"] as frmPayment;
         if (open == null)
         {
             frm.MdiParent = this;
             frm.Show();
         }
         else
         {
             open.Activate();
             if (open.WindowState == FormWindowState.Minimized)
             {
                 open.WindowState = FormWindowState.Normal;
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        private void thirdInstallmentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Set payment Installment
            paymentInstallment = "Third Installment";
            paymentAmount      = 70000;
            //Open Form
            frmPayment payment = new frmPayment();

            payment.Show();
        }
Beispiel #5
0
 private void tssPayment_Click(object sender, EventArgs e)
 {
     if (CheckAndLoadSettings())
     {
         frmPayment py = new frmPayment();
         py.MdiParent = this;
         py.DBPath    = DatabasePath;
         py.LoginUser = tssUserlogin.Text;
         py.Show();
     }
 }
Beispiel #6
0
        private void BtnClose_Click(object sender, EventArgs e)
        {
            frmPayment payment = new frmPayment(existingOrder);

            payment.Show();
        }