コード例 #1
0
        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;
        }
コード例 #2
0
        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();
        }