Fixed the sizing of the property page for sections.
Supporting logic to save date to start showing change bars.
This commit is contained in:
parent
96f80f7953
commit
1bc587a36f
File diff suppressed because it is too large
Load Diff
@ -404,6 +404,28 @@ namespace VEPROMS
|
||||
tv.ProcessingComplete += tv_ProcessingComplete;
|
||||
tv.Processing += tv_Processing;
|
||||
tv.CreateContinuousActionSummary += new vlnTreeViewEvent(tv_CreateContinuousActionSummary);
|
||||
tv.SelectDateToStartChangeBars += tv_SelectDateToStartChangeBars;
|
||||
}
|
||||
|
||||
void tv_SelectDateToStartChangeBars(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
ProcedureInfo pi = (args.Node as VETreeNode).VEObject as ProcedureInfo;
|
||||
if (pi == null) return;
|
||||
tc.SaveCurrentEditItem(pi);
|
||||
|
||||
ProcedureConfig pc = pi.MyConfig as ProcedureConfig;
|
||||
if (pc == null) return;
|
||||
|
||||
dlgSetChangeBarStartDate cbdDlg = new dlgSetChangeBarStartDate(pc);
|
||||
if (cbdDlg.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
using (Item itm = Item.Get(pi.ItemID))
|
||||
{
|
||||
itm.MyContent.Config = pc.ToString();
|
||||
itm.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
itm.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool _SkipRefresh = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user