public void Dispose() { _extActivator.Dispose(); _extActivator = null; AppDomain.Unload(_appdomain); _appdomain = null; }
public CorporateUserControl(Corporate corporate, Form pMdiParent, IExtensionActivator extensionActivator) : base(extensionActivator) { _mdifrom = pMdiParent; _corporate = corporate; _fundingLine = null; InitializeComponent(); InitializeUserControlsAddress(); InitializeCorporate(); PicturesServices ps = ServicesProvider.GetInstance().GetPicturesServices(); if (ps.IsEnabled()) { pictureBox1.Image = ps.GetPicture("CORPORATE", corporate.Id, true, 0); pictureBox1.SizeMode = PictureBoxSizeMode.Zoom; pictureBox2.Image = ps.GetPicture("CORPORATE", corporate.Id, true, 1); pictureBox2.SizeMode = PictureBoxSizeMode.Zoom; } else { pictureBox1.Visible = false; pictureBox2.Visible = false; linkLabelChangePhoto.Visible = false; linkLabelChangePhoto2.Visible = false; } InitializeCustomizableFields(_corporate.Id); }
public AddGuarantorForm(Form pMdiParent, Currency tcode, IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; _mdiParent = pMdiParent; _guarantor = new Guarantor(); _guarantor.Amount = 0; code = tcode; Initialization(); }
public NonSolidaryGroupForm(IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; if (_extensionActivator != null) _extensionActivator.Execute(this); InitializeComponent(); _village = new Village {CreationDate = TimeProvider.Now}; InitializeControls(); InitializeCustomizableFields(null); InitializeTitle(); }
public SafeExtensionLoader(string extensionsBaseDir, string subdirName, string parentProcessID, CancellationTokenSource tokenSrc) { _tokenSrc = tokenSrc; _extensionsPath = Path.Combine(extensionsBaseDir, subdirName); var setup = new AppDomainSetup { ApplicationBase = _extensionsPath, PrivateBinPath = _extensionsPath, ShadowCopyFiles = "true", ShadowCopyDirectories = _extensionsPath }; _appdomain = AppDomain.CreateDomain("ExtensionDirectoryLoader." + subdirName + "." + Guid.NewGuid(), null, setup); _extActivator = (IExtensionActivator)_appdomain.CreateInstanceAndUnwrap("ServerX.Common", "ServerX.Common.ExtensionActivator"); _extActivator.Init(subdirName, parentProcessID); }
public ToolStripMenuItem GetItem(IExtensionActivator extensionActivator) { if (extensionActivator != null) extensionActivator.Execute(this); var result = new ToolStripMenuItem { Text = "TEST " }; result.Click += (sender, args) => { if (GetConnection != null) { var connection = GetConnection(); MessageBox.Show(connection.ConnectionString); } //MessageBox.Show("Hello, this is a test message") }; return result; }
public AddGuarantorForm(Guarantor guarantor, Form pMdiParent, bool isView, Currency tcode, IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; _mdiParent = pMdiParent; _guarantor = guarantor; code = tcode; Initialization(); InitializeGuarantor(); if (isView) { groupBoxName.Enabled = false; groupBoxAmount.Enabled = false; buttonSave.Enabled = false; } }
public NonSolidaryGroupForm(Village village, IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; if (_extensionActivator != null) _extensionActivator.Execute(this); _village = village; foreach (VillageMember member in _village.Members) { member.IsSaved = true; member.ActiveLoans = ServicesProvider.GetInstance().GetContractServices().FindActiveContracts(member.Tiers.Id); } InitializeComponent(); InitializeControls(); LoadMeetingDates(); InitializeCustomizableFields(_village.Id); InitializeTitle(); }
public PersonUserControl(Person person, Form pMdiParent, IExtensionActivator extensionActivator) : base(extensionActivator) { _mdiParent = pMdiParent; Initialization(); _tempPerson = person; InitializePerson(); _InitializeGroup(); DisplayProjects(person.Projects); DisplaySavings(person.Savings); _tempPerson.DateOfBirth = person.DateOfBirth; //new DateTime(1980,1,1); tabControlEconomicInfo.TabPages.Remove(tabPage1FollowUp); textBoxIdentificationData.ReadOnly = ServicesProvider.GetInstance().GetGeneralSettings().IsAutomaticID; if (ServicesProvider.GetInstance().GetGeneralSettings().IsAutomaticID) textBoxIdentificationData.BackColor = Color.WhiteSmoke; if (_tempPerson != null && _tempPerson.Id != 0) InitializeAdvancedCustomizableFields(_tempPerson.Id); else InitializeAdvancedCustomizableFields(null); }
public ClientControl(IExtensionActivator extensionActivator) { ExtensionActivator = extensionActivator; if (ExtensionActivator != null) ExtensionActivator.Execute(this); InitializeComponent(); }
public ContractCollateralForm(CollateralProduct product, IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; this.product = product; contractCollateral = new ContractCollateral(); myProperties = new CustomClass(); collections = new CollectionList(); InitializeComponent(); FillCollateralProperties(); }
public GroupUserControl(Group group, Form pMdiParent, IExtensionActivator extensionActivator) : base(extensionActivator) { _mdiParent = pMdiParent; InitializeComponent(); this.group = group; loanAmount = group.TotalContractAmount; Initialization(); InitializeGroup(); DisplayProjects(group.Projects); PicturesServices ps = ServicesProvider.GetInstance().GetPicturesServices(); if (ps.IsEnabled()) { pictureBox1.Image = ps.GetPicture("GROUP", group.Id, true, 0); pictureBox1.SizeMode = PictureBoxSizeMode.Zoom; pictureBox2.Image = ps.GetPicture("GROUP", group.Id, true, 1); pictureBox2.SizeMode = PictureBoxSizeMode.Zoom; } else { pictureBox1.Visible = false; pictureBox2.Visible = false; linkLabelChangePhoto.Visible = false; linkLabelChangePhoto2.Visible = false; } InitializeCustomizableFields(group.Id); }
private ClientForm(IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; if (_extensionActivator != null) extensionActivator.Execute(this); }
public ClientForm(IClient pClient, int pContractId, Form pMdiParent, string selectedTab, IExtensionActivator extensionActivator) : this(extensionActivator) { _mdiParent = pMdiParent; _listGuarantors = new List<Guarantor>(); _collaterals = new List<ContractCollateral>(); _loanShares = new List<LoanShare>(); _client = (Client)pClient; InitLoanOfficers(_client); InitializeComponent(); InitControls(); InitializeClient(pClient, pContractId); if (_credit != null) foreach (LoanShare ls in _credit.LoanShares) _loanShares.Add(ls); tabControlPerson.SelectTab(selectedTab); InitializeTabPageAdvancedSettings(); bool active = _credit != null && _credit.ContractStatus == OContractStatus.Active; InitializeCustomizableFields(OCustomizableFieldEntities.Loan, pContractId, active); LoadLoanDetailsExtensions(); }
public ClientForm(Group pGroup, Form pMdiParent, IExtensionActivator extensionActivator) : this(extensionActivator) { _mdiParent = pMdiParent; _group = pGroup; _client = pGroup; InitLoanOfficers(_client); _listGuarantors = new List<Guarantor>(); _collaterals = new List<ContractCollateral>(); _loanShares = new List<LoanShare>(); InitializeComponent(); InitControls(); _oClientType = OClientTypes.Group; InitializeUserControl(OClientTypes.Group, pMdiParent); InitializeTitle(_group.Name); }
public ClientForm(Person pPerson, Form pMdiParent, IExtensionActivator extensionActivator) : this(extensionActivator) { _mdiParent = pMdiParent; _person = pPerson; _client = pPerson; InitLoanOfficers(_client); _listGuarantors = new List<Guarantor>(); _collaterals = new List<ContractCollateral>(); _loanShares = new List<LoanShare>(); InitializeComponent(); InitControls(); _oClientType = OClientTypes.Person; InitializeUserControl(OClientTypes.Person, pMdiParent); InitializeTitle(string.Format("{0} {1}", pPerson.FirstName, pPerson.LastName)); }
public ClientForm(OClientTypes pClientType, Form pMdiParent, bool pCloseFormAfterSave, IExtensionActivator extensionActivator) : this(extensionActivator) { _listGuarantors = new List<Guarantor>(); _collaterals = new List<ContractCollateral>(); _loanShares = new List<LoanShare>(); _closeFormAfterSave = pCloseFormAfterSave; _mdiParent = pMdiParent; InitializeComponent(); InitControls(); _oClientType = pClientType; if (pClientType == OClientTypes.Person) _person = new Person(); else if (pClientType == OClientTypes.Group) _group = new Group(); else _corporate = new Corporate(); InitializeUserControl(pClientType, pMdiParent); InitializeTitle(null); }
public ContractCollateralForm(CollateralProduct product, ContractCollateral contractCollateral, bool isView, IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; this.product = product; this.contractCollateral = contractCollateral; myProperties = new CustomClass(); collections = new CollectionList(); InitializeComponent(); FillCollateralPropertyValues(contractCollateral); if(isView) { propertyGrid.Enabled = false; groupBoxOwnerDetails.Enabled = false; buttonSave.Enabled = false; } }
public LotrasmicMainWindowForm() { InitializeComponent(); _menuItems = new List<MenuObject>(); _menuItems = Services.GetMenuItemServices().GetMenuList(OSecurityObjectTypes.MenuItem); LoadReports(); LoadReprotsToolStrip(); InitializeTracer(); DisplayWinFormDetails(); _extensionActivator = new ExtensionActivator(); _extensionActivator.Execute(this); }
public DashboardForm(IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; InitializeComponent(); }