public AddWeek(TrainingBlock trainingBlock) { InitializeComponent(); this.trainingBlock = trainingBlock; block_type_text.Text = trainingBlock.GetBlockType() + " Block"; template_path = "templates//1_weekly_template.TEMPLATE"; }
private void AddWeek(object sender, RoutedEventArgs e) { Button button = (Button)sender; TrainingBlock training_block = (TrainingBlock)button.Tag; AddWeek window = new AddWeek(training_block); window.ShowDialog(); UpdateProgramView(); }