40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
using Models;
|
|||
|
using Sunny.UI;
|
|||
|
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 LeatherApp.Page
|
|||
|
{
|
|||
|
public partial class GetHeightFrm : UIEditForm
|
|||
|
{
|
|||
|
public Thickness Thickness { get; set; }
|
|||
|
public GetHeightFrm(double yDis)
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
numYDis.Text = yDis.ToString();
|
|||
|
}
|
|||
|
|
|||
|
private void btnCancel_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
this.Close();
|
|||
|
}
|
|||
|
|
|||
|
private void btnOK_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
Thickness = new Thickness();
|
|||
|
Thickness.Y_Dis = double.Parse(numYDis.Text) * 100; //cm
|
|||
|
Thickness.Value1 = double.Parse(numHeight1.Text);
|
|||
|
Thickness.Value2 = double.Parse(numHeight2.Text);
|
|||
|
Thickness.Value3 = double.Parse(numHeight3.Text);
|
|||
|
this.Close();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|