コード例 #1
1
 public ClientPermissionsActionResult(IViewService viewSvc, IDictionary<string, object> env, ClientPermissionsViewModel model)
     : base(async () => await viewSvc.ClientPermissions(model))
 {
     if (viewSvc == null) throw new ArgumentNullException("viewSvc");
     if (env == null) throw new ArgumentNullException("env");
     if (model == null) throw new ArgumentNullException("model");
 }
コード例 #2
0
ファイル: QuoteBlotterService.cs プロジェクト: ganesum/Blitz
 public QuoteBlotterService(IRequestTask requestTask, IDispatcherSchedulerProvider scheduler, IViewService viewService, Func<QuoteEditViewModel> quoteEditViewModelFactory)
 {
     _requestTask = requestTask;
     _scheduler = scheduler;
     _viewService = viewService;
     _quoteEditViewModelFactory = quoteEditViewModelFactory;
 }
コード例 #3
0
ファイル: BonusesView.cs プロジェクト: kicholen/SpaceShooter
 public BonusesView(Pool pool, IViewService viewService, IBonusService bonusService)
     : base("EditorView/Bonus/BonusesView")
 {
     this.pool = pool;
     this.viewService = viewService;
     this.bonusService = bonusService;
 }
コード例 #4
0
 public LoginActionResult(IViewService viewSvc, LoginViewModel model, SignInMessage message)
     : base(async () => await viewSvc.Login(model, message))
 {
     if (viewSvc == null) throw new ArgumentNullException("viewSvc");
     if (model == null) throw new ArgumentNullException("model");
     if (message == null) throw new ArgumentNullException("message");
 }
コード例 #5
0
 public EditEnemyView(Pool pool, IViewService viewService, IEnemyService enemyService)
     : base("EditorView/Enemy/EditEnemyView")
 {
     this.pool = pool;
     this.viewService = viewService;
     this.enemyService = enemyService;
 }
 public LoginActionResult(IViewService viewSvc, IDictionary<string, object> env, LoginViewModel model)
     : base(async () => await viewSvc.Login(env, model))
 {
     if (viewSvc == null) throw new ArgumentNullException("viewSvc");
     if (env == null) throw new ArgumentNullException("env");
     if (model == null) throw new ArgumentNullException("model");
 }
コード例 #7
0
 public ConsentActionResult(IViewService viewSvc, ConsentViewModel model, ValidatedAuthorizeRequest validatedRequest)
     : base(async () => await viewSvc.Consent(model, validatedRequest))
 {
     if (viewSvc == null) throw new ArgumentNullException("viewSvc");
     if (model == null) throw new ArgumentNullException("model");
     if (validatedRequest == null) throw new ArgumentNullException("validatedRequest");
 }
コード例 #8
0
        public MainViewModel(IFileDialogService fileDialogService, IMessageBoxService messageBoxService, IDirtyService dirtyService, IViewService viewService, ILifetimeScope lifetimeScope)
        {
            if (fileDialogService == null) throw new ArgumentNullException(nameof(fileDialogService));
            if (messageBoxService == null) throw new ArgumentNullException(nameof(messageBoxService));
            if (dirtyService == null) throw new ArgumentNullException(nameof(dirtyService));
            if (viewService == null) throw new ArgumentNullException(nameof(viewService));
            if (lifetimeScope == null) throw new ArgumentNullException(nameof(lifetimeScope));
            

            _fileDialogService = fileDialogService;
            _messageBoxService = messageBoxService;
            _dirtyService = dirtyService;
            _viewService = viewService;
            _lifetimeScope = lifetimeScope;
            

            dirtyService.PropertyChanged += DirtyService_PropertyChanged;

            NewCommand = new RelayCommand(New);
            OpenCommand = new RelayCommand(Open);
            SaveCommand = new RelayCommand(() => Save(), CanSave);
            SaveAsComand = new RelayCommand(() => SaveAs());
            ExitCommand = new RelayCommand(Exit);
            AboutCommand = new RelayCommand(About);
        }
 public AuthenticationController(
     OwinEnvironmentService owin,
     IViewService viewService, 
     IUserService userService, 
     IdentityServerOptions idSvrOptions, 
     IClientStore clientStore, 
     IEventService eventService,
     ILocalizationService localizationService,
     SessionCookie sessionCookie, 
     MessageCookie<SignInMessage> signInMessageCookie,
     MessageCookie<SignOutMessage> signOutMessageCookie,
     LastUserNameCookie lastUsernameCookie,
     AntiForgeryToken antiForgeryToken)
 {
     this.context = new OwinContext(owin.Environment);
     this.viewService = viewService;
     this.userService = userService;
     this.options = idSvrOptions;
     this.clientStore = clientStore;
     this.eventService = eventService;
     this.localizationService = localizationService;
     this.sessionCookie = sessionCookie;
     this.signInMessageCookie = signInMessageCookie;
     this.signOutMessageCookie = signOutMessageCookie;
     this.lastUsernameCookie = lastUsernameCookie;
     this.antiForgeryToken = antiForgeryToken;
 }
コード例 #10
0
 public EditLanguageView(Pool pool, IViewService viewService, ILanguageService languageService)
     : base("EditorView/Language/LanguageView")
 {
     this.pool = pool;
     this.viewService = viewService;
     this.languageService = languageService;
 }
コード例 #11
0
 public EditDifficultyView(Pool pool, IViewService viewService, IDifficultyService difficultyService)
     : base("EditorView/Difficulty/DifficultyView")
 {
     this.pool = pool;
     this.viewService = viewService;
     this.difficultyService = difficultyService;
 }
コード例 #12
0
ファイル: ServicesProvider.cs プロジェクト: Iyemon-018/Dev
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="dialogService">ダイアログ表示サービス</param>
        /// <param name="viewService">画面表示サービス</param>
        public ServicesProvider(IDialogService dialogService, IViewService viewService)
        {
            if (dialogService == null) throw new ArgumentNullException(nameof(dialogService));
            if (viewService == null) throw new ArgumentNullException(nameof(viewService));

            _dialogService = dialogService;
            _viewService   = viewService;
        }
コード例 #13
0
        public AppBootstrapper(IViewService viewService, string connectionstring, string providerName)
        {
            Guard.AgainstNull(() => viewService, () => connectionstring, () => providerName);

            _viewService = viewService;
            _connectionstring = connectionstring;
            _providerName = providerName;
        }
 public AuthenticationController(IViewService viewService, IUserService userService, IExternalClaimsFilter externalClaimsFilter, AuthenticationOptions authenticationOptions, IdentityServerOptions idSvrOptions)
 {
     _viewService = viewService;
     _userService = userService;
     _externalClaimsFilter = externalClaimsFilter;
     _authenticationOptions = authenticationOptions;
     _options = idSvrOptions;
 }
コード例 #15
0
 public EditLevelView(Pool pool, ILevelService levelService, IViewService viewService, IPathService pathService, IEnemyService enemyService)
     : base("EditorView/Level/EditLevelView")
 {
     this.pool = pool;
     this.levelService = levelService;
     this.viewService = viewService;
     EditLevelView.pathService = pathService;
     EditLevelView.enemyService = enemyService;
 }
コード例 #16
0
        public MainViewModel(IViewService viewService)
        {
            if (viewService == null) throw new ArgumentNullException(nameof(viewService));

            _viewService = viewService;

            EditTextCommand = new SimpleRelayCommand(EditText);
            DisplayTextCommand = new SimpleRelayCommand(DisplayText);
        }
コード例 #17
0
        public DepositEditorViewModel(IDepositGateway depositGateway, IViewService viewService, ISharedDataProvider sharedDataProvider)
        {
            Guard.AgainstNull(() => depositGateway, () => viewService, () => sharedDataProvider);

            _depositGateway = depositGateway;
            _viewService = viewService;
            _sharedDataProvider = sharedDataProvider;

            SaveDepositCommand = new RelayCommand(SaveDeposit, CanSaveDeposit);
            IsBackNavigationEnabled = true;
        }
コード例 #18
0
        public ApproveExpenseReportsViewModel()
        {
            this.ApproveReportCommand = 
                new RelayCommand(
                    async(report) => 
                    {
                        await this.ApproveExpenseReportAsync(report as ExpenseReportViewModel);
                        await this.LoadReportsForApprovalAsync();
                    });

            this._viewService = ServiceLocator.Current.GetService<IViewService>();
        }
コード例 #19
0
        public DepositDeletionViewModel(IDepositGateway depositGateway, IViewService viewService, ISharedDataProvider sharedDataProvider)
        {
            Guard.AgainstNull(() => depositGateway, () => viewService, () => sharedDataProvider);

            _depositGateway = depositGateway;
            _viewService = viewService;
            _sharedDataProvider = sharedDataProvider;

            DeleteCommand = new RelayCommand(Delete, CanDelete);
            PageTitle = "Sletning af depot";
            IsBackNavigationEnabled = true;
        }
コード例 #20
0
        public StockEditorViewModel(IStockGateway stockGateway, ISharedDataProvider sharedDataProvider, IViewService viewService, IMessagebus messagebus)
        {
            Guard.AgainstNull(() => stockGateway, () => sharedDataProvider, () => viewService, () => messagebus);

            _stockGateway = stockGateway;
            _sharedDataProvider = sharedDataProvider;
            _viewService = viewService;
            _messagebus = messagebus;

            SaveStockCommand = new RelayCommand(SaveStock, CanSaveStock);
            IsBackNavigationEnabled = true;
        }
コード例 #21
0
        public StockDeletionViewModel(IStockGateway stockGateway, ISharedDataProvider sharedDataProvider, 
            IViewService viewService, IMessagebus messagebus)
        {
            Guard.AgainstNull(() => stockGateway, () => sharedDataProvider, () => viewService, () => messagebus);

            _stockGateway = stockGateway;
            _sharedDataProvider = sharedDataProvider;
            _viewService = viewService;
            _messagebus = messagebus;

            DeleteCommand = new RelayCommand(Delete, CanDelete);
            PageTitle = "Sletning af papir";
            IsBackNavigationEnabled = true;
        }
        public AuthorizeEndpointController(
            IViewService viewService,
            AuthorizeRequestValidator validator,
            AuthorizeResponseGenerator responseGenerator,
            AuthorizeInteractionResponseGenerator interactionGenerator,
            IdentityServerOptions options)
        {
            _viewService = viewService;
            _options = options;

            _responseGenerator = responseGenerator;
            _interactionGenerator = interactionGenerator;
            _validator = validator;
        }
コード例 #23
0
        public DepositOverviewViewModel(IViewService viewService)
        {
            Guard.AgainstNull(() => viewService);

            _viewService = viewService;

            CreateTradeCommand = new RelayCommand(() => NavigateToTradeEditor(Deposit, null, null));
            CreateBuyTradeCommand = new ParameterizedRelayCommand<StockPositionViewModel>(t => NavigateToTradeEditor(Deposit, true, t.Stock.Id));
            CreateSellTradeCommand = new ParameterizedRelayCommand<StockPositionViewModel>(t => NavigateToTradeEditor(Deposit, false, t.Stock.Id));
            NavigateToDividendManagementCommand = new RelayCommand(() => _viewService.NavigateTo(typeof(DividendManagementViewModel), Deposit));
            NavigateToTaxInfoCommand = new RelayCommand(() => _viewService.NavigateTo(typeof(YearlyReportViewModel), Deposit));

            PageTitle = "DEPOTOVERSIGT";
            IsBackNavigationEnabled = true;
        }
コード例 #24
0
 public ClientPermissionsController(
     IClientPermissionsService clientPermissionsService, 
     IdentityServerOptions options, 
     IViewService viewSvc, 
     ILocalizationService localizationService,
     IEventService eventService,
     AntiForgeryToken antiForgeryToken)
 {
     this.clientPermissionsService = clientPermissionsService;
     this.options = options;
     this.viewSvc = viewSvc;
     this.localizationService = localizationService;
     this.eventService = eventService;
     this.antiForgeryToken = antiForgeryToken;
 }
 public AuthenticationController(
     IViewService viewService, 
     IUserService userService, 
     AuthenticationOptions authenticationOptions, 
     IdentityServerOptions idSvrOptions, 
     IClientStore clientStore, 
     IEventService events)
 {
     _viewService = viewService;
     _userService = userService;
     _authenticationOptions = authenticationOptions;
     _options = idSvrOptions;
     _clientStore = clientStore;
     _events = events;
 }
コード例 #26
0
        public MainWindowViewModel(IServiceFactory serviceFactory)
        {
            this._serviceFactory = serviceFactory;
            this._currentIdentityService = serviceFactory.CurrentIdentityService;
            this._viewService = serviceFactory.ViewService;
            this._navigationService = serviceFactory.NavigationService;
            this._repositoryService = serviceFactory.RepositoryService;

            this.NewChargeCommand = new RelayCommand(() => this.NewCharge());
            this.ShowChargesCommand = new RelayCommand(() => this.ShowChargesAsync());
            this.NewReportCommand = new RelayCommand(async () => await this.NewReport());
            this.ShowSavedReportsCommand = new RelayCommand(async () => await this.ShowSavedReportsAsync());
            this.ShowSubmittedReportsCommand = new RelayCommand(async () => await this.ShowSubmittedReportsAsync());
            this.ShowApprovedReportsCommand = new RelayCommand(async () => await this.ShowApprovedReportsAsync());
            this.ResetDataCommand = new RelayCommand(async () => await this.ResetDataAsync());
        }
コード例 #27
0
        public ChargesViewModel(IServiceFactory serviceFactory)
        {
            this._serviceFactory = serviceFactory;
            this._navigationService = serviceFactory.NavigationService;
            this._viewService = serviceFactory.ViewService;
            this._repositoryService = serviceFactory.RepositoryService;
            this._currentIdentityService = serviceFactory.CurrentIdentityService;

            this.Charges = new ObservableCollection<ChargeViewModel>();

            this.ViewChargeCommand = new RelayCommand<ChargeViewModel>(
                (charge) =>
                {
                    this.ViewCharge(charge);
                });
        }
コード例 #28
0
        public DepositManagementViewModel(IDepositGateway depositGateway, IViewService viewService, 
            IMessagebus messagebus, ISharedDataProvider sharedDataProvider)
        {
            Guard.AgainstNull(() => depositGateway, () => viewService, () => messagebus, () => sharedDataProvider);

            _viewService = viewService;
            _depositGateway = depositGateway;
            _messagebus = messagebus;

            EditSelectedDepositCommand = new RelayCommand(EditSelectedDeposit, IsDepositSelected);
            DeleteSelectedDepositCommand = new RelayCommand(DeleteSelectedDeposit, IsDepositSelected);
            ShowDepositOverviewCommand = new RelayCommand(ShowDepositOverview, IsDepositSelected);
            Deposits = sharedDataProvider.Deposits;

            PageTitle = "Depotadministration";
        }
コード例 #29
0
        public ExpenseReportsViewModel(IServiceFactory serviceFactory)
        {
            this._serviceFactory = serviceFactory;
            this._currentIdentityService = serviceFactory.CurrentIdentityService;
            this._navigationService = serviceFactory.NavigationService;
            this._repositoryService = serviceFactory.RepositoryService;
            this._viewService = serviceFactory.ViewService;

            this._expenseReports = new ObservableCollection<ExpenseReportViewModel>();
            this._groupedExpenseReports = new ObservableCollection<GroupInfoList<object>>();

            this.ViewReportCommand = new RelayCommand<ExpenseReportViewModel>(
                (report) =>
                {
                    this.ViewReport(report);
                });
        }
コード例 #30
0
        public StockSplitManagementViewModel(IStockGateway stockGateway, IViewService viewService, ISharedDataProvider sharedDataProvider)
        {
            Guard.AgainstNull(() => stockGateway, () => viewService, () => sharedDataProvider);

            _stockGateway = stockGateway;
            _viewService = viewService;
            SharedDataProvider = sharedDataProvider;

            SaveCommand = new RelayCommand(Save, IsSaveEnabled);
            ResetCommand = new RelayCommand(Reset);
            BeginEditCommand = new ParameterizedRelayCommand<StockSplitViewModel>(BeginEdit);
            BeginDeleteCommand = new ParameterizedRelayCommand<StockSplitViewModel>(BeginDelete);
            StockSplits = new ObservableCollection<StockSplitViewModel>(_stockGateway.GetAllStockSplits());

            Reset();
            PageTitle = "Aktiesplits";
            IsBackNavigationEnabled = true;
        }
コード例 #31
0
        public ChargesViewModel()
        {
            this.EmployeeViewModel = ServiceLocator.Current.GetService <EmployeeViewModel>();
            this.NavigationService = ServiceLocator.Current.GetService <INavigationService>();
            this._repository       = ServiceLocator.Current.GetService <IExpenseRepository>();
            this.ViewService       = ServiceLocator.Current.GetService <IViewService>();
            this.GroupedCharges    = new ObservableCollection <GroupInfoList <object> >();
            this.SortTypes         = new ObservableCollection <SortType>();
            this.SortTypes.Add(SortType.Age);
            this.SortTypes.Add(SortType.Amount);

            this.ViewChargeCommand = new RelayCommand(
                (charge) =>
            {
                this.ViewCharge(charge as ChargeViewModel);
            });

            this.ChargesSelectionChangedCommand = new RelayCommand(
                (selectionChange) =>
            {
                this.ChargesSelectionChanged(selectionChange);
            });
            this.NewChargeCommand = new RelayCommand(x => CreateNewCharge());
        }
コード例 #32
0
        protected override void UnhandledExceptionPerApplicationHandler(DispatcherUnhandledExceptionEventArgs generatedExceptionArguments)
        {
            generatedExceptionArguments.Handled = true;
            if (this.ExpressionInformationService == null)
            {
                return;
            }
            IViewService service = this.Services.GetService <IViewService>();

            if (service == null)
            {
                return;
            }
            SceneView sceneView = service.ActiveView as SceneView;

            if (sceneView == null || this.IsDataException(generatedExceptionArguments.Exception) || (sceneView.MessageContent != null || sceneView.InstanceBuilderContext == null) || (sceneView.InstanceBuilderContext.ViewNodeManager == null || sceneView.InstanceBuilderContext.ViewNodeManager.IsUpdating))
            {
                return;
            }
            sceneView.ViewModel.AnimationEditor.Invalidate();
            sceneView.OnExceptionWithUnknownSource(generatedExceptionArguments.Exception);
            sceneView.ViewModel.RefreshCurrentValues();
            ExceptionHandler.SafelyForceLayoutArrange();
        }
コード例 #33
0
ファイル: GenericDialog.xaml.cs プロジェクト: achaacha/CM3
        public static async Task <bool?> Show(string message, string caption, MessageBoxButton buttons)
        {
            IViewService  viewService = Services.Get <IViewService>();
            GenericDialog dlg         = new GenericDialog();

            dlg.Message = message;

            switch (buttons)
            {
            case MessageBoxButton.OK:
            {
                dlg.Left  = null;
                dlg.Right = "OK";
                break;
            }

            case MessageBoxButton.OKCancel:
            {
                dlg.Left  = "Cancel";
                dlg.Right = "OK";
                break;
            }

            case MessageBoxButton.YesNoCancel:
                throw new NotImplementedException();

            case MessageBoxButton.YesNo:
            {
                dlg.Left  = "No";
                dlg.Right = "Yes";
                break;
            }
            }

            return(await viewService.ShowDialog <GenericDialog, bool?>(caption, dlg));
        }
コード例 #34
0
        /// <summary>
        ///累加日计划面积
        /// </summary>
        /// <param name="e"></param>
        public override void EndOperationTransaction(EndOperationTransactionArgs e)
        {
            base.EndOperationTransaction(e);
            IViewService Services = ServiceHelper.GetService <IViewService>();

            if (selectedRows != null && selectedRows.Count() != 0)
            {
                IMetaDataService metadataService = Kingdee.BOS.App.ServiceHelper.GetService <IMetaDataService>();

                foreach (DynamicObject dy in selectedRows)
                {
                    string Id = Convert.ToString(dy["Id"]);
                    if (!Convert.ToString(dy["F_SZXY_Invalid"]).EqualsIgnoreCase("True"))
                    {
                        string  BZ        = "";
                        string  Orgid     = "";
                        string  Operator  = "";
                        decimal OrderQty  = 0;
                        string  Cust      = "";
                        string  CustBacth = "";
                        string  BC        = "";
                        if (dy["F_SZXY_TeamGroup"] is DynamicObject BZDO)
                        {
                            BZ = BZDO["Id"].ToString();
                        }


                        if (dy["F_SZXY_operator"] is DynamicObject OperatorDo)
                        {
                            Operator = OperatorDo["Id"].ToString();
                        }
                        if (dy["F_SZXY_CustCode"] is DynamicObject CustDo)
                        {
                            Cust = CustDo["Id"].ToString();
                        }
                        if (dy["F_SZXY_BC"] is DynamicObject BCDo)
                        {
                            BC = BCDo["Id"].ToString();
                        }
                        OrderQty  = Convert.ToDecimal(dy["F_SZXY_OrderQty"]);
                        CustBacth = dy["F_SZXY_CustBacth"].ToString();

                        if (dy["SZXY_BZKHXXDYBEntry"] is DynamicObjectCollection Entry && dy["F_SZXY_OrgId"] is DynamicObject OrgDo)
                        {
                            Orgid = OrgDo["Id"].ToString();
                            foreach (DynamicObject item in Entry)
                            {
                                string  F_SZXY_NO           = item["F_SZXY_NO"].ToString();
                                string  F_SZXY_NewDate      = item["F_SZXY_NewDate"].ToString();
                                string  F_SZXY_OriginalDate = item["F_SZXY_OriginalDate"].ToString();
                                string  F_SZXY_CustCartonNo = item["F_SZXY_CustCartonNo"].ToString();//新箱号
                                string  MoNo          = item["F_SZXY_ProductionTask1"].ToString();
                                string  MoLineNo      = item["F_SZXY_MoLineNo"].ToString();
                                string  Mat           = item["F_SZXY_Model_Id"].ToString();
                                decimal F_SZXY_PLy    = Convert.ToDecimal(item["F_SZXY_PLy"].ToString());
                                decimal F_SZXY_Width  = Convert.ToDecimal(item["F_SZXY_Width"].ToString());
                                decimal F_SZXY_Len    = Convert.ToDecimal(item["F_SZXY_Len"].ToString());
                                decimal F_SZXY_Area   = Convert.ToDecimal(item["F_SZXY_Area"].ToString());
                                decimal F_SZXY_volume = Convert.ToDecimal(item["F_SZXY_volume"].ToString());
                                string  SQLPJ         = "";
                                if (!F_SZXY_CustCartonNo.IsNullOrEmptyOrWhiteSpace())
                                {
                                    SQLPJ = $"  F_SZXY_CTNNO = '{F_SZXY_CustCartonNo}', ";
                                }

                                if (!F_SZXY_NO.IsNullOrEmptyOrWhiteSpace())
                                {
                                    long MoId     = 0;
                                    long FENTRYID = 0;
                                    if (!MoLineNo.IsNullOrEmptyOrWhiteSpace() && !MoNo.IsNullOrEmptyOrWhiteSpace())
                                    {
                                        string sql = $"/*dialect*/select T2.fid,T2.FENTRYID  from " +
                                                     $"T_PRD_MO T1 " +
                                                     $"inner join " +
                                                     $" T_PRD_MOENTRY T2 on T1.fid = T2.fid " +
                                                     $"where T1.FPRDORGID = '{Orgid}' and T1.FBILLNO='{MoNo}' and T2.FSEQ='{MoLineNo}'";

                                        DataSet Selds = DBServiceHelper.ExecuteDataSet(Context, sql);
                                        if (Selds != null && Selds.Tables.Count > 0 && Selds.Tables[0].Rows.Count > 0)
                                        {
                                            MoId     = Convert.ToInt64(Selds.Tables[0].Rows[0]["fid"].ToString());
                                            FENTRYID = Convert.ToInt64(Selds.Tables[0].Rows[0]["FENTRYID"].ToString());

                                            string updatesql1 = $"/*dialect*/update   SZXY_t_BZDHEntry " +
                                                                $"set " +
                                                                $"F_SZXY_DATE = '{F_SZXY_NewDate}', " +
                                                                $" F_SZXY_MATERIAL = '{Mat}', " +
                                                                $" F_SZXY_PLY = '{F_SZXY_PLy}', " +
                                                                $" F_SZXY_WIDTH = '{F_SZXY_Width}', " +
                                                                $" F_SZXY = '{F_SZXY_Len}', " +
                                                                $" F_SZXY_AREA1 = '{F_SZXY_Area}', " +
                                                                $" F_SZXY_TEAMGROUP1 = '{BZ}', " +
                                                                $" F_SZXY_CLASSES1 = '{BC}', " +
                                                                SQLPJ +
                                                                $" F_SZXY_OPERATOR = '{Operator}'," +
                                                                $" F_SZXY_CUSTBACTH = '{CustBacth}'," +
                                                                $" F_SZXY_BACTHQTY = '{OrderQty}'," +
                                                                $"  F_SZXY_PUDNO = '{MoNo}'," +
                                                                $"  F_SZXY_JQTY = '{F_SZXY_volume}'," +
                                                                $" F_SZXY_PUDLINENO = '{MoLineNo}' " +
                                                                $" where F_SZXY_CTNNO = '{F_SZXY_NO}'";
                                            DBServiceHelper.Execute(Context, updatesql1);

                                            //string updatesql2 = $"/*dialect*/update a   " +
                                            //     $"set a.F_SZXY_MOID={MoId} " +
                                            //     $" from  SZXY_t_BZD a,SZXY_t_BZDHEntry b  " +
                                            //     $" where a.Fid=B.Fid and  b.F_SZXY_CTNNO = '{F_SZXY_NO}'";
                                            //DBServiceHelper.Execute(Context, updatesql2);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
コード例 #35
0
 public OalAudioRuntime(IViewService viewService)
 {
     this.viewService = viewService;
 }
コード例 #36
0
 public ActivityAmbient(IViewService service, string description)
 {
     _service = service;
     _service.StartActivity(description);
 }
コード例 #37
0
 public RegisterViewServiceSystem(Contexts contexts, IViewService view)
 {
     _contexts = contexts;
     _view     = view;
 }
コード例 #38
0
 public PartCostController(IDataGeneratorService dataGeneratorService, IPackageService packageService, IViewService viewService)
 {
     this.dataGeneratorService = dataGeneratorService;
     this.packageService       = packageService;
     this.viewService          = viewService;
 }
コード例 #39
0
 protected ManipulateInPresentationComponent(IAppModeService appModeService, IViewService viewService, IPresentationGuiCommands commands)
 {
     this.appModeService = appModeService;
     this.viewService    = viewService;
     this.commands       = commands;
 }
コード例 #40
0
 public SimulationStateMachineViewModel(StateMachine model, IViewService viewService, IMessageBoxService messageBoxService) :
     base(model, viewService, null, null, messageBoxService, true)
 {
     this.IsPointerMode = false;
 }
コード例 #41
0
ファイル: CallsService.cs プロジェクト: murka1611/Unigram
        public VoipService(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, IViewService viewService)
            : base(protoService, cacheService, settingsService, aggregator)
        {
            _viewService = viewService;

            if (ApiInfo.IsMediaSupported)
            {
                _mediaPlayer = new MediaPlayer();
                _mediaPlayer.CommandManager.IsEnabled = false;
                _mediaPlayer.AudioDeviceType          = MediaPlayerAudioDeviceType.Communications;
                _mediaPlayer.AudioCategory            = MediaPlayerAudioCategory.Communications;
            }

            aggregator.Subscribe(this);
        }
コード例 #42
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandHandler"/> class.
 /// </summary>
 /// <owner>Aleksey Beletsky</owner>
 /// <param name="action">The action.</param>
 /// <param name="viewService">The view service.</param>
 public CommandHandler(Action action, IViewService viewService)
 {
     this.action      = action ?? throw new ArgumentNullException(nameof(action));
     this.viewService = viewService ?? throw new ArgumentNullException(nameof(viewService));
 }
コード例 #43
0
ファイル: GalleryView.xaml.cs プロジェクト: GuocRen/Unigram
        private async void Compact_Click(object sender, RoutedEventArgs e)
        {
            var item = ViewModel.SelectedItem;

            if (item == null)
            {
                return;
            }

            _viewService = TLContainer.Current.Resolve <IViewService>();

            if (_mediaPlayer == null || _mediaPlayer.Source == null)
            {
                Play(item, item.GetFile());
            }

            _mediaPlayerElement.SetMediaPlayer(null);

            var width  = 340d;
            var height = 200d;

            var constraint = item.Constraint;

            if (constraint is MessageAnimation messageAnimation)
            {
                constraint = messageAnimation.Animation;
            }
            else if (constraint is MessageVideo messageVideo)
            {
                constraint = messageVideo.Video;
            }

            if (constraint is Animation animation)
            {
                width  = animation.Width;
                height = animation.Height;
            }
            else if (constraint is Video video)
            {
                width  = video.Width;
                height = video.Height;
            }

            if (width > 500 || height > 500)
            {
                var ratioX = 500d / width;
                var ratioY = 500d / height;
                var ratio  = Math.Min(ratioX, ratioY);

                width  *= ratio;
                height *= ratio;
            }

            _compactLifetime = await _viewService.OpenAsync(() =>
            {
                var element            = new MediaPlayerElement();
                element.RequestedTheme = ElementTheme.Dark;
                element.SetMediaPlayer(_mediaPlayer);
                element.TransportControls = new MediaTransportControls
                {
                    IsCompact = true,
                    IsCompactOverlayButtonVisible = false,
                    IsFastForwardButtonVisible    = false,
                    IsFastRewindButtonVisible     = false,
                    IsFullWindowButtonVisible     = false,
                    IsNextTrackButtonVisible      = false,
                    IsPlaybackRateButtonVisible   = false,
                    IsPreviousTrackButtonVisible  = false,
                    IsRepeatButtonVisible         = false,
                    IsSkipBackwardButtonVisible   = false,
                    IsSkipForwardButtonVisible    = false,
                    IsVolumeButtonVisible         = false,
                    IsStopButtonVisible           = false,
                    IsZoomButtonVisible           = false,
                };
                element.AreTransportControlsEnabled = true;
                return(element);
            }, "PIP", width, height);

            _compactLifetime.WindowWrapper.ApplicationView().Consolidated += (s, args) =>
            {
                if (_compactLifetime != null)
                {
                    _compactLifetime.StopViewInUse();
                    _compactLifetime.WindowWrapper.Window.Close();
                    _compactLifetime = null;
                }

                this.BeginOnUIThread(() =>
                {
                    Dispose();
                });
            };

            OnBackRequestedOverride(this, new HandledEventArgs());
        }
コード例 #44
0
ファイル: AddViewSystem.cs プロジェクト: vanlecs09/TwoState
 public void Initialize()
 {
     _viewService = _contexts.meta.viewService.instance;
 }
コード例 #45
0
 public InputSetActionFactory(IViewService view)
 {
     this.view = view;
 }
コード例 #46
0
 public NavigationService(IViewService viewService)
 {
     _viewService = viewService;
 }
コード例 #47
0
        /// <summary>
        ///累加日计划面积
        /// </summary>
        /// <param name="e"></param>
        public override void EndOperationTransaction(EndOperationTransactionArgs e)
        {
            base.EndOperationTransaction(e);
            IViewService Services = ServiceHelper.GetService <IViewService>();

            if (selectedRows != null && selectedRows.Count() != 0)
            {
                foreach (DynamicObject dy in selectedRows)
                {
                    string  Id   = Convert.ToString(dy["Id"]);
                    decimal Area = 0;

                    string RJHRowId = string.Empty;

                    if (dy["F_SZXY_OrgId"] is DynamicObject OrgDO)
                    {
                        string OrgId = Convert.ToString(OrgDO["Id"]);



                        if (dy["SZXY_XYCPJYEntry"] is DynamicObjectCollection Entry)
                        {
                            foreach (var item in Entry)
                            {
                                string        FQNO    = Convert.ToString(item["F_SZXY_BarCode"]);
                                string        HD      = Convert.ToString(item["F_SZXY_HD"]);
                                string        BLDS    = Convert.ToString(item["F_SZXY_BLDS"]);
                                DynamicObject Culprit = item["F_SZXY_Culprit"] as DynamicObject;
                                DynamicObject XNDJ    = item["F_SZXY_XNDJ"] as DynamicObject;
                                //反写等级
                                if (XNDJ != null)
                                {
                                    long DJId = Convert.ToInt64(XNDJ[0]);
                                    if (DJId > 0)
                                    {
                                        string sql1 = $"/*dialect*/update SZXY_t_XYFQEntry  set F_SZXY_BLEVEL='{DJId}' " +
                                                      $"  where F_SZXY_BARCODEE= '{FQNO}' ";
                                        DBServiceHelper.Execute(Context, sql1);
                                        string sql2 = $"/*dialect*/update SZXY_t_FQJYDEntry  set F_SZXY_XNDJ='{DJId}' " +
                                                      $"  where F_SZXY_BARCODE= '{FQNO}' ";
                                        DBServiceHelper.Execute(Context, sql2);
                                    }
                                }
                                //反写 不良原因
                                if (Culprit != null)
                                {
                                    string BLYYId = Convert.ToString(Culprit[0]);
                                    if (!BLYYId.IsNullOrEmptyOrWhiteSpace())
                                    {
                                        string sql1 = $"/*dialect*/update SZXY_t_XYFQEntry  set F_SZXY_BLYY='{BLYYId}' " +
                                                      $"  where F_SZXY_BARCODEE= '{FQNO}' ";
                                        DBServiceHelper.Execute(Context, sql1);
                                        string sql2 = $"/*dialect*/update SZXY_t_FQJYDEntry  set F_SZXY_BLYY='{BLYYId}' " +
                                                      $"  where F_SZXY_BARCODE= '{FQNO}' ";
                                        DBServiceHelper.Execute(Context, sql2);
                                    }
                                }


                                //反写 弧度
                                if (!HD.IsNullOrEmptyOrWhiteSpace())
                                {
                                    string sql1 = $"/*dialect*/update SZXY_t_FQJYDEntry  set F_SZXY_ARC='{HD}' " +
                                                  $"  where F_SZXY_BARCODE= '{FQNO}' ";
                                    DBServiceHelper.Execute(Context, sql1);
                                }

                                //反写 波浪读数
                                if (!BLDS.IsNullOrEmptyOrWhiteSpace())
                                {
                                    string sql1 = $"/*dialect*/update SZXY_t_FQJYDEntry  set F_SZXY_BLDS='{BLDS}' " +
                                                  $"  where F_SZXY_BARCODE= '{FQNO}' ";
                                    DBServiceHelper.Execute(Context, sql1);
                                }
                            }
                        }
                    }
                }
            }
        }
コード例 #48
0
 public AddEditUserGroupViewModel(IEventAggregator eventAggregator, IUnityContainer container, IViewService viewService)
     : base(eventAggregator, container, viewService)
 {
     //[usp_GetGroupsXML]
 }
コード例 #49
0
 public AccountController(IViewService viewService, IAccountRepository accountRepository)
 {
     this.viewService       = viewService;
     this.accountRepository = accountRepository;
 }
コード例 #50
0
 public UIServices(IOpenFilePicker openFilePicker, ISaveFilePicker saveFilePicker, IViewService viewService, IDialog dialog)
 {
     OpenFilePicker = openFilePicker;
     SaveFilePicker = saveFilePicker;
     ViewService    = viewService;
     Dialog         = dialog;
 }
コード例 #51
0
 public $fileinputname$ReportRunnerViewModel(ILog log, IViewService viewService, IDispatcherService dispatcherService, IToolBarService toolBarService,
                                             $fileinputname$ReportParameterViewModel reportParameterViewModel, $fileinputname$ReportRunnerService reportRunnerService)
コード例 #52
0
ファイル: WindowManager.cs プロジェクト: Zulkir/ClarityWorlds
 public WindowManager(IMainForm mainForm, IEventRoutingService eventRoutingService, IWorldTreeService worldTreeService, IViewService viewService)
 {
     this.mainForm         = mainForm;
     this.worldTreeService = worldTreeService;
     this.viewService      = viewService;
     renderControls        = new IRenderGuiControl[] { mainForm.RenderControl };
     eventRoutingService.RegisterServiceDependency(typeof(IWindowManager), typeof(IWorldTreeService));
     eventRoutingService.Subscribe <IAppModeChangedEvent>(typeof(IWindowManager), nameof(OnAppModeChanged), OnAppModeChanged);
     eventRoutingService.SubscribeToAllAfter(typeof(IWindowManager).FullName, OnEveryEvent, true);
 }
コード例 #53
0
 public void RegisterViewService(IViewService viewService)
 {
     this.ViewServices.Add(viewService);
 }
コード例 #54
0
        /// <summary>
        /// 主单据体的字段携带完毕,与源单的关联关系创建好之后,触发此事件
        /// </summary>
        /// <param name="e"></param>
        public override void OnAfterCreateLink(CreateLinkEventArgs e)
        {
            // 预先获取一些必要的元数据,后续代码要用到:
            // 源单第二单据体,执行部门
            Entity srcSecondEntity = e.SourceBusinessInfo.GetEntity("F_PEJK_ExecuteDept");


            // 目标单第一单据体,产品明细
            //Entity mainEntity = e.TargetBusinessInfo.GetEntity("FEntity");

            // 目标单第二单据体,执行部门
            Entity secondEntity = e.TargetBusinessInfo.GetEntity("F_PEJK_OppExecuteDept");

            // 目标单关联子单据体
            //Entity linkEntity = null;
            //Form form = e.TargetBusinessInfo.GetForm();
            //if (form.LinkSet != null
            //    && form.LinkSet.LinkEntitys != null
            //    && form.LinkSet.LinkEntitys.Count != 0)
            //{
            //    linkEntity = e.TargetBusinessInfo.GetEntity(
            //        form.LinkSet.LinkEntitys[0].Key);
            //}

            //if (linkEntity == null)
            //{
            //    return;
            //}

            // 获取生成的全部下游单据
            ExtendedDataEntity[] billDataEntitys = e.TargetExtendedDataEntities.FindByEntityKey("FBillHead");

            // 对下游单据,逐张单据进行处理
            //foreach (var item in billDataEntitys)
            //{
            //    DynamicObject dataObject = item.DataEntity;
            //    // 定义一个集合,用于收集本单对应的源单内码
            //    HashSet<long> srcBillIds = new HashSet<long>();
            //    //开始到主单据体中,读取关联的源单内码
            //    DynamicObjectCollection mainEntryRows =
            //        mainEntity.DynamicProperty.GetValue(dataObject) as DynamicObjectCollection;
            //    foreach (var mainEntityRow in mainEntryRows)
            //    {
            //        DynamicObjectCollection linkRows =
            //            linkEntity.DynamicProperty.GetValue(mainEntityRow) as DynamicObjectCollection;
            //        foreach (var linkRow in linkRows)
            //        {
            //            long srcBillId = Convert.ToInt64(linkRow["SBillId"]);
            //            if (srcBillId != 0
            //                && srcBillIds.Contains(srcBillId) == false)
            //            {
            //                srcBillIds.Add(srcBillId);
            //            }
            //        }
            //    }


            //DynamicObject linkRows =
            //    linkEntity.DynamicProperty.GetValue(dataObject) as DynamicObject;
            //    long srcBillId = Convert.ToInt64(linkRows["SBillId"]);
            //    if (srcBillId != 0
            //        && srcBillIds.Contains(srcBillId) == false)
            //    {
            //        srcBillIds.Add(srcBillId);
            //    }
            //定义一个集合,用于收集本单对应的源单内码
            HashSet <long> srcBillIds = new HashSet <long>();

            foreach (var item in billDataEntitys)
            {
                DynamicObject dataObject = item.DataEntity;
                if (Convert.ToString(dataObject["FSourceBillNo"]) != null && Convert.ToString(dataObject["FSourceBillNo"]) != " ")
                {
                    string strSql    = string.Format(@"/*dialect*/select FID from T_CRM_Clue where FBILLNO = '{0}'", Convert.ToString(dataObject["FSourceBillNo"]));
                    long   srcBillId = DBUtils.ExecuteScalar <long>(this.Context, strSql, 0, null);
                    if (srcBillId != 0 &&
                        srcBillIds.Contains(srcBillId) == false)
                    {
                        srcBillIds.Add(srcBillId);
                    }
                    if (srcBillIds.Count == 0)
                    {
                        continue;
                    }
                    // 开始加载源单第二单据体上的字段

                    // 确定需要加载的源单字段(仅加载需要携带的字段)
                    List <SelectorItemInfo> selector = new List <SelectorItemInfo>();
                    selector.Add(new SelectorItemInfo("F_PEJK_ExecuteDeptId"));
                    // TODO: 继续添加其他需要携带的字段,示例代码略
                    // 设置过滤条件
                    string filter = string.Format(" {0} IN ({1}) ",
                                                  e.SourceBusinessInfo.GetForm().PkFieldName,
                                                  string.Join(",", srcBillIds));
                    OQLFilter filterObj = OQLFilter.CreateHeadEntityFilter(filter);

                    // 读取源单
                    IViewService viewService = ServiceHelper.GetService <IViewService>();
                    var          srcBillObjs = viewService.Load(this.Context,
                                                                e.SourceBusinessInfo.GetForm().Id,
                                                                selector,
                                                                filterObj);

                    // 开始把源单单据体数据,填写到目标单上
                    DynamicObjectCollection secondEntryRows =
                        secondEntity.DynamicProperty.GetValue(dataObject) as DynamicObjectCollection;
                    secondEntryRows.Clear();    // 删除空行

                    foreach (var srcBillObj in srcBillObjs)
                    {
                        DynamicObjectCollection srcEntryRows =
                            srcSecondEntity.DynamicProperty.GetValue(srcBillObj) as DynamicObjectCollection;

                        foreach (var srcEntryRow in srcEntryRows)
                        {
                            // 目标单添加新行,并接受源单字段值
                            DynamicObject newRow = new DynamicObject(secondEntity.DynamicObjectType);
                            secondEntryRows.Add(newRow);
                            // 填写字段值
                            newRow["F_PEJK_ExecuteDeptId"] = srcEntryRow["F_PEJK_ExecuteDeptId"];
                            // TODO: 逐个填写其他字段值,示例代码略
                        }
                    }
                }

                //string strSql = string.Format(@"/*dialect*/select fsbillid from T_CRM_Opportunity_LK where fid = {0}", Convert.ToInt64(dataObject["id"]));
            }
        }
コード例 #55
0
 public TabViewBase(IViewService viewService)
 {
     _viewService = viewService;
 }
コード例 #56
0
 public BookingRuleController(IViewService viewService, IBookingRuleRepository bookingRuleRepository)
 {
     this.viewService           = viewService;
     this.bookingRuleRepository = bookingRuleRepository;
 }
コード例 #57
0
 public RepositoryService(IViewService viewService)
 {
     this._viewService = viewService;
 }
コード例 #58
0
 public DrawingHub(IDrawingService drawingService, IFixtureService fixtureService, ILabelService labelService, IRiggedFixtureService rFixtureService, IStructureService structureService, IUserService userService, IViewService viewService)
 {
     _drawingService   = drawingService;
     _fixtureService   = fixtureService;
     _labelService     = labelService;
     _rFixtureService  = rFixtureService;
     _structureService = structureService;
     _userService      = userService;
     _viewService      = viewService;
     _authUtils        = new AuthUtils(drawingService, labelService, rFixtureService, structureService, viewService);
 }
コード例 #59
0
        public SceneTreeGui(IEventRoutingService eventRoutingService, IWorldTreeService worldTreeService, IViewService viewService,
                            IPresentationGuiCommands commands, ICommonGuiObjects commonGuiObjects)
        {
            itemIndex             = new Dictionary <ISceneNode, TreeItem>();
            this.worldTreeService = worldTreeService;
            this.viewService      = viewService;
            this.commands         = commands;

            eyeIcon    = Icon.FromResource("Clarity.Ext.Gui.EtoForms.Resources.eye_icon.ico");
            sceneIcon  = Icon.FromResource("Clarity.Ext.Gui.EtoForms.Resources.scene_icon.ico");
            viewIcon   = Icon.FromResource("Clarity.Ext.Gui.EtoForms.Resources.view_icon.ico");
            layoutIcon = Icon.FromResource("Clarity.Ext.Gui.EtoForms.Resources.layout_icon.ico");
            entityIcon = Icon.FromResource("Clarity.Ext.Gui.EtoForms.Resources.entity_icon.ico");
            whiteIcon  = Icon.FromResource("Clarity.Ext.Gui.EtoForms.Resources.white_icon.ico");

            rootItem = new TreeItem {
                Text = "GuiRoot", Expanded = true
            };
            treeView = new TreeView
            {
                Width       = 250,
                DataStore   = rootItem,
                ContextMenu = commonGuiObjects.SelectionContextMenu
            };
            //RebuildFromRoot();
            eventRoutingService.RegisterServiceDependency(typeof(ISceneTreeGui), typeof(IWorldTreeService));
            eventRoutingService.Subscribe <IWorldTreeUpdatedEvent>(typeof(ISceneTreeGui), nameof(OnWorldUpdated), OnWorldUpdated);
            eventRoutingService.Subscribe <IAppModeChangedEvent>(typeof(ISceneTreeGui), nameof(OnAppModeChanged), OnAppModeChanged);
            treeView.SelectionChanged += OnSelectionChanged;
            treeView.NodeMouseClick   += OnNodeMouseClick;
            treeView.MouseDoubleClick += OnNodeMouseDoubleClick;

            viewService.Update += OnViewServiceUpdate;
        }
コード例 #60
0
        /// <summary>
        /// Constructs a gameplay page.
        /// </summary>
        public RCGameplayPage() : base()
        {
            /// Create the sprite group loaders for loading the shared sprite groups.
            IViewService      viewService = ComponentManager.GetInterface <IViewService>();
            SpriteGroupLoader isoTileSpriteGroupLoader = new SpriteGroupLoader(
                () => new IsoTileSpriteGroup(viewService.CreateView <ITileSetView>()));
            SpriteGroupLoader terrainObjectSpriteGroupLoader = new SpriteGroupLoader(
                () => new TerrainObjectSpriteGroup(viewService.CreateView <ITileSetView>()));
            SpriteGroupLoader disabledCommandButtonSpriteGroupLoader = new SpriteGroupLoader(
                () => new CmdButtonSpriteGroup(viewService.CreateView <ICommandView>(), CommandButtonStateEnum.Disabled));
            SpriteGroupLoader enabledCommandButtonSpriteGroupLoader = new SpriteGroupLoader(
                () => new CmdButtonSpriteGroup(viewService.CreateView <ICommandView>(), CommandButtonStateEnum.Enabled));
            SpriteGroupLoader highlightedCommandButtonSpriteGroupLoader = new SpriteGroupLoader(
                () => new CmdButtonSpriteGroup(viewService.CreateView <ICommandView>(), CommandButtonStateEnum.Highlighted));
            Dictionary <CommandButtonStateEnum, ISpriteGroup> commandButtonSprites = new Dictionary <CommandButtonStateEnum, ISpriteGroup>
            {
                { CommandButtonStateEnum.Disabled, disabledCommandButtonSpriteGroupLoader },
                { CommandButtonStateEnum.Enabled, enabledCommandButtonSpriteGroupLoader },
                { CommandButtonStateEnum.Highlighted, highlightedCommandButtonSpriteGroupLoader },
            };

            /// Create the map display and its extensions.
            this.mapDisplayBasic = new RCMapDisplayBasic(isoTileSpriteGroupLoader,
                                                         terrainObjectSpriteGroupLoader,
                                                         new RCIntVector(0, 13),
                                                         new RCIntVector(320, 135));
            //this.mapWalkabilityDisplay = new RCMapWalkabilityDisplay(this.mapDisplayBasic);
            this.mapObjectDisplayEx       = new RCMapObjectDisplay(this.mapDisplayBasic);
            this.suggestionBoxDisplayEx   = new RCSuggestionBoxDisplay(this.mapObjectDisplayEx);
            this.selectionDisplayEx       = new RCSelectionDisplay(this.suggestionBoxDisplayEx);
            this.fogOfWarDisplayEx        = new RCFogOfWarDisplay(this.selectionDisplayEx);
            this.objectPlacementDisplayEx = new RCObjectPlacementDisplay(this.fogOfWarDisplayEx);
            this.selectionBoxDisplayEx    = new RCSelectionBoxDisplay(this.objectPlacementDisplayEx);
            this.mapDisplay = this.selectionBoxDisplayEx;

            this.mouseHandler = null;

            this.minimapPanel = new RCMinimapPanel(isoTileSpriteGroupLoader,
                                                   terrainObjectSpriteGroupLoader,
                                                   new RCIntRectangle(0, 128, 72, 72),
                                                   new RCIntRectangle(1, 1, 70, 70),
                                                   "RC.App.Sprites.MinimapPanel");
            this.detailsPanel = new RCDetailsPanel(enabledCommandButtonSpriteGroupLoader,
                                                   new RCIntRectangle(72, 148, 178, 52),
                                                   new RCIntRectangle(0, 1, 178, 50),
                                                   "RC.App.Sprites.DetailsPanel");
            this.commandPanel = new RCCommandPanel(commandButtonSprites,
                                                   new RCIntRectangle(250, 130, 70, 70),
                                                   new RCIntRectangle(3, 3, 64, 64),
                                                   "RC.App.Sprites.CommandPanel");
            this.tooltipBar = new RCTooltipBar(new RCIntRectangle(0, 0, 209, 13),
                                               new RCIntRectangle(1, 1, 207, 11),
                                               "RC.App.Sprites.TooltipBar");
            this.resourceBar = new RCResourceBar(new RCIntRectangle(209, 0, 111, 13),
                                                 new RCIntRectangle(0, 1, 110, 11),
                                                 "RC.App.Sprites.ResourceBar");
            this.menuButtonPanel = new RCMenuButtonPanel(new RCIntRectangle(226, 140, 24, 8),
                                                         new RCIntRectangle(0, 0, 24, 8),
                                                         "RC.App.Sprites.MenuButton");
            this.RegisterPanel(this.minimapPanel);
            this.RegisterPanel(this.detailsPanel);
            this.RegisterPanel(this.commandPanel);
            this.RegisterPanel(this.tooltipBar);
            this.RegisterPanel(this.resourceBar);
            this.RegisterPanel(this.menuButtonPanel);

            this.gameConnection = new SequentialGameConnector(
                new ConcurrentGameConnector(isoTileSpriteGroupLoader,
                                            terrainObjectSpriteGroupLoader,
                                            disabledCommandButtonSpriteGroupLoader,
                                            enabledCommandButtonSpriteGroupLoader,
                                            highlightedCommandButtonSpriteGroupLoader),
                new ConcurrentGameConnector(this.mapDisplay, this.commandPanel, this.minimapPanel, this.detailsPanel, this.resourceBar));
        }