コード例 #1
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();
 }
コード例 #2
0
ファイル: ShowPictureForm.cs プロジェクト: aelhadi/opencbs
 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();
 }
コード例 #3
0
 public void InitializeVillageForm(Village village)
 {
     NonSolidaryGroupForm frm = new NonSolidaryGroupForm(village) { MdiParent = this };
     frm.Show();
 }
コード例 #4
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;
             }
     }
 }
コード例 #5
0
 private void OnNewNonSolidairtyGroupLinkLabelLinkClick(object sender, LinkLabelLinkClickedEventArgs e)
 {
     var form = new NonSolidaryGroupForm { MdiParent = Application.OpenForms[0] };
     form.Show();
 }
コード例 #6
0
ファイル: MainView.cs プロジェクト: fdrgnmx/opencbs
 public void InitializeVillageForm(Village village)
 {
     NonSolidaryGroupForm frm = new NonSolidaryGroupForm(village, _applicationController) { MdiParent = this };
     frm.Show();
 }
コード例 #7
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, ExtensionActivator);
         form.ShowDialog();
     }
     else if (client is Village)
     {
         NonSolidaryGroupForm form = new NonSolidaryGroupForm((Village)client, ExtensionActivator);
         form.ShowDialog();
     }
 }
コード例 #8
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);
                form.ShowDialog();
            }
        }
コード例 #9
0
 public VillageAddSavingsForm(Village village, ISavingProduct product, NonSolidaryGroupForm nsgForm)
 {
     _village = village;
     _product = product;
     _nsgForm = nsgForm;
     InitializeComponent();
     InitializeControls();
 }
コード例 #10
0
 public void InitializeVillageForm()
 {
     NonSolidaryGroupForm frm = new NonSolidaryGroupForm(_extensionActivator) { MdiParent = this };
     frm.Show();
 }