This commit is contained in:
@@ -1074,22 +1074,14 @@ namespace VEPROMS
|
||||
#region InfoTabRO
|
||||
private void infotabRO_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
//ItemInfo curitm = dtp.ItemSelected;
|
||||
//DisplayRO dr = new DisplayRO(rofst, curitm, false, _MyRTB);
|
||||
//infotabControlPanelRO.Controls.Add(dr);
|
||||
infoPanel.Expanded = true;
|
||||
infoTabs.SelectedTab = infotabRO;
|
||||
|
||||
DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel;
|
||||
// if dtp == null, disable the ro & tran info tabs.
|
||||
if (dtp == null) return;
|
||||
|
||||
//ItemInfo curitm = dtp.ItemSelected;
|
||||
ROFST rofst = new ROFST("g:\\vehlp\\ro\\ro.fst");
|
||||
displayRO.MyROFST = rofst;
|
||||
displayRO.CurItem = dtp.ItemSelected;
|
||||
displayRO.MyRTB = _MyRTB;
|
||||
displayRO.MyRTB = dtp.MyPanel.DisplayItemSelected.MyDisplayRTB;
|
||||
}
|
||||
#endregion
|
||||
#region InfoTabTransition
|
||||
@@ -1098,23 +1090,19 @@ namespace VEPROMS
|
||||
if (tc == null || tc.SelectedTab == null) return;
|
||||
DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel;
|
||||
if (dtp == null) return;
|
||||
//btnInsTrans_Click(sender, e);
|
||||
displayTransition.MyRTB = dtp.MyPanel.DisplayItemSelected.MyDisplayRTB;
|
||||
displayTransition.CurTrans = null;
|
||||
displayTransition.RangeColor = Settings.Default.TransitionRangeColor;
|
||||
}
|
||||
private void btnInsTrans_Click(object sender, EventArgs e)
|
||||
{
|
||||
infoPanel.Expanded = true;
|
||||
infoTabs.SelectedTab = infotabTransition;
|
||||
|
||||
DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel;
|
||||
// if dtp == null, disable the ro & tran info tabs.
|
||||
if (dtp == null) return;
|
||||
|
||||
//ItemInfo curitm = dtp.ItemSelected;
|
||||
//displayTransition.CurItem = dtp.ItemSelected;
|
||||
displayTransition.MyRTB = _MyRTB;
|
||||
//DisplayTransition dt = new DisplayTransition(curitm, false, _MyRTB);
|
||||
//infotabControlPanelTransitions.Controls.Add(dt);
|
||||
//dt.Dock = DockStyle.Fill;
|
||||
displayTransition.CurTrans = null;
|
||||
displayTransition.RangeColor = Settings.Default.TransitionRangeColor;
|
||||
}
|
||||
#endregion
|
||||
private void tc_ItemSelectedChanged(object sender, DisplayPanelEventArgs args)
|
||||
@@ -1126,12 +1114,10 @@ namespace VEPROMS
|
||||
itemAnnotationsBindingSource.DataSource = args.MyVlnCSLARTB.MyItem.ItemAnnotations;
|
||||
DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel;
|
||||
if (dtp == null) return;
|
||||
//displayTransition.CurItem = dtp.ItemSelected;
|
||||
//displayTransition.MyRTB = dtp.MyPanel.DisplayItemSelected.MyDisplayRTB;
|
||||
displayTransition.MyRTB = dtp.MyPanel.DisplayRTB;
|
||||
displayRO.CurItem = dtp.ItemSelected;
|
||||
displayRO.MyRTB = dtp.MyPanel.DisplayItemSelected.MyDisplayRTB;
|
||||
displayRO.MyRTB = dtp.MyPanel.DisplayItemSelected.MyDisplayRTB;
|
||||
displayTransition.RangeColor = Settings.Default.TransitionRangeColor;
|
||||
}
|
||||
}
|
||||
private void itemAnnotationsBindingSource_DataSourceChanged(object sender, EventArgs e)
|
||||
@@ -1152,7 +1138,7 @@ namespace VEPROMS
|
||||
}
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
_MyRTB.Save();
|
||||
_MyRTB.SaveText();
|
||||
}
|
||||
|
||||
private void tc_LinkModifyTran(object sender, DisplayLinkEventArgs args)
|
||||
@@ -1160,6 +1146,20 @@ namespace VEPROMS
|
||||
infoPanel.Expanded = true;
|
||||
infoTabs.SelectedTab = infotabTransition;
|
||||
displayTransition.CurTrans = args.MyTransition;
|
||||
displayTransition.RangeColor = Settings.Default.TransitionRangeColor;
|
||||
}
|
||||
|
||||
private void tc_LinkModifyRO(object sender, DisplayLinkEventArgs args)
|
||||
{
|
||||
infoPanel.Expanded = true;
|
||||
infoTabs.SelectedTab = infotabRO;
|
||||
ROFST rofst = new ROFST("g:\\vehlp\\ro\\ro.fst");
|
||||
displayRO.MyROFST = rofst;
|
||||
DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel;
|
||||
if (dtp == null) return;
|
||||
displayRO.CurItem = dtp.ItemSelected;
|
||||
displayRO.MyRTB = dtp.MyPanel.DisplayItemSelected.MyDisplayRTB;
|
||||
displayRO.CurROLink = args.RoUsageid; // this is wrong - use for now.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user