Fixed the sizing of the property page for sections.

Supporting logic to save date to start showing change bars.
This commit is contained in:
John Jenko 2016-02-24 17:33:22 +00:00
parent 96f80f7953
commit 1bc587a36f
2 changed files with 366 additions and 324 deletions

File diff suppressed because it is too large Load Diff

View File

@ -404,6 +404,28 @@ namespace VEPROMS
tv.ProcessingComplete += tv_ProcessingComplete; tv.ProcessingComplete += tv_ProcessingComplete;
tv.Processing += tv_Processing; tv.Processing += tv_Processing;
tv.CreateContinuousActionSummary += new vlnTreeViewEvent(tv_CreateContinuousActionSummary); 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; private bool _SkipRefresh = false;