private void AddWindow_Click(object sender, RoutedEventArgs e) { this.Hide(); Window form = new ADDSpending(this); form.ShowDialog(); SEARCH_Click(null, null); }
private void Update_Click(object sender, RoutedEventArgs e) { iz = ((Button)sender).Tag.ToString(); for (int i = 0; i < DataCenter.Items.Count; i++) { var uuu = (YourSpend)DataCenter.Items[i]; if (uuu.IdSpending.ToString() == iz) { this.Hide(); Window form = new ADDSpending(this, uuu); form.ShowDialog(); SEARCH_Click(null, null); break; } } }