protected void Page_Load(object sender, EventArgs e) { List <String> csr = CourrierService.getCourriresAvecReponses(); ref_cour_rep.Items.Clear(); ref_cour_rep.Items.AddRange(csr.Select(co => new ListItem() { Text = co, Value = co }).ToArray()); List <Dossier> d = DossierService.getRefDossiers(); ref_dos.Items.Clear(); ref_dos.Items.AddRange(d.Select(dos => new ListItem() { Text = dos.getReference(), Value = dos.getReference() }).ToArray()); List <Contact> des = GestionCourrier.Services.ContactService.getContacts(); destinataire_cour.Items.Clear(); destinataire_cour.Items.AddRange(des.Select(dos => new ListItem() { Text = dos.getNom(), Value = dos.getId() + "" }).ToArray()); if (!IsPostBack) { destinataire_cour.DataBind(); ref_dos.DataBind(); ref_cour_rep.DataBind(); } }
public Form1() { InitializeComponent(); _DossierService = new DossierService(); _DocumentService = new DocumentService(); Reshte[0] = "مدیریت خدمات بهداشتی و درمانی"; Reshte[1] = "فن آوری اطلاعات سلامت"; Reshte[2] = "مدیریت اطلاعات سلامت"; Reshte[3] = "انفورماتیک پزشکی"; Reshte[4] = "اقتصاد بهداشت"; Maghta[0] = "کارشناسی "; Maghta[1] = "کارشناسی ارشد"; Maghta[2] = "دکترای تخصصی "; //Reshte AutoCompleteStringCollection autoCompleteStringCollectionr = new AutoCompleteStringCollection(); autoCompleteStringCollectionr.AddRange(Reshte); txtReshte.AutoCompleteSource = AutoCompleteSource.CustomSource; txtReshte.AutoCompleteMode = AutoCompleteMode.SuggestAppend; txtReshte.AutoCompleteCustomSource = autoCompleteStringCollectionr; //Maghta AutoCompleteStringCollection autoCompleteStringCollectionM = new AutoCompleteStringCollection(); autoCompleteStringCollectionM.AddRange(Maghta); txtMaghta.AutoCompleteSource = AutoCompleteSource.CustomSource; txtMaghta.AutoCompleteMode = AutoCompleteMode.SuggestAppend; txtMaghta.AutoCompleteCustomSource = autoCompleteStringCollectionM; }
/// <summary> /// Initializes a new instance of the <see cref="DossierCommands"/> class. /// </summary> /// <param name="database">A database context from the context pool.</param> /// <param name="feedback">The feedback service.</param> /// <param name="content">The content service.</param> /// <param name="dossiers">The dossier service.</param> public DossierCommands(GlobalInfoContext database, UserFeedbackService feedback, ContentService content, DossierService dossiers) { this.Database = database; this.Feedback = feedback; this.Content = content; this.Dossiers = dossiers; }
/// <summary> /// Initializes a new instance of the <see cref="DossierCommands"/> class. /// </summary> /// <param name="feedback">The feedback service.</param> /// <param name="dossiers">The dossier service.</param> /// <param name="interactivity">The interactivity service.</param> public DossierCommands ( UserFeedbackService feedback, DossierService dossiers, InteractivityService interactivity ) { _feedback = feedback; _dossiers = dossiers; _interactivity = interactivity; }
protected void Page_Load(object sender, EventArgs e) { List <String> csr = CourrierService.getCourriresAvecReponses(); ref_cour_rep.Items.Clear(); ref_cour_rep.Items.AddRange(csr.Select(co => new ListItem() { Text = co, Value = co }).ToArray()); List <Dossier> d = DossierService.getRefDossiers(); ref_dos.Items.Clear(); ref_dos.Items.AddRange(d.Select(dos => new ListItem() { Text = dos.getReference(), Value = dos.getReference() }).ToArray()); List <Unite> l = UniteService.getUnites(); unit.Items.Clear(); unit.Items.Add(new ListItem() { Text = "Choisissez une unité", Value = "0" }); unit.Items.AddRange(l.Select(u => new ListItem() { Text = u.getNom(), Value = u.getId() + "" }).ToArray()); List <Contact> c = ContactService.getContacts(); expediteur.Items.Clear(); expediteur.Items.AddRange(c.Select(ex => new ListItem() { Text = ex.getNom(), Value = ex.getId() + "" }).ToArray()); unit.DataBind(); expediteur.DataBind(); ref_dos.DataBind(); ref_cour_rep.DataBind(); }
/// <summary> /// Initializes a new instance of the <see cref="SetCommands"/> class. /// </summary> /// <param name="dossiers">The dossier service.</param> public SetCommands(DossierService dossiers) { _dossiers = dossiers; }
/// <summary> /// Initializes a new instance of the <see cref="SetCommands"/> class. /// </summary> /// <param name="feedback">The feedback service.</param> /// <param name="dossiers">The dossier service.</param> public SetCommands(UserFeedbackService feedback, DossierService dossiers) { _feedback = feedback; _dossiers = dossiers; }
/// <summary> /// Initializes a new instance of the <see cref="SetCommands"/> class. /// </summary> /// <param name="database">A database context from the context pool.</param> /// <param name="feedback">The feedback service.</param> /// <param name="dossiers">The dossier service.</param> public SetCommands(GlobalInfoContext database, UserFeedbackService feedback, DossierService dossiers) { this.Database = database; this.Feedback = feedback; this.Dossiers = dossiers; }
// ReSharper restore PrivateFieldCanBeConvertedToLocalVariable /// <summary> /// Initializes a new instance of the <see cref="AmbassadorClient"/> class. /// </summary> /// <param name="content">The content service.</param> public AmbassadorClient([NotNull] ContentService content) { this.Client = Type.GetType("Mono.Runtime") is null ? new DiscordSocketClient() : new DiscordSocketClient(new DiscordSocketConfig { WebSocketProvider = () => new WebSocketSharpProvider() }); this.Client.Log += OnDiscordLogEvent; this.Commands = new CommandService(); this.Commands.Log += OnDiscordLogEvent; this.DiscordIntegration = new DiscordService(); this.Content = content; this.Commands = new CommandService(); this.OwnedEntities = new OwnedEntityService(); this.Roleplays = new RoleplayService(this.Commands, this.OwnedEntities); this.Transformation = new TransformationService(this.Content); this.Characters = new CharacterService(this.Commands, this.OwnedEntities, this.Content, this.Transformation); this.Characters.DiscoverPronounProviders(); this.Feedback = new UserFeedbackService(); this.Dossiers = new DossierService(this.Content); this.Interactive = new InteractiveService(this.Client); this.Lua = new LuaService(this.Content); this.Kinks = new KinkService(this.Feedback); this.Permissions = new PermissionService(); this.Privacy = new PrivacyService(); this.Services = new ServiceCollection() .AddSingleton(this.Client) .AddSingleton(this.DiscordIntegration) .AddSingleton(this.Content) .AddSingleton(this.Commands) .AddSingleton(this.Roleplays) .AddSingleton(this.Characters) .AddSingleton(this.Feedback) .AddSingleton(this.Dossiers) .AddSingleton(this.Interactive) .AddSingleton(this.Transformation) .AddSingleton(this.Lua) .AddSingleton(this.Kinks) .AddSingleton(this.Permissions) .AddSingleton(this.Privacy) .AddDbContextPool <GlobalInfoContext>(builder => GlobalInfoContext.ConfigureOptions(builder)) .BuildServiceProvider(); this.Transformation = this.Transformation .WithDescriptionBuilder ( ActivatorUtilities.CreateInstance <TransformationDescriptionBuilder>(this.Services) ); this.Client.MessageReceived += OnMessageReceived; this.Client.MessageUpdated += OnMessageUpdated; }