using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DiagramUI.Interfaces;
namespace DataPerformerUI.UserControls
{
public partial class UserControlComponentCollectionVariablesStep : UserControl
{
event Action<double> act = (double a) => {};
public UserControlComponentCollectionVariablesStep()
{
InitializeComponent();
double a = 0;
textBox.Text = a + "";
}
public IComponentCollection Collection
{
get
{
return userControlComponentCollectionVariables.Collection;
}
set
{
userControlComponentCollectionVariables.Collection = value;
}
}
public double Step
{
get
{
return Double.Parse(textBox.Text);
}
set
{
textBox.Text = value + "";
}
}
public event Action<double> SetStep
{
add
{
act += value;
}
remove
{
act -= value;
}
}
private void buttonAccept_Click(object sender, EventArgs e)
{
act(Step);
}
}
}