public override void OnActivate() { RefreshButton.Instance.AddTo(Main.Instance.ToolStrip); RefreshButton.Instance.Refresh += refresh; ClearButton.Instance.AddTo(Main.Instance.ToolStrip); ClearButton.Instance.Click += clear; SensorButton.AddTo(Main.Instance.ToolStrip); SaveFileButton.Instance.AddTo(Main.Instance.ToolStrip); SaveFileButton.Instance.Click += save; updateUi(); base.OnActivate(); }
public override void OnActivate() { RefreshButton.Instance.TimerButtonEnabled = false; RefreshButton.Instance.AddTo(Main.Instance.ToolStrip); RefreshButton.Instance.Refresh += refresh; ClearButton.Instance.AddTo(Main.Instance.ToolStrip); ClearButton.Instance.Click += clear; SensorButton.AddTo(Main.Instance.ToolStrip); SaveFileButton.Instance.AddTo(Main.Instance.ToolStrip); SaveFileButton.Instance.Click += save; PrintButton.Instance.AddTo(Main.Instance.ToolStrip); PrintButton.Instance.Click += printChart; updateUi(); base.OnActivate(); }