Ejemplo n.º 1
0
        private void OnNewNonSolidairtyGroupLinkLabelLinkClick(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var form = new NonSolidaryGroupForm {
                MdiParent = Application.OpenForms[0]
            };

            form.Show();
        }
Ejemplo n.º 2
0
        public void InitializeVillageForm()
        {
            NonSolidaryGroupForm frm = new NonSolidaryGroupForm {
                MdiParent = this
            };

            frm.Show();
        }
Ejemplo n.º 3
0
 public VillageAddSavingsForm(Village village, ISavingProduct product, NonSolidaryGroupForm nsgForm)
 {
     _village = village;
     _product = product;
     _nsgForm = nsgForm;
     InitializeComponent();
     InitializeControls();
 }
Ejemplo n.º 4
0
        public void InitializeVillageForm(Village village)
        {
            NonSolidaryGroupForm frm = new NonSolidaryGroupForm(village, _applicationController)
            {
                MdiParent = this
            };

            frm.Show();
        }
Ejemplo n.º 5
0
 public VillageAddLoanForm(Village village, LoanProduct product, NonSolidaryGroupForm nsgForm)
 {
     _village           = village;
     _product           = product;
     _nsgForm           = nsgForm;
     _product.EntryFees = ServicesProvider.GetInstance().GetProductServices().GetProductEntryFees(_product, village);
     _fLServices        = new FundingLineServices(User.CurrentUser);
     _accumulatedAmount = 0;
     InitializeComponent();
     InitializeControls();
 }
Ejemplo n.º 6
0
 public ShowPictureForm(Village village, NonSolidaryGroupForm villageForm, int photoSubId)
 {
     InitializeComponent();
     CaptionText            = MultiLanguageStrings.GetString(Ressource.ClientForm, "NonSolidaryGroup") + ": " + village.Name;
     this.villageForm       = villageForm;
     this.village           = village;
     this.photoSubId        = photoSubId;
     addPhotoButton.Text    = MultiLanguageStrings.GetString(Ressource.ShowPictureForm, "captionAdd.Text");
     changePhotoButton.Text = MultiLanguageStrings.GetString(Ressource.ShowPictureForm, "captionChange.Text");
     ShowPicture();
     InitializeButtons();
 }
Ejemplo n.º 7
0
        public void InitializeSavingContractForm(IClient client, int savingId)
        {
            switch (client.Type)
            {
            case OClientTypes.Person:
            {
                var personForm = new ClientForm((Person)client, this)
                {
                    MdiParent = this,
                    Text      = string.Format("{0} [{1}]", MultiLanguageStrings.GetString(
                                                  Ressource.ClientForm, "Person.Text"),
                                              ((Person)client).Name)
                };
                personForm.DisplaySaving(savingId, client);
                personForm.Show();
                break;
            }

            case OClientTypes.Group:
            {
                var personForm = new ClientForm((Group)client, this)
                {
                    MdiParent = this,
                    Text      = string.Format("{0} [{1}]", MultiLanguageStrings.GetString(Ressource.ClientForm, "Group.Text"), ((Group)client).Name)
                };
                personForm.DisplaySaving(savingId, client);
                personForm.Show();
                break;
            }

            case OClientTypes.Village:
            {
                var frm = new NonSolidaryGroupForm((Village)client)
                {
                    MdiParent = this
                };
                frm.Show();
                break;
            }

            case OClientTypes.Corporate:
            {
                var corporateForm = new ClientForm((Corporate)client, this)
                {
                    MdiParent = this
                };
                corporateForm.DisplaySaving(savingId, client);
                corporateForm.Show();
                break;
            }
            }
        }
Ejemplo n.º 8
0
        private void listViewGroup_DoubleClick(object sender, EventArgs e)
        {
            IClient client = (IClient)listViewGroup.SelectedItems[0].Tag;

            client = ServicesProvider.GetInstance().GetClientServices().FindTiers(client.Id, client.Type);
            if (client is Group)
            {
                ClientForm form = new ClientForm((Group)client, _mdiParent);
                form.ShowDialog();
            }
            else if (client is Village)
            {
                NonSolidaryGroupForm form = new NonSolidaryGroupForm((Village)client);
                form.ShowDialog();
            }
        }
Ejemplo n.º 9
0
        private void listViewGroup_DoubleClick(object sender, EventArgs e)
        {
            var data       = (object[])listViewGroup.SelectedItems[0].Tag;
            var clientId   = (int)data[0];
            var clientType = (OClientTypes)data[1];

            var client = ServicesProvider.GetInstance().GetClientServices().FindTiers(clientId, clientType);

            if (client is Group)
            {
                var form = new ClientForm((Group)client, _mdiParent);
                form.ShowDialog();
            }
            else if (client is Village)
            {
                var form = new NonSolidaryGroupForm((Village)client, _applicationController);
                form.ShowDialog();
            }
        }