-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormEditarPrograma.cs
More file actions
44 lines (41 loc) · 1.2 KB
/
Copy pathFormEditarPrograma.cs
File metadata and controls
44 lines (41 loc) · 1.2 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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace BetterStartUp
{
public partial class FormEditarPrograma : Form
{
Programa prg;
BetterStartUp bsup;
public FormEditarPrograma(Programa p, BetterStartUp bs)
{
InitializeComponent();
prg = p;
bsup = bs;
textBoxNomeExibicao.Text = p.nome;
textBoxCaminho.Text = p.caminho;
textBoxArgumentos.Text = p.argumentos;
numericUpDownDelay.Value = p.delay;
}
private void buttonCancelar_Click(object sender, EventArgs e)
{
this.Dispose();
}
private void buttonOk_Click(object sender, EventArgs e)
{
Programa original = prg;
prg.nome = textBoxNomeExibicao.Text;
prg.caminho = textBoxCaminho.Text;
prg.argumentos = textBoxArgumentos.Text;
prg.delay = (int)numericUpDownDelay.Value;
bsup.editPrograma(original, prg);
this.Dispose();
}
}
}