public void RemoveLoadingManager(SimvaLoadingManager manager) { if (manager) { // If a delegate is not present the method gets ignored loadingListeners -= manager.IsLoading; } }
public void AddLoadingManager(SimvaLoadingManager manager) { if (manager) { // To make sure we only have one instance of a notify per manager // We first remove (as it is ignored if not present) loadingListeners -= manager.IsLoading; // Then we add it loadingListeners += manager.IsLoading; } }
public InviteWindow(ProfileCollection profileCollection) { pCollection = profileCollection; InitializeComponent(); label1.Visible = false; IPBox.Visible = false; ConnectButton.Visible = false; CancelButton.Visible = false; StartServerButton.Visible = false; StartClientButton.Visible = false; loading = new LoadingDelegate(Loading); }