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(); }
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(); }
public void InitializeVillageForm(Village village) { NonSolidaryGroupForm frm = new NonSolidaryGroupForm(village) { MdiParent = this }; frm.Show(); }
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; } } }
private void OnNewNonSolidairtyGroupLinkLabelLinkClick(object sender, LinkLabelLinkClickedEventArgs e) { var form = new NonSolidaryGroupForm { MdiParent = Application.OpenForms[0] }; form.Show(); }
public void InitializeVillageForm(Village village) { NonSolidaryGroupForm frm = new NonSolidaryGroupForm(village, _applicationController) { MdiParent = this }; frm.Show(); }
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, ExtensionActivator); form.ShowDialog(); } else if (client is Village) { NonSolidaryGroupForm form = new NonSolidaryGroupForm((Village)client, ExtensionActivator); form.ShowDialog(); } }
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); form.ShowDialog(); } }
public VillageAddSavingsForm(Village village, ISavingProduct product, NonSolidaryGroupForm nsgForm) { _village = village; _product = product; _nsgForm = nsgForm; InitializeComponent(); InitializeControls(); }
public void InitializeVillageForm() { NonSolidaryGroupForm frm = new NonSolidaryGroupForm(_extensionActivator) { MdiParent = this }; frm.Show(); }