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 DisplaySelectedSaving()
 {
     if (listViewSavings.SelectedItems.Count > 0)
     {
         IClient member = (IClient)listViewSavings.SelectedItems[0].Group.Tag;
         if (member != null)
         {
             ClientForm personForm = new ClientForm((Person)member, MdiParent);
             personForm.DisplaySaving(((ISavingsContract)listViewSavings.SelectedItems[0].Tag).Id, member);
             personForm.ShowDialog();
             DisplaySavings();
         }
     }
 }