private void AddButton_Click(object sender, RoutedEventArgs e) { IloscFormularzy++; CalculationForm cf = new CalculationForm(this); StackPanel.Children.Add(cf); calculationForms.Add(cf); StackPanel.Height += cf.Height; CountFormsLabel.Content = "Ilość formularzy: " + IloscFormularzy; }
public MainWindow() { InitializeComponent(); FileInit.Init("res/CuttingPrice.xml", "res/MaterialPrice.xml"); CalculationForm cf = new CalculationForm(this); StackPanel.Children.Add(cf); calculationForms.Add(cf); VersionCheck vc = new VersionCheck(); vc.CheckVersion(); }