diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-01-23 02:24:43 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-01-23 02:24:43 +0300 |
commit | fb6b8383c27560c30e7a3076c67b925a7f8ff363 (patch) | |
tree | d30a5008e0fb39bdbac6e275689c2b776c4dee66 /SelectFileForm.cs | |
parent | a6328fb50012c128e41d23d2de81241aeab14de2 (diff) |
Archives support
Diffstat (limited to 'SelectFileForm.cs')
-rw-r--r-- | SelectFileForm.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/SelectFileForm.cs b/SelectFileForm.cs new file mode 100644 index 00000000..95514f43 --- /dev/null +++ b/SelectFileForm.cs @@ -0,0 +1,35 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace com.clusterrr.hakchi_gui
+{
+ public partial class SelectFileForm : Form
+ {
+ public SelectFileForm(string[] fileNames)
+ {
+ InitializeComponent();
+ listBoxFiles.Items.Clear();
+ listBoxFiles.Items.AddRange(fileNames);
+ }
+
+ private void listBoxFiles_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ buttonOk.Enabled = listBoxFiles.SelectedItems.Count > 0;
+ }
+
+ private void listBoxFiles_DoubleClick(object sender, EventArgs e)
+ {
+ if (listBoxFiles.SelectedItem != null)
+ {
+ DialogResult = DialogResult.OK;
+ Close();
+ }
+ }
+ }
+}
|