Exemple #1
0
        public SearchFiles()
        {
            InitializeComponent();

            _assistant        = new TypeAssistant();
            _assistant.Idled += assistant_Idled;
        }
Exemple #2
0
        private void txtKhachHang_TextChanged(object sender, EventArgs e)
        {
            int delay = 200;

            assistant        = new TypeAssistant(delay);
            assistant.Idled += assistant_Idled;
            assistant.TextChanged();
        }
        public MainViewModel()
        {
            TypeAssistant        = new TypeAssistant();
            TypeAssistant.Idled += TypeAssistant_Idled;

            RecentSearchManager = new RecentTextInputManager(App.Settings.RecentSearches);

            ShowAboutCommand         = new Command(ShowAbout);
            ShowHelpCommand          = new Command(ShowHelp);
            ShowInExplorerCommand    = new Command(ShowInExplorer);
            SearchTextBoxMenuCommand = new Command(SearchTextBoxMenuCommandHandler);
        }
        public ClockOutWindow(HttpClient client, CommandLineOptions opts)
        {
            _client             = client;
            _opts               = opts;
            _projectSearchEvent = new TypeAssistant();

            InitializeComponent();

            this.ContentRendered       += ClockOutWindow_ContentRendered;
            _projectSearchEvent.Idled  += _projectSearchEvent_Idled;
            ProjectTextBox.TextChanged += ProjectTextBox_TextChanged;
            ClockOutButton.IsDefault    = true;
            ClockOutButton.Click       += ClockOutButton_Click;
        }
Exemple #5
0
        public DocxCodeViewer()
        {
            InitializeComponent();
            HighlightingManager.Manager.AddSyntaxModeFileProvider(
                new AppSyntaxModeProvider());

            this.KeyDown += OnKeyDown;

            this.ResetTextEditor();

            this.backgroundWorker1.DoWork += BackgroundWorker1OnDoWork;

            this.documentsToLoad.Visible = false;
            this.refresh.Visible         = false;


            assistant        = new TypeAssistant();
            assistant.Idled += assistant_Idled;
        }
 public SurpriseMePageViewModel(PageDialogService pageDialogService, INavigationService navigationService, ICocktailsManager cocktailsManager, IIngredientsManager ingredientsManager, IGlassesManager glassesManager) : base(pageDialogService, navigationService)
 {
     this.cocktailsManager           = cocktailsManager;
     this.glassesManager             = glassesManager;
     this.ingredientsManager         = ingredientsManager;
     typeAssistant                   = new TypeAssistant(500);
     typeAssistant.OnFinishedTyping += OnSearch;
     IsFiltered = false;
     GoToAlcoholicDrinkCommand    = new DelegateCommand <ImageOption>(async(param) => { await GoToAlcoholicDrink(); });
     GoToNonAlcoholicDrinkCommand = new DelegateCommand <ImageOption>(async(param) => { await GoToNonAlcoholicDrink(); });
     SearchCommand      = new DelegateCommand(SearchTermChanged);
     RefreshDataCommand = new DelegateCommand(async() => { await GetData(); });
     GoToDrinkCommand   = new DelegateCommand <string>(async(param) => { await GoToDrink(param); });
     GoToCocktailWithIngredientCommand = new DelegateCommand(async() => { await GoToCocktailWithIngredient(); });
     GoToCocktailWithGlassCommand      = new DelegateCommand(async() => { await GoToCocktailWithGlass(); });
     ClearSearchCommand = new DelegateCommand(() => SearchTerm = string.Empty);
     IsActiveChanged   += new EventHandler(OnActivated);
     RefreshDataCommand.Execute();
 }
Exemple #7
0
 public Form1()
 {
     InitializeComponent();
     asssitant = new TypeAssistant(600);
     ass.Idled += ass_Idled;          
 }
 public ViewModel()
 {
     TypeAssistant        = new TypeAssistant();
     TypeAssistant.Idled += TypeAssistant_Idled;
 }