You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
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 GeoSigma.UCDraw.WellAndSection
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class FrmDelBendLayers : Form
|
|
|
|
|
|
{
|
|
|
|
|
|
public List<string> strlayerTracks = new List<string>();
|
|
|
|
|
|
|
|
|
|
|
|
public List<string> selectDelTracks = new List<string>();
|
|
|
|
|
|
|
|
|
|
|
|
public FrmDelBendLayers()
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void FrmDelBendLayers_Shown(object sender, EventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
for(int i = 0; i< strlayerTracks.Count; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
int id = this.checkedListBoxTracks.Items.Add(strlayerTracks[i]);
|
|
|
|
|
|
this.checkedListBoxTracks.SetItemChecked(id, true);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void btnOk_Click(object sender, EventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
for (int i = 0; i < this.checkedListBoxTracks.Items.Count; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
CheckState state = this.checkedListBoxTracks.GetItemCheckState(i);
|
|
|
|
|
|
if (state == CheckState.Checked)
|
|
|
|
|
|
{
|
|
|
|
|
|
string strlayer = this.checkedListBoxTracks.Items[i].ToString();
|
|
|
|
|
|
if (selectDelTracks.Contains(strlayer) == false)
|
|
|
|
|
|
{
|
|
|
|
|
|
selectDelTracks.Add(strlayer);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|