private void treningi_Click(object sender, RoutedEventArgs e) { Grid panel = getPanel(grid); panel = new TrainingPage().drawGrid(panel); panel = new TrainingPage().drawComponent(panel); }
public AddNewTraining(TrainingPage page) { this.page = page; InitializeComponent(); foreach (Tag tag in DataBase.trainingTag) { this.wybierz_tag.Items.Add(tag); } for (int i = 0; i < 7; i++) { exercises[i] = new List <Exercise>(); exercisesAmount[i] = new List <int>(); } createTabControl(); }