public IncidentsGridViewCellFormatter(ICfaRegions cfaRegions, IFormatterListener listener, IClock clock)
 {
     this.cfaRegions = cfaRegions;
     this.listener   = listener;
     this.clock      = clock;
     cfaRegions.AddListener(this);
 }
Пример #2
0
        protected override void SetUp()
        {
            persistenceService = NewMock <IPersistenceService>();

            Expect.Once.On(persistenceService).Method("RegisterScope").WithAnyArguments();

            regions = new CfaRegions(persistenceService);
        }
Пример #3
0
        protected override void SetUp()
        {
            persistenceService = NewMock<IPersistenceService>();

            Expect.Once.On(persistenceService).Method("RegisterScope").WithAnyArguments();

            regions = new CfaRegions(persistenceService);
        }
        public RegionsComboBoxController(IComboBox comboBox, ICfaRegions cfaRegions)
        {
            this.comboBox = comboBox;
            this.cfaRegions = cfaRegions;

            comboBox.MaxDropDownItems = 25;
            comboBox.Sorted = false;
            comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
            comboBox.DataSource = cfaRegions;
        }
Пример #5
0
        public RegionsComboBoxController(IComboBox comboBox, ICfaRegions cfaRegions)
        {
            this.comboBox   = comboBox;
            this.cfaRegions = cfaRegions;

            comboBox.MaxDropDownItems = 25;
            comboBox.Sorted           = false;
            comboBox.DropDownStyle    = ComboBoxStyle.DropDownList;
            comboBox.DataSource       = cfaRegions;
        }