private void bt_NewHit_Click(object sender, RoutedEventArgs e) { ControlHitList hit = new ControlHitList(); hit.txt_No.Text = (sp_Hits.Children.Count + 1).ToString(); sp_Hits.Children.Add(hit); }
public NewLog() { this.DataContext = Main.lang; isClosed = false; InitializeComponent(); this.Top = Properties.Settings.Default.NewLogWindowTop; this.Left = Properties.Settings.Default.NewLogWindowLeft; FillComboBoxesDe(); ControlHitList hit = new ControlHitList(); hit.txt_No.Text = "1"; sp_Hits.Children.Add(hit); }