예제 #1
0
 /// <summary>
 /// 初始化服务
 /// </summary>
 public ResFileMstrService(IResFileMstrRepository resFileMstrRepository, WxHelper wxHelper, IMdmBuMstrRepository mdmBuMstrRepository, InitHelper initHelper)
 {
     _resFileMstrRepository = resFileMstrRepository;
     _wxHelper            = wxHelper;
     _mdmBuMstrRepository = mdmBuMstrRepository;
     _initHelper          = initHelper;
 }
예제 #2
0
 /// <summary>
 /// 初始化服务
 /// </summary>
 public AptDriveConfigService(IAptDriveConfigRepository aptDriveConfigRepository, WxHelper wxHelper, IMdmBuMstrRepository mdmBuMstrRepository, InitHelper initHelper)
 {
     _aptDriveConfigRepository = aptDriveConfigRepository;
     _mdmBuMstrRepository = mdmBuMstrRepository;
     _wxHelper = wxHelper;
     _initHelper = initHelper;
 }
예제 #3
0
 /// <summary>
 /// 初始化服务
 /// </summary>
 public WctBasConfigService(IWctBasConfigRepository wctBasConfigRepository,
                            InitHelper initHelper, RedisHelper redisHelper)
 {
     _wctBasConfigRepository = wctBasConfigRepository;
     _initHelper             = initHelper;
     _redisHelper            = redisHelper;
 }
예제 #4
0
 /// <summary>
 /// 初始化服务
 /// </summary>
 public TagMstrService(ITagMstrRepository tagMstrRepository, WxHelper wxHelper,
                       InitHelper initHelper)
 {
     _tagMstrRepository = tagMstrRepository;
     _wxHelper          = wxHelper;
     _initHelper        = initHelper;
 }
예제 #5
0
		public UserDevicesControl()
		{
			InitHelper.InitTimer(this, InitializeComponent);
			if (ControlsHelper.IsDesignMode(this))
				return;
			MainDataGrid.AutoGenerateColumns = false;
		}
예제 #6
0
        public SqlLiteFunctionTests()
        {
            dstore = SqlLiteDataConnection.GetDataStore(Path.GetTempFileName());
            InitHelper.AttachEvents(dstore);

            List<DBObject> data = dstore.SchemaValidator.ViewValidator.GetObjects().Where(R => R.Name != "sqlite_sequence").ToList();
            while (data.Count != 0)
            {
                foreach (DBObject t in data)
                {
                    if (t.Name.Equals("sqlite_sequence")) continue;
                    SQLiteCommand cmd = new SQLiteCommand();
                    cmd.CommandText = string.Format("DROP VIEW {0}", t.Name);
                    try { dstore.ExecuteCommand(cmd); }
                    catch { }
                }
                data = dstore.SchemaValidator.ViewValidator.GetObjects(true).Where(R => R.Name != "sqlite_sequence").ToList();
            }

            data = dstore.SchemaValidator.TableValidator.GetObjects().Where(R => R.Name != "sqlite_sequence").ToList();
            while (data.Count != 0)
            {
                foreach (DBObject t in data)
                {
                    if (t.Name.Equals("sqlite_sequence")) continue;
                    SQLiteCommand cmd = new SQLiteCommand();
                    cmd.CommandText = string.Format("DROP TABLE {0}", t.Name);
                    try { dstore.ExecuteCommand(cmd); }
                    catch { }
                }
                data = dstore.SchemaValidator.TableValidator.GetObjects(true).Where(R => R.Name != "sqlite_sequence").ToList();
            }
        }
예제 #7
0
        public ProgramItemControl()
        {
            InitHelper.InitTimer(this, InitializeComponent);
            if (ControlsHelper.IsDesignMode(this))
            {
                return;
            }
            DInputCheckBoxes  = ControlsHelper.GetAll <CheckBox>(DInputMaskGroupBox);
            XInputCheckBoxes  = ControlsHelper.GetAll <CheckBox>(XInputMaskGroupBox);
            HookCheckBoxes    = ControlsHelper.GetAll <CheckBox>(HookMaskGroupBox);
            AutoMapCheckBoxes = ControlsHelper.GetAll <CheckBox>(AutoMapMaskGroupBox);
            // Fill architecture combo box.
            var paItems = (ProcessorArchitecture[])Enum.GetValues(typeof(ProcessorArchitecture));

            foreach (var item in paItems)
            {
                ProcessorArchitectureComboBox.Items.Add(item);
            }
            // Fill emulation type combo box.
            var etItems = (EmulationType[])Enum.GetValues(typeof(EmulationType));

            foreach (var item in etItems)
            {
                EmulationTypeComboBox.Items.Add(item);
            }
            lock (CurrentGameLock)
            {
                EnableEvents();
            }
        }
예제 #8
0
 public BaseWithHeaderControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (IsDesignMode)
     {
         return;
     }
 }
예제 #9
0
 public UserDevicesControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
 }
예제 #10
0
 /// <summary>
 /// 初始化服务
 /// </summary>
 public SysUsrWctService(ISysUsrWctRepository sysUsrWctRepository, ITagHistService tagHistService,
                         WxHelper wxHelper, InitHelper initHelper)
 {
     _sysUsrWctRepository = sysUsrWctRepository;
     _tagHistService      = tagHistService;
     _wxHelper            = wxHelper;
     _initHelper          = initHelper;
 }
예제 #11
0
 public PadListControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     InitScrollFix();
     MainDataGrid.ItemsSource         = mappedUserSettings;
     _MainDataGridFormattingConverter = (ItemFormattingConverter)MainDataGrid.Resources[nameof(_MainDataGridFormattingConverter)];
     _MainDataGridFormattingConverter.ConvertFunction = _MainDataGridFormattingConverter_Convert;
 }
예제 #12
0
 public AxisToButtonControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
 }
예제 #13
0
        public UserProgramsControl()
        {
            InitHelper.InitTimer(this, InitializeComponent);
            ListPanel.MainDataGrid.SelectionChanged += MainDataGrid_SelectionChanged;
            var userGamesView = new BindingListCollectionView(SettingsManager.UserGames.Items);

            ListPanel.MainDataGrid.ItemsSource = userGamesView;
        }
예제 #14
0
 public ProgramListControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     // Make font more consistent with the rest of the interface.
     MainDataGrid.AutoGenerateColumns = false;
     ImportOpenFileDialog             = new OpenFileDialog();
     ExportSaveFileDialog             = new SaveFileDialog();
 }
예제 #15
0
 /// <summary>
 /// 初始化服务
 /// </summary>
 public WctMenuMstrService(IWctMenuMstrRepository wctMenuMstrRepository,
                           InitHelper initHelper, WxHelper wxHelper,
                           IConfiguration configuration)
 {
     _wctMenuMstrRepository = wctMenuMstrRepository;
     _initHelper            = initHelper;
     _wxHelper      = wxHelper;
     _configuration = configuration;
 }
 public OptionsRemoteControllerControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     LoadSettings();
 }
예제 #17
0
 /// <summary>
 /// 初始化服务
 /// </summary>
 public MdmGoodsListService(IMdmGoodsListRepository mdmGoodsListRepository, WxHelper wxHelper, InitHelper initHelper, IResFileMstrRepository resFileMstrRepository, IMdmGoodsMstrRepository mdmGoodsMstrRepository, IMdmGoodsMstrService mdmGoodsMstrService)
 {
     _mdmGoodsListRepository = mdmGoodsListRepository;
     _wxHelper               = wxHelper;
     _initHelper             = initHelper;
     _resFileMstrRepository  = resFileMstrRepository;
     _mdmGoodsMstrRepository = mdmGoodsMstrRepository;
     _mdmGoodsMstrService    = mdmGoodsMstrService;
 }
예제 #18
0
 public PadItem_DInputControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     InitDirectInputTab();
 }
예제 #19
0
        private void SetupComponents()
        {
            initHelper = new InitHelper(this, button1, button2);
            new DisplayRendererHelper(listView1, comboBox1);
            new DragDropHelper(listView1, this);
            new ClicksHelper(listView1);

            comboBox1.SelectedIndex = 0;
        }
예제 #20
0
 public OptionsGeneralControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     LocationFolderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
 }
예제 #21
0
 public PadItem_MacrosControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     _Recorder = new Recorder();
 }
예제 #22
0
        public PadItem_ForceFeedbackControl()
        {
            InitHelper.InitTimer(this, InitializeComponent);
            var effectsTypes = Enum.GetValues(typeof(ForceEffectType)).Cast <ForceEffectType>().Distinct().ToArray();

            ForceTypeComboBox.ItemsSource = effectsTypes;
            overallStrengthLink           = new TrackBarUpDownTextBoxLink(StrengthTrackBar, StrengthUpDown, StrengthTextBox, 0, 100);
            InitUpdateTimer();
        }
예제 #23
0
 public LogControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     MainDataGrid.AutoGenerateColumns = false;
     UpdateAppearance();
 }
예제 #24
0
 public CloudControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     //TasksTimer.Queue.AsynchronousInvoke = true;
     MainDataGrid.AutoGenerateColumns = false;
 }
예제 #25
0
 public PadItem_AdvancedControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     // Add GamePad typed to ComboBox.
     DeviceSubTypeComboBox.ItemsSource = (DeviceSubType[])Enum.GetValues(typeof(DeviceSubType));
 }
예제 #26
0
 public UserProgramListControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     ScanProgressLevel0Label.Text = "";
     ScanProgressLevel1Label.Text = "";
 }
예제 #27
0
 public SummariesListControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     MainDataGrid.AutoGenerateColumns = false;
     MainDataGrid.SelectionMode       = System.Windows.Controls.DataGridSelectionMode.Single;
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
 }
        public PadItem_ForceFeedback_MotorControl()
        {
            InitHelper.InitTimer(this, InitializeComponent);
            deadzoneLink = new TrackBarUpDownTextBoxLink(StrengthTrackBar, StrengthUpDown, StrengthTextBox, 0, 100);
            offsetLink   = new TrackBarUpDownTextBoxLink(PeriodTrackBar, PeriodUpDown, PeriodTextBox, 0, 100);
            testLink     = new TrackBarUpDownTextBoxLink(TestTrackBar, TestUpDown, TestTextBox, 0, 100);
            // fill direction values.
            var effectDirections = (ForceEffectDirection[])Enum.GetValues(typeof(ForceEffectDirection));

            DirectionComboBox.ItemsSource = effectDirections;
        }
예제 #29
0
 public PadItem_DInputControl()
 {
     oldState   = new JoystickState();
     emptyState = oldState;
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     InitDirectInputTab();
 }
예제 #30
0
 public BaseWithHeaderControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (IsDesignMode)
     {
         return;
     }
     defaultHead = HelpHeadLabel.Content as string;
     defaultBody = HelpBodyLabel.Text;
     _bwm        = new BaseWithHeaderManager(HelpHeadLabel, HelpBodyLabel, LeftIcon, this);
 }
예제 #31
0
    protected virtual void Awake()
    {
        _rigidBody = GetComponent<Rigidbody2D>();
        _animator = GetComponent<Animator>();
        _spriteRenderer = GetComponent<SpriteRenderer>();

        GameObject helper = GameObject.Find(StaticValues.InitHelper);
        _initHelper = helper.GetComponent<InitHelper>();

        EnemyFractions = new List<int>();
    }
        public CrossAppDomainCleanUp(AppDomain toWatch, IPrinter printer)
        {
            if (toWatch == null) throw new ArgumentNullException("toWatch");
            if (printer == null) throw new ArgumentNullException("printer");

            (new PermissionSet(PermissionState.Unrestricted)).Assert();
            var current = toWatch;

            AppDomainSetup adSetup = new AppDomainSetup();
            adSetup.ApplicationBase = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;

            //#if RAZOR4 // currently not signed!
            var strongNames = new StrongName[0];
            //#else
            //            var strongNames = new[] {
            //                FromAssembly(typeof(RazorEngine.Templating.RazorEngineService).Assembly),
            //                FromAssembly(typeof(System.Web.Razor.RazorTemplateEngine).Assembly)
            //            };
            //#endif

            _domain = AppDomain.CreateDomain(
                "CleanupHelperDomain_" + Guid.NewGuid().ToString(), null,
                current.SetupInformation, new PermissionSet(PermissionState.Unrestricted),
                strongNames);

            var initHelper = new InitHelper() { Domain = _domain, Current = current };
            _helper = ExecutionContextLessThread.DefaultCallFunc(new Func<CleanupHelper>(initHelper.CreateHelper));
        }
예제 #33
0
		Application(InitHelper init)
		{
		}