Now uses the defined TransMenu in the our dropdown list.
This commit is contained in:
parent
a7a6429c23
commit
bf81c633e9
@ -403,7 +403,8 @@ namespace Volian.Controls.Library
|
||||
TransTypeList ttl = _CurItemFrom.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList;
|
||||
listBoxTranFmt.Items.Clear();
|
||||
for (int i = 0; i < ttl.Count; i++)
|
||||
listBoxTranFmt.Items.Add(ttl[i].TransFormat.Replace("?.",""));
|
||||
listBoxTranFmt.Items.Add(new TransItem(ttl[i].TransMenu.Replace("?.",""),ttl[i].TransFormat.Replace("?.","")));
|
||||
//listBoxTranFmt.Items.Add(ttl[i].TransFormat.Replace("?.",""));
|
||||
listBoxTranFmt.SelectedIndex = _TranFmtIndx;
|
||||
groupPanelTranFmt.Style.BackColor = (_CurTrans == null && _TranFmtIndx==0) ? Color.Yellow : Color.Orange;
|
||||
E_TransUI etm = (E_TransUI)_CurItemFrom.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[_TranFmtIndx].TransUI;
|
||||
@ -1095,4 +1096,31 @@ namespace Volian.Controls.Library
|
||||
tvTran.Enabled=cbIncStepNum.Checked;
|
||||
}
|
||||
}
|
||||
public class TransItem
|
||||
{
|
||||
private string _ItemDescription;
|
||||
|
||||
public string ItemDescription
|
||||
{
|
||||
get { return _ItemDescription; }
|
||||
set { _ItemDescription = value; }
|
||||
}
|
||||
|
||||
private string _Format;
|
||||
|
||||
public string Format
|
||||
{
|
||||
get { return _Format; }
|
||||
set { _Format = value; }
|
||||
}
|
||||
public TransItem(string desc, string fmt)
|
||||
{
|
||||
_ItemDescription = desc;
|
||||
_Format = fmt;
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return _ItemDescription;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user