示例#1
0
        private void PageViewingExercises(bool isVisible)
        {
            treeViewMusclesAndExercises.Visible = isVisible;
            buttonBack.Visible         = isVisible;
            panelIcon.Visible          = isVisible;
            panelHeadExercises.Visible = isVisible;
            WorkWithTree workWithTree = new WorkWithTree(treeViewMusclesAndExercises);

            workWithTree.FillTree();

            currentPageMainWindow = CurrentPageMainWindow.pageViewingExercises;
        }
示例#2
0
        private void удалитьToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ////MessageBox.Show(curretnNode.Node.Tag.ToString() + " " + curretnNode.Node.Parent.Tag.ToString());
            WorkWithExercises workWithExercises = new WorkWithExercises();
            TreeNode          oldNode           = curretnNode.Node;

            workWithExercises.DelExercisesAndMuscles(Convert.ToInt32(curretnNode.Node.Parent.Tag), Convert.ToInt16(curretnNode.Node.Tag));
            WorkWithTree workWithTree = new WorkWithTree(treeViewMusclesAndExercises);

            workWithTree.FillTree();

            foreach (TreeNode node in treeViewMusclesAndExercises.Nodes)
            {
                if (node.Text == oldNode.Text)
                {
                    node.Expand();
                }
            }
        }
示例#3
0
        //public AddUserWindow addUserwindow = new AddUserWindow();

        public MainWindow()
        {
            InitializeComponent();
            //Win32.AllocConsole();

            //addTrainingProgram.FillLisViewUsers(listViewUsers);


            WorkWithTree workWithTree = new WorkWithTree(treeViewMusclesAndExercises);

            workWithTree.FillTree();
            treeViewMusclesAndExercises.BeforeSelect += TreeViewMusclesAndExercises_BeforeSelect;

            //axWindowsMediaPlayer.URL = @"C:\Users\79374\Desktop\imagesFromDB\video\Lesha Svik - Sterva (Premera treka 2019) (MosCatalogue.net).mkv";
            //axWindowsMediaPlayer.uiMode = "mini";
            //axWindowsMediaPlayer.Ctlcontrols.stop();


            //workWithImages.Sa(@"C:\Users\79374\Desktop\imagesFromDB\video\2.jpg", @"C:\Users\79374\Desktop\imagesFromDB\video\22.mkv", "insert into ImagesForExercises values (@id, @imageName, @imageData, @videoName, @videoData)", 2);
            //workWithImages.SaveImageVideoToDatbase("ImagesForExercises", @"C:\Users\79374\Desktop\imagesFromDB\video\2.jpg", @"C:\Users\79374\Desktop\imagesFromDB\video\22.mkv", 3);

            // workWithImages.SaveImageVideoToDatbase("ImagesForExercises", null, @"C:\Users\79374\Desktop\imagesFromDB\video\22.mkv",4);
        }