- 설정 업데이트 (창크기, Column 체크)

- 로딩 중 마우스 포인터
This commit is contained in:
2017-06-24 15:34:18 +09:00
parent 334c131e6e
commit 8c46481430
5 changed files with 169 additions and 56 deletions

View File

@@ -44,6 +44,8 @@ namespace friction
Config.Init();
UpdateRecentFile();
if(Config.OPTION.WindowBound.Width > 0)
Bounds = Config.OPTION.WindowBound;
}
void UpdateRecentFile()
@@ -82,6 +84,7 @@ namespace friction
m_DBFileName = strFile;
}
Cursor.Current = Cursors.WaitCursor;
m_DataHandler.LoadData(m_DBFileName);
@@ -102,6 +105,8 @@ namespace friction
Config.OPTION.AddRecentFile(m_DBFileName);
UpdateRecentFile();
Cursor.Current = Cursors.Default;
}
public void OpenPanel(DockContent panel)
@@ -171,6 +176,7 @@ namespace friction
return;
Cursor.Current = Cursors.WaitCursor;
m_Report = new Report();
m_Report.FilePath = strFilePath;
@@ -182,6 +188,8 @@ namespace friction
m_Report.Export();
Cursor.Current = Cursors.Default;
//OpenPanel(m_TrendGraphPanel);
//m_TrendGraphPanel.CopyChart(PanelTrendGraph.GRAPH_TYPE.HUMIDITY);
}
@@ -328,5 +336,13 @@ namespace friction
OpenPanel(m_ResultPanel);
}
#endregion
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
{
Config.OPTION.WindowBound = this.Bounds;
Config.OPTION.CheckedColumns = m_ResultPanel.GetCheckedColumns();
Config.OPTION.UncheckedColumns = m_ResultPanel.GetUncheckedColumns();
Config.Save();
}
}
}