- 임시 커밋

This commit is contained in:
2017-02-08 16:25:58 +09:00
parent 1d43655567
commit af9ef4aa60
7 changed files with 6489 additions and 296 deletions

View File

@@ -73,7 +73,7 @@ namespace AutoSellerNS
m_CybosHelper = new CybosHelper(this);
m_iCurPricePanelWith = splitContainer2.Panel2.Width;
m_iCurPricePanelWith = 240;
var materialSkinManager = MaterialSkinManager.Instance;
materialSkinManager.AddFormToManage(this);
@@ -97,9 +97,9 @@ namespace AutoSellerNS
private void splitContainer2_SizeChanged(object sender, EventArgs e)
{
//int iDist = Math.Min(Math.Max(splitContainer2.Width-m_iCurPricePanelWith, splitContainer2.Panel1MinSize), splitContainer2.Width-splitContainer2.Panel2MinSize);
//if(iDist >= splitContainer2.Panel1MinSize && iDist <= splitContainer2.Width - splitContainer2.Panel2MinSize)
// splitContainer2.SplitterDistance = iDist;
int iDist = Math.Min(Math.Max(splitContainer2.Width-m_iCurPricePanelWith, splitContainer2.Panel1MinSize), splitContainer2.Width-splitContainer2.Panel2MinSize);
if(iDist >= splitContainer2.Panel1MinSize && iDist <= splitContainer2.Width - splitContainer2.Panel2MinSize)
splitContainer2.SplitterDistance = iDist;
}
private void btCybos_Click(object sender, EventArgs e)
@@ -112,7 +112,7 @@ namespace AutoSellerNS
btUpdate.Enabled = true;
btSell.Enabled = true;
btUpdate_Click(null, null);
//btUpdate_Click(null, null);
}
private void AddItem(ITEM Item)
@@ -221,7 +221,7 @@ namespace AutoSellerNS
return m_bSell;
}
public void OnReceivedCurPrice(string strCode, int iPrice, int iMaxPrice, int iCheckCount)
public void OnReceivedCurPrice(string strCode, int iPrice, int iMaxPrice, int iCheckCount, bool bReal)
{
ITEM Item = m_Items.FirstOrDefault(s => s.m_strCode == strCode);
if (Item == default(ITEM))
@@ -239,7 +239,7 @@ namespace AutoSellerNS
if (row == default(ListViewItem))
return;
row.SubItems[chCurPrice.Index].Text = string.Format("{0:n0}", Item.m_iCurPrice);
row.SubItems[chCurPrice.Index].Text = string.Format("{0}{1:n0}", bReal?"":"*", Item.m_iCurPrice);
row.SubItems[chAssessedValue.Index].Text = string.Format("{0:n0}", Item.m_iAssessedValue);
row.SubItems[chYield.Index].Text = string.Format("{0:n2}", Item.m_dYield);
row.SubItems[chMaxPrice.Index].Text = string.Format("{0:n0}", iMaxPrice);
@@ -252,7 +252,7 @@ namespace AutoSellerNS
if (row == default(ListViewItem))
return;
row.SubItems[chCurPrice.Index].Text = string.Format("{0:n0}", Item.m_iCurPrice);
row.SubItems[chCurPrice.Index].Text = string.Format("{0}{1:n0}", bReal?"":"*", Item.m_iCurPrice);
row.SubItems[chAssessedValue.Index].Text = string.Format("{0:n0}", Item.m_iAssessedValue);
row.SubItems[chYield.Index].Text = string.Format("{0:n2}", Item.m_dYield);
row.SubItems[chMaxPrice.Index].Text = string.Format("{0:n0}", iMaxPrice);