public void RunInstance(Instance instance) { var success = instance.Run(); if (success && App.Settings.CloseOnConnect) Application.Current.Shutdown(); }
public void FreezeSelection() { _previousSelection = MainWindow.instance.listBox.SelectedItem as Instance; _refreshHandle = InstanceCollectionView.DeferRefresh(); }