public StatisticsTableView() { InitializeComponent(); gridControl.ColumnSizer = GridControlLengthUnitType.Star; Loaded += (o, e) => NeedItems?.Invoke(StatisticsFilter.Empty); }
public StatisticsTableView() { InitializeComponent(); Loaded += (o, e) => NeedItems?.Invoke(StatisticsFilter.Empty); var _columnsSizeSetted = false; dataGrid.ItemsSourceChangeCompleted += (o, e) => { if (!_columnsSizeSetted) { foreach (var column in dataGrid.VisibleColumns) { column.Width = 190; } _columnsSizeSetted = true; } }; }
public GeolocationView() { InitializeComponent(); DialogView.DialogOpened += DialogView_DialogOpened; DialogView.DialogClosed += DialogView_DialogClosed; locationsView.ScenarioSelectClicked += (o, e) => { SelectScenarioView.Show( _scenarioIds, (newScenarioIds) => { _scenarioIds = newScenarioIds; NeedItems?.Invoke(new StatisticsFilter() { ScenariosIds = newScenarioIds }); }); }; Loaded += async(o, e) => { var geolocationScenarios = ScenariosRepository .Scenarios .Where(x => x.ValueType is GeolocationValueType) .ToArray(); var registrationInfo = await StatisticsManager.GetRegistrationInfo(geolocationScenarios); _scenarioIds = registrationInfo.RegisteredIds; NeedItems?.Invoke( new StatisticsFilter() { ScenariosIds = _scenarioIds }); }; Unloaded += (o, e) => Dispose(); }