📄 trans.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Collections;
namespace Apriori
{
public partial class Trans : Form
{
public Trans()
{
InitializeComponent();
}
private void Trans_Load(object sender, EventArgs e)
{
}
public string GetTID()
{
return this.TID.Text;
}
public ArrayList GetItemList()
{
ArrayList items = new ArrayList();
for (int i = 0; i < this.SelectItemList.Items.Count; i++)
{
string itemID = this.SelectItemList.Items[i].ToString();
items.Add(itemID);
}
items.Sort();
return items;
}
private void Add_Click(object sender, EventArgs e)
{
if (this.ItemList.SelectedIndex < 0)
return;
for (int i = 0; i < this.SelectItemList.Items.Count; i++)
{
if (this.SelectItemList.Items[i] == this.ItemList.SelectedItem)
return;
}
this.SelectItemList.Items.Add(this.ItemList.SelectedItem);
}
private void Delete_Click(object sender, EventArgs e)
{
if (this.SelectItemList.SelectedIndex < 0)
return;
this.SelectItemList.Items.RemoveAt(this.SelectItemList.SelectedIndex);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -