void CreateService(string moduleName, IGridViewFactory <ColumnWrapper, RowBaseWrapper> reportWrapper) { Service = new GridReportManagerService() { Name = moduleName }; Interaction.GetBehaviors(reportWrapper as DependencyObject).Add(Service); }
public static void ShowDesigner(IGridViewFactory <ColumnWrapper, RowBaseWrapper> owner) { XtraReport report = new XtraReport(); ReportGenerationExtensions <ColumnWrapper, RowBaseWrapper> .Generate(report, owner); var reportDesigner = new ReportDesigner(); reportDesigner.Loaded += (s, e) => { reportDesigner.OpenDocument(report); }; reportDesigner.ShowWindow(owner as FrameworkElement); }
public Engine(IRender renderer, IInterface userInterface, IGameInitializationStrategy gameInitializationStrategy, IGridViewFactory gridFactory, IHelpers helper, IPlayerFactory playerFactory, IDataCreator dataCreator, IDataLoader dataLoader, IContext context) { this.renderer = renderer; //Grid builder this.userInterface = userInterface; // user interface. this.gameInitializationStrategy = gameInitializationStrategy; //Types of ships this.ships = new List <IShip>(); this.gridFactory = gridFactory; this.visibleGrid = gridFactory.CreateNewGrid(); this.hiddenGrid = gridFactory.CreateNewGrid(); this.totalAttempts = 0; // this.helper = helper; this.playerFactory = playerFactory; this.dataCreator = dataCreator; this.dataLoader = dataLoader; this.playerData = dataLoader.LoadData(playerFactory); this.context = context; this.gameStatus = GameStatus.Play; }
public static void ShowDesigner(IGridViewFactory <ColumnWrapper, RowBaseWrapper> view) { }
public ReportsSideBarControl(string moduleName, IGridViewFactory <ColumnWrapper, RowBaseWrapper> reportWrapper) { InitializeComponent(); DataContext = this; CreateService(moduleName, reportWrapper); }