Radar Graph에 material check 항목 적용

This commit is contained in:
2017-08-13 05:09:41 +09:00
parent bef2551cc6
commit d48d0167ac
5 changed files with 108 additions and 78 deletions

View File

@@ -20,6 +20,7 @@ namespace friction
DataHandler m_DataHandler = null;
string m_CurSpring = "";
List<string> m_CheckedTable = null;
bool m_bShowAlert = false;
Config.RANGE m_TempRange = Config.TEMP_ALL;
@@ -101,7 +102,8 @@ namespace friction
public void UpdateGraph()
{
string strSpring = m_DataHandler.GetCurSpring();
if (m_CurSpring == strSpring)
List<string> checkedTable = Config.GetInstance().GetTableChecked();
if (strSpring == m_CurSpring && checkedTable == m_CheckedTable)
return;
lbSpring.Text = "Material Spring: " + strSpring;
@@ -118,6 +120,9 @@ namespace friction
foreach(var data in graphData)
{
if (checkedTable.Contains(data.m_strTable) == false)
continue;
chart.Series["SeriesMax"].Points.AddXY(data.m_strTable, data.m_fMax);
chart.Series["SeriesAvg"].Points.AddXY(data.m_strTable, data.m_fAvg);
chart.Series["SeriesMin"].Points.AddXY(data.m_strTable, data.m_fMin);
@@ -129,13 +134,13 @@ namespace friction
m_CurSpring = strSpring;
if (graphData.Count < 3)
{
if (Visible == true)
MessageBox.Show(this, "데이터가 부족합니다");
else
m_bShowAlert = true;
}
//if (graphData.Count < 3)
//{
// if (Visible == true)
// MessageBox.Show(this, "데이터가 부족합니다");
// else
// m_bShowAlert = true;
//}
}
public Bitmap CopyChart()