Пример #1
0
 void CreateService(string moduleName, IGridViewFactory <ColumnWrapper, RowBaseWrapper> reportWrapper)
 {
     Service = new GridReportManagerService()
     {
         Name = moduleName
     };
     Interaction.GetBehaviors(reportWrapper as DependencyObject).Add(Service);
 }
Пример #2
0
        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);
        }
Пример #3
0
 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;
 }
Пример #4
0
 public static void ShowDesigner(IGridViewFactory <ColumnWrapper, RowBaseWrapper> view)
 {
 }
Пример #5
0
 public ReportsSideBarControl(string moduleName, IGridViewFactory <ColumnWrapper, RowBaseWrapper> reportWrapper)
 {
     InitializeComponent();
     DataContext = this;
     CreateService(moduleName, reportWrapper);
 }