private void ResetParam() { textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; offset = 0; hScrollBar1.Value = 0; hScrollBar2.Value = 0; hScrollBar3.Value = 0; currentAngleX = hScrollBar1.Value; currentAngleY = hScrollBar2.Value; currentAngleZ = hScrollBar3.Value; textBox1.Text = "0"; textBox2.Text = "0"; textBox3.Text = "0"; if (radioButton1.Checked) { AddPoints(_nodes); } else { AddPoints(_layersList.GetLayer(layerInd)); } button3_Click(this, new EventArgs()); }
private void hScrollBar1_ValueChanged(object sender, EventArgs e) { ind = hScrollBar1.Value; dataGridView2.DataSource = _layers.GetLayer(ind); label3.Text = ind.ToString(); }
public PointView(List <Node> nodes, LayersList layers) { InitializeComponent(); _nodes = nodes; _layers = layers; dataGridView1.DataSource = _nodes; dataGridView2.DataSource = _layers.GetLayer(ind); hScrollBar1.Maximum = layers.GetLayersCount() + 8; label3.Text = ind.ToString(); }
private void ShowLayers() { dataGridView1.DataSource = _layers.GetLayer(ind); }