コード例 #1
0
        public NonSolidaryGroupForm(IExtensionActivator extensionActivator)
        {
            _extensionActivator = extensionActivator;
            if (_extensionActivator != null) _extensionActivator.Execute(this);

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