private static void OnChangedCurrentRecord(DependencyObject doj, DependencyPropertyChangedEventArgs dp) { Prices_BC uc1 = doj as Prices_BC; _clearSheet(uc1); if (uc1.CurrentMarket != null) { uc1.UpdateGrid(); } }
private static void _clearSheet(Prices_BC uc1) { uc1.tm.Text = ""; uc1.r1.Text = ""; uc1.r2.Text = ""; uc1.time.Text = ""; foreach (var item in uc1.Grid) { item.Text = ""; } }