Made UpdateStatusChanged a week event.
Fixed a typo in help.
This commit is contained in:
parent
bbca065e18
commit
2af2997818
4 changed files with 33 additions and 7 deletions
|
|
@ -51,7 +51,7 @@ using MatterHackers.MatterControl.PrintHistory;
|
|||
|
||||
namespace MatterHackers.MatterControl
|
||||
{
|
||||
class FirstPanelTabView : TabControl
|
||||
class FirstPanelTabView : TabControl, IReceiveRootedWeakEvent
|
||||
{
|
||||
public static int firstPanelCurrentTab = 0;
|
||||
|
||||
|
|
@ -97,13 +97,26 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
QueueData.Instance.ItemAdded.RegisterEvent(NumQueueItemsChanged, ref unregisterEvents);
|
||||
QueueData.Instance.ItemRemoved.RegisterEvent(NumQueueItemsChanged, ref unregisterEvents);
|
||||
UpdateControlData.Instance.UpdateStatusChanged.RegisterEvent(SetUpdateNotification, ref unregisterEvents);
|
||||
UpdateControlData.Instance.UpdateStatusChanged.Register(this, "UpdateStatusChanged");
|
||||
|
||||
WidescreenPanel.PreChangePannels.RegisterEvent(SaveCurrentTab, ref unregisterEvents);
|
||||
|
||||
SelectedTabIndex = firstPanelCurrentTab;
|
||||
}
|
||||
|
||||
public void RootedEvent(string eventType, EventArgs e)
|
||||
{
|
||||
switch (eventType)
|
||||
{
|
||||
case "UpdateStatusChanged":
|
||||
this.SetUpdateNotification(null, null);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
void NumQueueItemsChanged(object sender, EventArgs widgetEvent)
|
||||
{
|
||||
string queueStringBeg = LocalizedString.Get("Queue").ToUpper();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue