public NotificationIconView(IFileMenu file_menu, IWindowMenu window_menu, IHelpMenu help_menu, IRegionManager shell) { this.file_menu = file_menu; this.shell = shell; this.window_menu = window_menu; this.help_menu = help_menu; Application.ApplicationExit += (sender, e) => Dispose(); }
public SettingPage() { InitializeComponent(); DependencyService.Register <IFileMenu>(); file = DependencyService.Get <IFileMenu>(); TurnThresholdValue.Value = Settings.Singleton.TurnThreshold; CenterPointValue.Value = Settings.Singleton.CenterPoint; AccelThresholdValue.Value = Settings.Singleton.AcceleroThreshold; Disappearing += Closing; }