Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-23 02:24:43 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-01-23 02:24:43 +0300
commitfb6b8383c27560c30e7a3076c67b925a7f8ff363 (patch)
treed30a5008e0fb39bdbac6e275689c2b776c4dee66 /SelectFileForm.cs
parenta6328fb50012c128e41d23d2de81241aeab14de2 (diff)
Archives support
Diffstat (limited to 'SelectFileForm.cs')
-rw-r--r--SelectFileForm.cs35
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();
+ }
+ }
+ }
+}