private void SearchBar_SearchStarted(object sender, HandyControl.Data.FunctionEventArgs <string> e) { using (var db = new mydbContext()) { dgv.ItemsSource = db.tbl_Users.Where(x => x.NameX.Contains(txtSearch.Text) || x.LName.Contains(txtSearch.Text)).Select(x => x).ToList(); } }
private void SearchBar_SearchStarted(object sender, HandyControl.Data.FunctionEventArgs <string> e) { if (!string.IsNullOrEmpty(e.Info)) { searchList.SearchImage(e.Info); } }
private void TxtGanancia_ValueChanged(object sender, HandyControl.Data.FunctionEventArgs <double> e) { if (cambiando) { return; } cambiando = true; ActualizarRelacionPrecio(txtCosto.Value, txtGanancia.Value); cambiando = false; }
private void searchBar_SearchStarted(object sender, HandyControl.Data.FunctionEventArgs <string> e) { if (e.Info == null) { return; } foreach (var driver in Osversion) { ListBoxItem listBoxItem = listBox.ItemContainerGenerator.ContainerFromItem(driver) as ListBoxItem; listBoxItem?.Show(driver.ToString().Contains(e.Info.ToLower())); if (listBox.SelectedItems.Contains(driver)) { listBoxItem?.Show(true); } } }
private void NumericUpDown_ValueChanged(object sender, HandyControl.Data.FunctionEventArgs <double> e) { InvoiceDetail selectedItem = (InvoiceDetail)invoiceDataGrid.SelectedItem; if (selectedItem != null) { foreach (var detail in tempList) { if (detail.InvoiceID == selectedItem.InvoiceID) { detail.Amount = (detail.UnitPrice ?? 0) * (detail.Weight ?? 0); } } } invoiceDetail_notification.InvoiceDetailChange = true; TotalTextBox.Text = "$" + TotalCalculator().ToString(); }
/// <summary> /// Wird aufgerufen wenn sich die Einstellungen für den Graphen geändert haben /// </summary> private void GraphData_ValueChanged(object sender, HandyControl.Data.FunctionEventArgs <double> e) { //Den Typen des object sender zu NumericUpDown ändern NumericUpDown numericUpDown = sender as NumericUpDown; //Anhand des definierten DataContext herausfinden welches NumericUpDown sich geändert hat switch ((string)numericUpDown.DataContext) { case "XMin": if (e.Info < this.Graph_XMax - this.Graph_Step) { this.Graph_XMin = e.Info; } else { e.Handled = true; } break; case "XMax": if (e.Info > this.Graph_XMin + this.Graph_Step) { this.Graph_XMax = e.Info; } else { e.Handled = true; } break; case "Step": this.Graph_Step = e.Info; break; } //Neue Minimum und Maximum Werte für das Nutzerinterface setzten um Fehler vorzubeugen this.GraphXMinInput.Maximum = this.Graph_XMax - 0.01; this.GraphXMaxInput.Minimum = this.Graph_XMin + 0.01; //Graphen aktuallisieren if (this.AutoUpdateSwitch.IsChecked.Value) { this.UpdatePlot(); } }
private void CalendarClock_SelectedDateTimeChanged(object sender, HandyControl.Data.FunctionEventArgs <DateTime?> e) { }
private void TransLimitBox_ValueChanged(object sender, HandyControl.Data.FunctionEventArgs <double> e) { Common.appSettings.TransLimitNums = (int)TransLimitBox.Value; }
private void SearchBar_SearchStarted(object sender, HandyControl.Data.FunctionEventArgs <string> e) { }
private void Left_SideMenu_SelectionChanged(object sender, HandyControl.Data.FunctionEventArgs <object> e) { }