C2026-043-Tech-Debt_v1 - Stash 1
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
@@ -18,9 +13,8 @@ namespace Volian.Controls.Library
|
||||
public event ResetBookMarksInPROMSWindowsEvent ResetBookMarksInPROMSWindows;
|
||||
private void OnResetBookMarksInPROMSWindows()
|
||||
{
|
||||
if (ResetBookMarksInPROMSWindows != null)
|
||||
ResetBookMarksInPROMSWindows(this, new EventArgs());
|
||||
}
|
||||
ResetBookMarksInPROMSWindows?.Invoke(this, new EventArgs());
|
||||
}
|
||||
#endregion //delegates and Events
|
||||
#region Properties
|
||||
private MostRecentItemList _MyBookMarks;
|
||||
@@ -30,8 +24,7 @@ namespace Volian.Controls.Library
|
||||
set { _MyBookMarks = value; }
|
||||
}
|
||||
private ItemInfo _CurItemInfo = null;
|
||||
private bool _Initalizing = false;
|
||||
private DisplayTabControl _MyDisplayTabControl;
|
||||
private DisplayTabControl _MyDisplayTabControl;
|
||||
public DisplayTabControl MyDisplayTabControl
|
||||
{
|
||||
get { return _MyDisplayTabControl; }
|
||||
@@ -53,24 +46,11 @@ namespace Volian.Controls.Library
|
||||
_CurItemInfo = MyEditItem.MyItemInfo;
|
||||
}
|
||||
}
|
||||
//private StepRTB _MyRTB;
|
||||
//public StepRTB MyRTB
|
||||
//{
|
||||
// get { return _MyRTB; }
|
||||
// set
|
||||
// {
|
||||
// if (value == null) return;
|
||||
// if (_CurItemInfo != null && _CurItemInfo.ItemID == value.MyItemInfo.ItemID) return;
|
||||
// _MyRTB = value;
|
||||
// _CurItemInfo = MyRTB.MyItemInfo;
|
||||
// }
|
||||
//}
|
||||
#endregion
|
||||
#region Constructors
|
||||
public DisplayBookMarks()
|
||||
{
|
||||
InitializeComponent();
|
||||
//SetupBookMarks();
|
||||
}
|
||||
public void SetupBookMarks()
|
||||
{
|
||||
@@ -81,9 +61,6 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
lbxBookMarks.SelectedValueChanged += new EventHandler(lbxBookMarks_SelectedValueChanged);
|
||||
RefreshBookMarkData();
|
||||
//btnPrevPos.Enabled = false;
|
||||
//lbxBookMarks.Enabled = false;
|
||||
//_PrevBookMark = null;
|
||||
}
|
||||
|
||||
void _MyBookMarks_AfterRemove(object sender)
|
||||
@@ -92,8 +69,8 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
private void RefreshBookMarkData()
|
||||
{
|
||||
ResetBookMarkList();
|
||||
OnResetBookMarksInPROMSWindows(); // C2015-022 trigger event to update child PROMS windows with current bookmark list
|
||||
ResetBookMarkList();
|
||||
OnResetBookMarksInPROMSWindows(); // C2015-022 trigger event to update child PROMS windows with current bookmark list
|
||||
SaveBookMarks();
|
||||
}
|
||||
|
||||
@@ -148,10 +125,9 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
private void lbxBookMarks_Click(object sender, EventArgs e)
|
||||
{
|
||||
MostRecentItem itm = lbxBookMarks.SelectedValue as MostRecentItem;
|
||||
if(itm != null)
|
||||
MyDisplayTabControl.OpenItem(itm.MyItemInfo);
|
||||
}
|
||||
if (lbxBookMarks.SelectedValue is MostRecentItem itm)
|
||||
MyDisplayTabControl.OpenItem(itm.MyItemInfo);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user