コード例 #1
0
ファイル: Helper.cs プロジェクト: KacperTurkowski/FITAPP
        private void List_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int index = list.SelectedIndex;
            Specific_exercisePage page = new Specific_exercisePage(training.exercises[index], this.page);

            grid = page.drawGrid(grid);
            grid = page.drawComponent(grid);
        }
コード例 #2
0
        private void trening_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            int      index             = listBox.SelectedIndex;
            Exercise exercise          = DataBase.todayT.exercises[index];
            Specific_exercisePage page = new Specific_exercisePage(exercise, this);

            grid = page.drawGrid(grid);
            grid = page.drawComponent(grid);
        }
コード例 #3
0
ファイル: Helper.cs プロジェクト: KacperTurkowski/FITAPP
        private void Helper_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            TabItem item  = (TabItem)tab.Items[tab.SelectedIndex];
            int     index = 0;

            for (index = 0; index < this.daysString.Length; index++)
            {
                if (item.Header.Equals("Dzień " + index))
                {
                    break;
                }
            }
            TabItem temp               = (TabItem)tab.Items[tab.SelectedIndex];
            ListBox listbox            = (ListBox)temp.Content;
            Specific_exercisePage page = new Specific_exercisePage(training.exercisesD[index - 1][listbox.SelectedIndex], this.page);

            grid = page.drawGrid(grid);
            grid = page.drawComponent(grid);
        }