Turning off the rooted weak event stuff
This commit is contained in:
parent
4b405a6aa8
commit
7d1f698141
22 changed files with 128 additions and 250 deletions
|
|
@ -14,7 +14,7 @@ using MatterHackers.MatterControl.PrinterCommunication;
|
|||
|
||||
namespace MatterHackers.MatterControl.ActionBar
|
||||
{
|
||||
class PrintActionRow : ActionRowBase, IReceiveRootedWeakEvent
|
||||
class PrintActionRow : ActionRowBase
|
||||
{
|
||||
Stopwatch timeSincePrintStarted = new Stopwatch();
|
||||
|
||||
|
|
@ -148,7 +148,7 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
cancelConnectButton.Click += (sender, e) => { UiThread.RunOnIdle(CancelConnectionButton_Click); };
|
||||
reprintButton.Click += new ButtonBase.ButtonEventHandler(onReprintButton_Click);
|
||||
doneWithCurrentPartButton.Click += new ButtonBase.ButtonEventHandler(onDoneWithCurrentPartButton_Click);
|
||||
ActiveTheme.Instance.ThemeChanged.Register(this, "ThemeChanged");
|
||||
ActiveTheme.Instance.ThemeChanged.RegisterEvent(ThemeChanged, ref unregisterEvents);
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
|
|
@ -160,17 +160,9 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
base.OnClosed(e);
|
||||
}
|
||||
|
||||
public void RootedEvent(string eventType, EventArgs e)
|
||||
public void ThemeChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (eventType)
|
||||
{
|
||||
case "ThemeChanged":
|
||||
this.Invalidate();
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
this.Invalidate();
|
||||
}
|
||||
|
||||
void onAddButton_Click(object sender, MouseEventArgs mouseEvent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue