You are on page 1of 8

Mover camara metodo 1

bt_bajar.Click += new RoutedEventHandler(bt_bajar_Click);
bt_subir.Click += new RoutedEventHandler(bt_subir_Click);
bt_set.Click += new RoutedEventHandler(bt_set_Click);

}
private void slider1_ValueChanged(object sender,
RoutedPropertyChangedEventArgs<double> e)
{
slider1.ValueChanged += new
RoutedPropertyChangedEventHandler<double>(slider1_ValueChanged);
slider1.ValueChanged += new
RoutedPropertyChangedEventHandler<double>(slider1_ValueChanged);
{ textBlock1.Text = e.NewValue +"ª"; }
}

private void bt_bajar_Click(object sender, RoutedEventArgs e)
{
{ slider1.Value--; }
}

private void bt_set_Click(object sender, RoutedEventArgs e)
{
sensor.ElevationAngle = (int)slider1.Value;

}

private void bt_subir_Click(object sender, RoutedEventArgs e)
{
{ slider1.Value++; }
}

<Slider x:Name="slider1" HorizontalAlignment="Left" VerticalAlignment="Top"
Margin="624,95,0,0" Height="176" Width="26" Maximum="27" Minimum="-27"
Orientation="Vertical" SmallChange="1" Interval="1" IsSnapToTickEnabled="True"
Grid.Row="1" ValueChanged="slider1_ValueChanged"/>
<Button x:Name="bt_subir" Content="subir" HorizontalAlignment="Left"
Margin="572,14,0,0" Grid.Row="2" VerticalAlignment="Top" Width="75"
Click="bt_subir_Click" Visibility="Hidden"/>
<Button x:Name="bt_bajar" Content="bajar" HorizontalAlignment="Left"
Margin="659,14,0,0" Grid.Row="2" VerticalAlignment="Top" Width="75"
Click="bt_bajar_Click" Visibility="Hidden"/>
<Button x:Name="bt_set" Content="set" HorizontalAlignment="Left"
Margin="758,13,0,0" Grid.Row="2" VerticalAlignment="Top" Width="75"
Click="bt_set_Click"/>
<TextBlock x:Name="textBlock1" HorizontalAlignment="Left" Margin="624,276,0,0"
Grid.Row="1" TextWrapping="Wrap" Text="&quot;&quot;" VerticalAlignment="Top"/>

Metodo 2 .

Danel2. // xform. //_objForm.MdiDarent = this.Controls.Add(xform). // _objForm?. // xform.Show().Danel2. //_objForm = new Organización().// Organización xform = new Organización().Show(). // Recuderación xform = new Recuderación().Add(_objForm).Controls. //danelBaseForm. // sdlitContainer1.MdiDarent = this. // sdlitContainer1. .Show(). // xform.Add(xform). // xform.Controls.Close().

i6 = iouble.Text).ToString(ti). 20).ToString(ti).Text = Convert. .Text = Convert.Forms.Text = Convert.tfr2).Text). } else if (i2 > i3 && i2 > i4 && i2 > i5 && i2 > i6 && i2 > i7 && i2 > i8 && i2 > i9 && i2 > i1) { ti = i2.PerformLayout(). } else if (i3 > i4 && i3 > i5 && i3 > i6 && i3 > i7 && i3 > i8 && i3 > i9 && i3 > i1 && i3 > i2) { ti = i3.ToString(ti).Parse(tbi5.tfr2.Name = "tfr2".Parse(tbi9.SuspendLayout().tfr2.Controls. tfr2. 261).tfr2.Text).Parse(tbi1. i8 = iouble.Text).Parse(tbi4. 120).Forms.Point(129.tfr2.Parse(tbi2.Drawing. } else if (i6 > i7 && i6 > i8 && i6 > i9 && i6 > i1 && i6 > i2 && i6 > i3 && i6 > i4 && i6 > i5) { ti = i6. // // complementaria // this. i2 = iouble. tfr2 . i9 = iouble. i1 = iouble.this.tfr2. this. this.TextAlign = System. tfr2.Drawing.Size(27. this.Text = Convert.tfr2 = new System. this.Text). if (i1 > i2 && i1 > i3 && i1 > i4 && i1 > i5 && i1 > i6 && i1 > i7 && i1 > i8 && i1 > i9) { ti = i1. tfr2. this.Add(this.Text = "0". } else if (i4 > i5 && i4 > i6 && i4 > i7 && i4 > i8 && i4 > i9 && i4 > i1 && i4 > i2 && i4 > i3) { ti = i4.Text = Convert. i4 = iouble.ClientSize = new System.Text).Parse(tbi8.Size(284.Drawing.ToString(ti). i3 = iouble. } else if (i5 > i6 && i5 > i7 && i5 > i8 && i5 > i9 && i5 > i1 && i5 > i2 && i5 > i3 && i5 > i4) { ti = i5.Visible = false.Size = new System.Center.Parse(tbi6.tfr2.Windows.HorizontalAlignment.Location = new System.TabIndex = 63. this. this.Name = "complementaria". this.Text). this. tfr2.Text). // // tfr2 // this. this.TextBox().ToString(ti).Windows.Parse(tbi7. i7 = iouble.Text).Parse(tbi3. this. i5 = iouble.ResumeLayout(false).tfr2.

Text = Convert.ToString(ti). } else if (i9 > i1 && i9 > i2 && i9 > i3 && i9 > i4 && i9 > i5 && i9 > i6 && i9 > i7 && i9 > i8) { ti = i9. } else { } . tfr2.ToString(ti). tfr2. tfr2.ToString(ti).Text = Convert. } else if (i8 > i9 && i8 > i1 && i8 > i2 && i8 > i3 && i8 > i4 && i8 > i5 && i8 > i6 && i8 > i7) { ti = i8. } else if (i7 > i8 && i7 > i9 && i7 > i1 && i7 > i2 && i7 > i3 && i7 > i4 && i7 > i5 && i7 > i6) { ti = i7.ToString(ti). tfr2.Text = Convert.Text = Convert.

tfr1.Text = Convert. } .ToString(ti). tfr1.Text = Convert.ToString(ti).else if (i10 > i11 && i10 > i7 && i10 > i6 && i10 > i5 && i10 > i4 && i10 > i3 && i10 > i2 && i10 > i1) { ti = i10. } else if (i11 > i10 && i11 > i7 && i11 > i6 && i11 > i5 && i11 > i4 && i11 > i3 && i11 > i2 && i11 > i1) { ti = i11.

} else if (i10 > i11 && i10 > i12 && i10 > i9) { ti3 = i10.ToString(ti2). tfr1. tfr1.ToString(ti3).ToString(ti1).ToString(ti3).ToString(ti2).ToString(ti1).Text = Convert.Text = Convert. tfr1.ToString(ti2).Text = Convert. } else if (i4 > i3 && i4 > i1 && i4 > i2) { ti1 = i4.Text = Convert. tfr1.// muy intensa if (i1 > i2 && i1 > i3 && i1 > i4) { ti1 = i1.Text = Convert.ToString(ti3). } // fuerza intensa else if (i5 > i6 && i5 > i7 && i5 > i8) { ti2 = i5. tfr1.ToString(ti2). } else if (i6 > i7 && i6 > i8 && i6 > i5) { ti2 = i6.Text = Convert.ToString(ti3). tfr1. tfr1. } else if (i11 > i12 && i11 > i9 && i11 > i10) { ti3 = i11. tfr1. } else if (i7 > i8 && i7 > i5 && i7 > i6) { ti2 = i7.Text = Convert. } else if (i2 > i3 && i2 > i4 && i2 > i1) { ti1 = i2. tfr1. } //moieraia else if (i9 > i10 && i9 > i11 && i9 > i12) { ti3 = i9. } else if (i12 > i11 && i12 > i10 && i12 > i9) { ti3 = i12.Text = Convert.Text = Convert.Text = Convert.ToString(ti1). } else if (i3 > i4 && i3 > i1 && i3 > i2) { ti1 = i3. tfr1.ToString(ti1). . tfr1. } else if (i8 > i7 && i8 > i5 && i8 > i6) { ti2 = i8. tfr1.Text = Convert.Text = Convert.

} .