Beispiel #1
0
        private void EditPackage()
        {
            var addPackageForm = new FrmAddLoanProduct(retrieveSelectedPackage());

            addPackageForm.ShowDialog();
            refreshListView();
        }
Beispiel #2
0
        private void addPackage()
        {
            var addPackageForm = new FrmAddLoanProduct();

            addPackageForm.ShowDialog();
            refreshListView();
            ((MainView)MdiParent).SetInfoMessage("Product saved");
        }
        private void SavePackage()
        {
            var addPackageForm = new FrmAddLoanProduct();

            addPackageForm.ShowDialog();
            InitializePackages();
            ((MainView)MdiParent).SetInfoMessage("Product saved");
        }
        public void Package_DoubleClick(object sender, HtmlElementEventArgs e)
        {
            string sID = webBrowserPackage.Document.GetElementFromPoint(e.MousePosition).Id;

            LoanProduct selectedPackage = ServicesProvider.GetInstance().GetProductServices().FindPackage(System.Convert.ToInt32(sID));

            var addPackageForm = new FrmAddLoanProduct(selectedPackage);

            addPackageForm.ShowDialog();
        }
 private void buttonEditProduct_Click(object sender, EventArgs e)
 {
     if (descriptionListView.SelectedItems.Count != 0)
     {
         var addPackageForm = new FrmAddLoanProduct(retrieveSelectedPackage());
         addPackageForm.ShowDialog();
         refreshListView();
     }
     else
     {
         MessageBox.Show(GetString("messageSelection.Text"),
                         GetString("title.Text"),
                         MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
        private void buttonEditProduct_Click(object sender, EventArgs e)
        {
            if (PackageFormId != 0)
            {
                LoanProduct selectedPackage = ServicesProvider.GetInstance().GetProductServices().FindPackage(PackageFormId);

                var addPackageForm = new FrmAddLoanProduct(selectedPackage);
                addPackageForm.ShowDialog();
            }
            else
            {
                MessageBox.Show(GetString("messageSelection.Text"),
                                GetString("title.Text"),
                                MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
        private void descriptionListView_DoubleClick(object sender, EventArgs e)
        {
            var addPackageForm = new FrmAddLoanProduct(retrieveSelectedPackage());

            addPackageForm.ShowDialog();
        }