-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMiuCommands.cs
More file actions
43 lines (37 loc) · 1.29 KB
/
MiuCommands.cs
File metadata and controls
43 lines (37 loc) · 1.29 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
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 StreamStartingTimer {
public partial class frmMiuCommands : Form {
public frmMiuCommands() {
InitializeComponent();
}
private void UpdateListView() {
listView1.BeginUpdate();
listView1.Items.Clear();
foreach (var MiuCmd in Shared.MIUConnector.GetMiuCommands()) {
ListViewItem item = new ListViewItem(MiuCmd.Key);
//item.SubItems.Add(timerEvent.Columns[0]);
item.SubItems.Add(MiuCmd.Value);
listView1.Items.Add(item);
//MessageBox.Show(MiuCmd.Key);
}
listView1.EndUpdate();
}
private void frmMiuCommands_Shown(object sender, EventArgs e) {
UpdateListView();
}
private void frmMiuCommands_Load(object sender, EventArgs e) {
UpdateListView();
}
private void listView1_MouseDoubleClick(object sender, MouseEventArgs e) {
System.Windows.Forms.Clipboard.SetText(listView1.Items[listView1.SelectedIndices[0]].Text);
}
}
}