-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStepControl.cs
More file actions
25 lines (21 loc) · 761 Bytes
/
StepControl.cs
File metadata and controls
25 lines (21 loc) · 761 Bytes
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
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace MemeGen
{
public partial class StepControl : UserControl
{
public ushort StepNumber { get; set; }
public string ImagePath => txtImage.Text;
public string Caption => txtCaption.Text;
public StepControl(ushort stepNumber)
{
InitializeComponent();
StepNumber = stepNumber;
Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
}
private void txtPickImage_Click(object sender, EventArgs e) => ImagePicker.ShowDialog();
private void FilePicker_FileOk(object sender, CancelEventArgs e) => txtImage.Text = ImagePicker.FileName;
}
}