-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSmallPicture.cs
More file actions
56 lines (53 loc) · 1.52 KB
/
SmallPicture.cs
File metadata and controls
56 lines (53 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using SmartRender.MainClass;
using SmartRender.Render;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SmartRender
{
public partial class SmallPicture : Form
{
public SmallPicture()
{
InitializeComponent();
save.Click(new EventHandler(button1_Click));
}
int maxi;
public int max
{
get { return maxi; }
set { maxi = value; tbar.Maximum = value; }
}
string video;
public string file
{
get { return video; }
set { video = value; }
}
FolderBrowserDialog fbd = new FolderBrowserDialog();
private void button1_Click(object sender, EventArgs e)
{
if (fbd.ShowDialog() == DialogResult.OK)
{
File.Copy(Variables.S_PICTURE + @"\LastPicture.jpg", fbd.SelectedPath + @"\" + t1.Text + ".jpg");
}
}
private void label1_TextChanged(object sender, EventArgs e)
{
double second = double.Parse(tbar.Value.ToString());
string saniye = TimeSpan.FromSeconds(second).ToString();
Video.Kucuk_Resim(file, saniye, tbar.Maximum);
}
private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = tbar.Value.ToString();
}
}
}