중간 커밋

- dockpanelsuite 추가
- RowPanel, TablePanel 추가
This commit is contained in:
2017-06-14 18:21:43 +09:00
parent 475523e02e
commit 1b54dab234
14 changed files with 533 additions and 110 deletions

View File

@@ -7,18 +7,24 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
namespace friction
{
public partial class MainForm : Form
{
string m_DBFileName = "";
DataExcel m_DataLoader = new DataExcel();
TablePanel m_TablePanel = new TablePanel();
DataHandler m_DataLoader = new DataHandler();
TablePanel m_TablePanel = null;
RowPanel m_RowPanel = null;
public MainForm()
{
InitializeComponent();
dockPanel.Theme = new VS2015DarkTheme();
m_TablePanel = new TablePanel(this);
m_RowPanel = new RowPanel(this);
}
private void toolStripButtonOpen_Click(object sender, EventArgs e)
@@ -29,16 +35,25 @@ namespace friction
if(result == DialogResult.OK)
{
m_DBFileName = ofd.FileName;
m_DataLoader.LoadData(m_DBFileName);
m_DataLoader.LoadData2(m_DBFileName);
UpdateTablePanel();
statusStrip.Text = m_DBFileName;
toolStripStatusLabel.Text = m_DBFileName;
}
}
private void UpdateTablePanel()
{
m_TablePanel.UpdateData(m_DataLoader);
if(m_TablePanel.Visible == false)
m_TablePanel.Show(dockPanel);
}
public void OnApplyData()
{
m_RowPanel.UpdateData(m_DataLoader);
if (m_RowPanel.Visible == false)
m_RowPanel.Show(dockPanel);
}
}
}