Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     frmShadowLayer p = new frmShadowLayer(UsingForms.PartnerInsert);
     if (chkDolgozok.Checked)
     {
         p.s_PARAM = "D";
     }
     else if (chkTorzs.Checked)
     {
         p.s_PARAM = "T";
     }
     else { p.s_PARAM = "V"; }
     p.param = -1;
     p.ShowDialog();
 }
Ejemplo n.º 2
0
        private void ShowPartner(object sender, EventArgs e)
        {
            switch (SelectMode)
            {
                case PartnerSelectModes.hitelhez:
                    {
                        SelectedPartner = ((PartnerButton)sender).fPARTNER;
                        if (SelectedPartner.HITEL_SZABAD >= neededHitel)
                        {
                            DEFS.DebugLog("Partnernak van hitelkerete:" + SelectedPartner.PARTNER_ID.ToString());
                            DialogResult = DialogResult.OK;
                            this.Close();
                        }
                        else
                        {
                            DEFS.SendInfoMessage("A kiválasztott partnernak nincs elegendő hitelkerete");
                        }

                        break;
                    }
                case PartnerSelectModes.Kedvezmeny:
                    {
                        SelectedPartner = ((PartnerButton)sender).fPARTNER;
                        DialogResult = DialogResult.OK;
                        this.Close();
                        break;
                    }
                case PartnerSelectModes.edit:
                    {
                        frmShadowLayer p = new frmShadowLayer(UsingForms.PartnerInsert);
                        p.param = ((PartnerButton)sender).fPARTNER.PARTNER_ID;
                        p.ShowDialog();

                        break;
                    }
                default:
                    break;
            }
        }