56 lines
1.3 KiB
C#
56 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace CtrEditor.ObjetosSim
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for ucBotella.xaml
|
|
/// </summary>
|
|
///
|
|
|
|
public class osBotella : osBase
|
|
{
|
|
public double diametro { get; set; }
|
|
// Otros datos y métodos relevantes para la simulación
|
|
|
|
private string _nombre = "Botella";
|
|
public override void Update()
|
|
{
|
|
// implementation of Update method
|
|
}
|
|
}
|
|
|
|
public partial class ucBotella : UserControl, IDataContainer
|
|
{
|
|
public osBase? Datos { get; set; }
|
|
|
|
public ucBotella()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
public void Resize(double width, double height) { }
|
|
public void Move(double Left, double Top)
|
|
{
|
|
if (Datos != null)
|
|
{
|
|
Datos.Left = Left;
|
|
Datos.Top = Top;
|
|
}
|
|
}
|
|
public void Rotate(double Angle) { }
|
|
|
|
}
|
|
}
|