Exemple #1
0
 public static void run_cmd(string port)
 {
     try
     {
         project_path path = new project_path();
         System.Diagnostics.Process pythonEngineProcess = new System.Diagnostics.Process();
         pythonEngineProcess.StartInfo.FileName               = path.get_interpreter_path();
         pythonEngineProcess.StartInfo.Arguments              = path.get_client_file_name() + " " + port;
         pythonEngineProcess.StartInfo.UseShellExecute        = false;
         pythonEngineProcess.StartInfo.RedirectStandardOutput = false;
         pythonEngineProcess.Start();
     }
     catch (Win32Exception e)
     {
         EndProcess(e);
     }
     catch (ObjectDisposedException e)
     {
         EndProcess(e);
     }
     catch (InvalidOperationException e)
     {
         EndProcess(e);
     }
     catch (Exception e)
     {
         EndProcess(e);
     }
 }
Exemple #2
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 #4
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;
        }