Exemple #1
0
        public Login_Form()
        {
            InitializeComponent();
            project_path path = new project_path();

            this.directory       = path.get_project_path();
            this.BackgroundImage = Image.FromFile(directory + "login.PNG");
        }
        public Buttons_Form()
        {
            InitializeComponent();
            project_path path = new project_path();

            this.directory     = path.get_project_path();
            this.label1.Text   = "use this buttons to control the video";
            this.button5.Image = Image.FromFile(directory + "mute.png");
            this.button2.Image = Image.FromFile(directory + "pause.jpg");
            this.button3.Image = Image.FromFile(directory + "plus.png");
        }
Exemple #3
0
        public Rate_Form()
        {
            InitializeComponent();
            project_path path = new project_path();

            this.directory     = path.get_project_path();
            this.button1.Image = Image.FromFile(directory + "white_star.png");
            this.button2.Image = Image.FromFile(directory + "white_star.png");
            this.button3.Image = Image.FromFile(directory + "white_star.png");
            this.button4.Image = Image.FromFile(directory + "white_star.png");
            this.button5.Image = Image.FromFile(directory + "white_star.png");
        }
        public Select_Video_Form()
        {
            InitializeComponent();
            project_path path = new project_path();

            this.pic_directory = path.get_project_path();
            //this.listView1.BackgroundImage = Image.FromFile(pic_directory+ "\\" + "videos_background.jpg");
            this.listView1.BackColor = Color.DimGray;
            this.BackColor           = Color.Black;
            this.textBox1.AutoSize   = false;
            this.textBox1.Size       = new System.Drawing.Size(337, 30);
            string[] files = Directory.GetFiles(pic_directory, "*.bmp", SearchOption.AllDirectories);
            imageList1.ImageSize = new Size(128, 128);
            for (int i = 0; i < files.Length; i++)
            {
                string fileName = Path.GetFileName(files[i]);
                fileName = fileName.Remove(fileName.Length - 4);
                imageList1.Images.Add(Image.FromFile(files[i]));
                listView1.Items.Add(fileName);
                listView1.Items[i].ImageIndex = i;
            }
            listView1.LargeImageList = imageList1;
        }