public NonSolidaryGroupForm(IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; if (_extensionActivator != null) _extensionActivator.Execute(this); InitializeComponent(); _village = new Village {CreationDate = TimeProvider.Now}; InitializeControls(); InitializeCustomizableFields(null); InitializeTitle(); }
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 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(); }
private ClientForm(IExtensionActivator extensionActivator) { _extensionActivator = extensionActivator; if (_extensionActivator != null) extensionActivator.Execute(this); }
public ClientControl(IExtensionActivator extensionActivator) { ExtensionActivator = extensionActivator; if (ExtensionActivator != null) ExtensionActivator.Execute(this); InitializeComponent(); }
public LotrasmicMainWindowForm() { InitializeComponent(); _menuItems = new List<MenuObject>(); _menuItems = Services.GetMenuItemServices().GetMenuList(OSecurityObjectTypes.MenuItem); LoadReports(); LoadReprotsToolStrip(); InitializeTracer(); DisplayWinFormDetails(); _extensionActivator = new ExtensionActivator(); _extensionActivator.Execute(this); }