public static void Configure() { Mapper.Initialize(cfg => { RegisterEntityToViewModelMapper.Register(cfg); }); }
public void InitializeCommon() { Mapper.Reset(); Mapper.Initialize(cfg => { RegisterEntityToViewModelMapper.Register(cfg); }); }
private void MainForm_Load(object sender, EventArgs e) { Mapper.Reset(); Mapper.Initialize(cfg => { RegisterEntityToViewModelMapper.Register(cfg); cfg.CreateMap <WallPostModel, WallPostGridViewModel>(); }); SetUsername(); FillFollowers(); GenerateWallPostGrid(); WallSelectionComboBox.SelectedIndex = 0; FollowingTypeCombobox.SelectedIndex = 0; StopFollowingMenuItem.Click += StopFollowingMenuItem_Click; }