/// <summary> /// Initializes a new instance of the LinesViewModel class. /// </summary> public LinesViewModel(IDataBaseService dbService, INavigationService navigationService) { if (ViewModelBase.IsInDesignModeStatic) { this.Lines = new ObservableCollection <Line>(new List <Line>() { new Line() { LineId = 1, NumLigne = "1", LineType = LineType.Tramway, OneDirection = "François Mitterand / Jamet", OppositeDirection = "Beaujoire / Ranzay", FontColor = "FFFEFF", BackColor = "007944" }, new Line() { LineId = 2, NumLigne = "11", LineType = LineType.Bus, OneDirection = "Tertre", OppositeDirection = "Perray", FontColor = "E7C389", BackColor = "1A171B" } }); } _dbService = dbService; _navigationService = navigationService; this.LoadLinesCommand = new RelayCommand(LoadLines); this.SelectionChangedCommand = new RelayCommand(SelectionChanged); }
public UsersController( IDataBaseService dbService, IMapper mapper) { _dbService = dbService; _mapper = mapper; }
public MockGeoLocation(IStoredSettingsService storedSettingsService, IMvxMessenger messenger, IDataBaseService dataBaseService) { this._storedSettingsService = storedSettingsService; this._messenger = messenger; this.dataBaseService = dataBaseService; //getDataFromDataBase = true; }
public PreinscriptionDialog(IDataBaseService databaseService, UserState userState) { _userState = userState.CreateProperty <BotStateModel>(nameof(BotStateModel)); _databaseService = databaseService; var waterfallStep = new WaterfallStep[] { SetForm, SetFormVal, SetLastNameP, SetLastNameM, SetNames, SetCi, SetTelefono, Validation, SetType, SetGrado, SetFuerza, SetCodigo, SetCarrera, SetFechaEgreso, Final }; AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallStep)); AddDialog(new TextPrompt(nameof(TextPrompt))); }
/// <summary> /// Initializes a new instance of the LineDetailsViewModel class. /// </summary> public LineDetailsViewModel(IDataBaseService dbService, INavigationService navigationService, IApplicationBarService appBarServ) { if (ViewModelBase.IsInDesignModeStatic) { Line = new Line() { LineId = 1, NumLigne = "1", LineType = LineType.Tramway, OneDirection = "François Mitterand / Jamet", OppositeDirection = "Beaujoire / Ranzay", FontColor = "FFFEFF", BackColor = "007944" }; SelectedLastStop = new LastStop() { Name = "François Mitterand / Jamet" }; } _db = dbService; _navigationService = navigationService; this.StopSelectionChangedCommand = new RelayCommand <Stop>(e => SelectionChanged(e)); }
public Soporte(UserState userState, ConversationState conversationState, T dialog, IDataBaseService databaseService) { _userState = userState; _conversationState = conversationState; _dialog = dialog; _databaseService = databaseService; }
public ClinicBot(UserState userState, ConversationState conversationState, T dialog, IDataBaseService dataBaseService) { _userState = userState; _conversationState = conversationState; _dialog = dialog; _dataBaseService = dataBaseService; }
private static void Local() { string name = "FirstDB"; //string path = @"DESKTOP-2UQRN34\SQLEXPRESS"; string path = @"mongodb://localhost:27017"; long fileSize = 1000000; //IDataBaseService dataBaseService = DataBaseServiceFactory.GetDataBaseService(name, path, fileSize, SupportedSources.MongoDb); IDataBaseService dataBaseService = null; // = DataBaseServiceFactory.GetDataBaseService($"{path}|{name}"); //dataBaseService.AddTable("SecondTable"); //dataBaseService.AddTable("FirstTable"); var table = dataBaseService["FirstTable"]; //table.AddNewField("Name", SupportedTypes.String); //table.AddNewField("Age", DBMS_Core.Models.Types.SupportedTypes.Integer, // new List<IValidator> { new NumericValidator<int>(NumericValidatorOperation.Greater, 0) }); //table.AddNewField("Income", DBMS_Core.Models.Types.SupportedTypes.RealInterval); //var data = new List<List<object>>() // { // new List<object>{"name1", 12, new RealInterval { From=12, To=54353} }, // new List<object>{"name3", -12, new RealInterval { From=12, To=564353} }, // new List<object>{"name2", 124, new RealInterval { From=124, To=543} }, // }; //table.InsertDataRange(data); var select = table.Select(); var selectData = table.Select(3, 1, new Dictionary <string, List <IValidator> > { ["Name"] = new List <IValidator> { new StringValidator(StringValidatorOperation.EndWith, "2") } }); }
public TableFiledController(ITableFiledService TableFiledService, IDataBaseService dataBaseService, IDataTypeService dataTypeService, IDataTableService dataTableService) { _tableFiledService = TableFiledService; _dataBaseService = dataBaseService; _dataTypeService = dataTypeService; _dataTableService = dataTableService; }
public EChartController(LabContext context, IHttpContextAnalysisService analysis, ILoggerService logger, IDataBaseService service) { _context = context; _analysis = analysis; _logger = logger; _service = service; }
object IAutoIdentityService.GetAutoIdentityValue(string fullTableName) { IDataBaseService dataBaseService = ExecutingContext.GetService <IDataBaseService>(ServiceName.ADWDB); IDataManager dataManager = EntityManager.FromDataBaseService(ServiceName.ADWDB); if (DataBaseType == DBMS.AzureStorage) { TableId tableId = dataManager.GetEntity <TableId>(fullTableName); if (tableId != null) { tableId.NextId++; } else { IEntityManager em = dataManager as IEntityManager; tableId = em.CreateInstance <TableId>(); tableId.TableName = fullTableName; tableId.NextId = 1; } dataManager.SaveTransactional(); return(tableId.NextId); } else { return(dataManager.GetNextId(fullTableName)); } }
public AdminController(ISerializer serializer, IDirectoryService directoryService, IDataBaseService dataBaseService, UserManager <User> userManager, SignInManager <User> signInManager) { _serializer = serializer; _directoryService = directoryService; _dataBaseService = dataBaseService; _userManager = userManager; _signInManager = signInManager; }
public DataPipeLineService(IEventAggregator _ea, IDataBaseService _db, IIpInfoService _ips) { ea = _ea; db = _db; ips = _ips; ea.GetEvent <NetStatReadEvent>().Subscribe(pushPipeLine); }
public BuscaUsuario() { InitializeComponent(); this.formEditar = new FormEditarUsuario(); this.formEditar.FormClosed += FormEditar_FormClosed; this.dbService = DependencyFactory.Resolve <IDataBaseService>(); this.procedureService = DependencyFactory.Resolve <IProcedureService>(); }
/// <summary> /// Initializes a new instance of the SearchViewModel class. /// </summary> public SearchViewModel(IDataBaseService dbService, INavigationService navigationService) { _db = dbService; _navigationService = navigationService; this.SearchCommand = new RelayCommand <string>(StartSearch); this.SelectionChangedCommand = new RelayCommand(SelectionChanged); }
public MainViewModel(IMvxNavigationService navigationService, IDataBaseService dataBaseService) : base(navigationService, dataBaseService) { _dataBaseService = dataBaseService; _navigationService = navigationService; ShowTableViewModelCommand = new MvxAsyncCommand(async() => { await Task.Delay(500); await _navigationService.Navigate <TableViewModel>(); }); ShowTableViewModelCommand.Execute(); }
public Home() { InitializeComponent(); this.grafoService = DependencyFactory.Resolve <IGrafoService>(); this.aulaService = DependencyFactory.Resolve <IAulaService>(); this.dataBaseService = DependencyFactory.Resolve <IDataBaseService>(); try { Configuracoes.CarregarInfosArquivo(); this.IniciarConexaoBanco(); } catch { DialogResult resultado = MessageBox.Show("Falha na leitura do arquivo de configuração. " + "Deseja abrir as configurações agora ?", "Config file", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (resultado == DialogResult.Yes) { this.configuracoes.ShowDialog(); } else { return; } } try { this.login = new Login(); this.sobre = new Sobre(); this.buscarUsuario = new BuscaUsuario(); this.cadastroUsuario = new FormUsuario(0); this.editarUsuario = new FormEditarUsuario(); this.buscarPerfil = new BuscarPerfil(); this.formperfil = new FormEditarPerfil(); this.login.FormClosed += Login_FormClosed; this.editarUsuario.FormClosed += EditarUsuario_FormClosed; this.periodos = new HashSet <string>(); this.materias = new HashSet <string>(); this.professores = new HashSet <string>(); this.dias = new HashSet <string>(); this.horarios = new HashSet <string>(); this.AcoesLogout(); } catch { DialogResult resultado = MessageBox.Show("Houve um problema na abertura do sistema. conecte ao banco e abra o aplicativo novamente", "Config file", MessageBoxButtons.OK, MessageBoxIcon.Question); this.Close(); } this.btnCadastrar.Visible = false; this.btnBuscarUsuario.Visible = false; this.btnPerfil.Visible = false; }
public DataServices(IDataBaseService dataBaseService) { LoginService = new LoginService(dataBaseService); UserService = new UserService(dataBaseService); DoctorService = new DoctorService(dataBaseService); ConsultationService = new ConsultationService(dataBaseService); SecureFileService = new SecureFileService(dataBaseService, FileServiceFactory.GetFileSystem()); NonSecureFileService = new NonSecureFileService(dataBaseService, FileServiceFactory.GetFileSystem()); }
public ItemViewModel(IMvxNavigationService navigationService, IDataBaseService dataBaseService) { _navigationService = navigationService; _dataBaseService = dataBaseService; ItemDeleteCommand = new MvxAsyncCommand(DeleteItem); ItemChangedCommand = new MvxAsyncCommand(SaveChanges); CancelChangesCommand = new MvxAsyncCommand(CancelChanges); }
public DaprActorTestService( ILogger <DaprActorTestService> logger, IOptions <TestConsoleOptions> options, IDataBaseService dataBaseService) { _logger = logger; _options = options; _dataBaseService = dataBaseService; _actorCount = _options.Value.ActorCount; }
// public ClinicBot(T dialog, ConversationState conversationState , ILogger<ClinicBot<T>>logger) //{ // _dialog = dialog; //_conversationState = conversationState; // _logger = logger; //} public ClinicBot(UserState userState, ConversationState conversationState, T dialog, IDataBaseService dataBaseService, ILogger <ClinicBot <T> > logger) { // _userState = userState; // _conversationState = conversationState; _dialog = dialog; _conversationState = conversationState; _userState = userState; _logger = logger; _dataBaseService = dataBaseService; }
public PrincipalOptionsDialog(IDataBaseService databaseService) { _databaseService = databaseService; var waterfallSteps = new WaterfallStep[] { ToShowButton, }; AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallSteps)); AddDialog(new TextPrompt(nameof(TextPrompt))); }
public MvxItemViewModel(IMvxNavigationService navigationService, IDataBaseService <Item> itemService, IAlertService alertService) { _navigationService = navigationService; _itemService = itemService; _alertService = alertService; ItemDeleteCommand = new MvxAsyncCommand(DeleteItem); ItemChangedCommand = new MvxAsyncCommand(SaveChanges); CancelChangesCommand = new MvxAsyncCommand(CancelChanges); SpeakCommand = new MvxCommand(Speak); }
private void Ribbon_Load(object sender, RibbonUIEventArgs e) { _databaseService = ServiceLocator.Current.GetInstance <IDataBaseService>(); _dataBaseSettings = ServiceLocator.Current.GetInstance <IDatabaseSettings>(); for (int i = 2; i <= 10; i++) { RibbonDropDownItem ribbonDropDownItem = Globals.Factory.GetRibbonFactory().CreateRibbonDropDownItem(); ribbonDropDownItem.Label = i.ToString(); rowCorrectionDropDown.Items.Add(ribbonDropDownItem); } rowCorrection = 2; }
public QualificationDialog(IDataBaseService databaseService) { _databaseService = databaseService; var waterfallStep = new WaterfallStep[] { ToShowButton, ValidateOption }; AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallStep)); AddDialog(new TextPrompt(nameof(TextPrompt))); }
public InMemoryActorTestService( ILogger <InMemoryActorTestService> logger, IOptions <TestConsoleOptions> options, IDataBaseService dataBaseService, IClaptrapFactory claptrapFactory) { _logger = logger; _options = options; _dataBaseService = dataBaseService; _claptrapFactory = (ClaptrapFactory)claptrapFactory; _actorCount = _options.Value.ActorCount; }
public LoginViewModel(IMvxNavigationService navigationService, IDataBaseService <User> userService, IDataBaseService <Item> itemService, IAlertService alertService) : base(navigationService, itemService, userService) { _navigationService = navigationService; _alertService = alertService; _userService = userService; _itemService = itemService; LoginCommand = new MvxAsyncCommand(Login); }
public PaysDialog(IDataBaseService databaseService) { _databaseService = databaseService; var waterfallSteps = new WaterfallStep[] { CiNumber, ValidateOption }; AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallSteps)); AddDialog(new TextPrompt(nameof(TextPrompt))); }
public CursesDialog(IDataBaseService databaseService) { _databaseService = databaseService; var waterfallSteps = new WaterfallStep[] { ToShowButton, ValidateOption, SelectedOption }; AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallSteps)); AddDialog(new TextPrompt(nameof(TextPrompt))); }
public AvaliacaoDialog(IDataBaseService dataBaseService) { _dataBaseService = dataBaseService; var waterfallSteps = new WaterfallStep[] { ToShowButton, ValidateOptionsAsync }; AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallSteps)); AddDialog(new TextPrompt(nameof(TextPrompt))); }
public BaseViewModel(IDataBaseService dataService) { _dataService = dataService; }