You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/UCDraw/SigmaDrawerWellStyle/WellCurveStyleEditForm.cs

44 lines
1.1 KiB
C#

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 GeoSigma.SigmaDrawerStyle
{
/// <summary>
/// 线型编辑器
/// </summary>
public partial class WellCurveStyleEditForm : Form
{
public WellLineStyle style;
/// <summary>
/// Initializes a new instance of the <see cref="WellCurveStyleEditForm"/> class.
/// </summary>
/// <param name="style">曲线样式</param>
public WellCurveStyleEditForm(WellLineStyle style)
{
InitializeComponent();
this.style = style;
propertyGrid1.SelectedObject = this.style;
}
private void ButtonOk_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
Close();
}
private void ButtonCancel_Click(object sender, EventArgs e)
{
Close();
}
}
}