Files
friction/PanelMaterial.cs
mjjo53 cc42695fd8 - 각 창들 추가
- Analysis Panel 계산 준비
2017-06-19 14:07:56 +09:00

51 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;
using WeifenLuo.WinFormsUI.Docking;
namespace friction
{
public partial class PanelMaterial : DockContent
{
MainForm m_Owner = null;
public PanelMaterial(MainForm owner)
{
InitializeComponent();
m_Owner = owner;
this.ApplyTheme();
}
public void UpdateData(DataHandler data)
{
var MaterialSpring = data.GetMaterialSpring();
var MaterialTable = data.GetMaterialTable();
cbMaterialSpring.Items.Clear();
foreach (var x in MaterialSpring)
cbMaterialSpring.Items.Add(x);
cbMaterialSpring.SelectedIndex = 0;
cbMaterialTable.Items.Clear();
cbMaterialTable.Items.Add("All");
foreach (var x in MaterialTable)
cbMaterialTable.Items.Add(x);
cbMaterialTable.SelectedIndex = 0;
lbFileName.Text = data.GetFileName();
}
private void btApply_Click(object sender, EventArgs e)
{
m_Owner.OnApplyData();
}
}
}