private void ServerChanged(ServerChangedEventArgs e) { if (e.ChangeType.HasFlag(ChangeType.TreeChanged) || e.ChangeType.HasFlag(ChangeType.PropertyChanged)) { HasChangedSinceMenuUpdate = true; } }
private static void OnServerChanged(ServerChangedEventArgs e) { if (e.ChangeType.HasFlag(ChangeType.PropertyChanged)) { using (Helpers.Timer("updating server form settings from server {0}", e.Server.DisplayName)) { UpdateFromServerSettings(); } } }
private static void OnServerChanged(ServerChangedEventArgs e) { if (e.ChangeType.HasFlag(ChangeType.TreeChanged) || e.ChangeType.HasFlag(ChangeType.PropertyChanged)) { FileGroup fileGroup = e.Server.FileGroup; if (fileGroup != null) { fileGroup.HasChangedSinceWrite = true; } } }
public static void OnServerChanged(ServerChangedEventArgs e) { if (e.ChangeType.HasFlag(ChangeType.TreeChanged) || e.ChangeType.HasFlag(ChangeType.PropertyChanged)) { Server server = e.Server as Server; if (server != null) { bool dummy = false; RefreshScope(server.Parent as GroupBase, delegate(SmartGroup group) { group.UpdateForServer(server, ref dummy); }); } } }
private void OnServerChanged(ServerChangedEventArgs obj) { if (obj.ChangeType.HasFlag(ChangeType.PropertyChanged)) { using (Helpers.Timer("thumbnail ServerChanged handler")) { Server serverNode = obj.Server.ServerNode; foreach (ThumbnailLayout value in _layoutHash.Values) { ServerLabel[] labelArray = value.LabelArray; foreach (ServerLabel serverLabel in labelArray) { if (serverLabel.Server == serverNode) { serverLabel.CopyServerData(); } } } } } }