/// 移除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void panBtn_GwMove_Click(object sender, EventArgs e)
{
if (this.lisgangwei.SelectedItem != null)
{
int index = this.lisgangwei.SelectedIndex;
if (lisgangwei.Items.Count > 1)
{
if (this.lisgangwei.SelectedIndex ==
this.lisgangwei.Items.Count - 1)
this.lisgangwei.Items.Count - 1)
{
this.lisgangwei.SelectedIndex = index - 1;
}
else
{
this.lisgangwei.SelectedIndex = index + 1;
}
}
this.lisgangwei.Items.RemoveAt(index);
}
}