Ejemplo n.º 1
0
 private void ServerChanged(ServerChangedEventArgs e)
 {
     if (e.ChangeType.HasFlag(ChangeType.TreeChanged) || e.ChangeType.HasFlag(ChangeType.PropertyChanged))
     {
         HasChangedSinceMenuUpdate = true;
     }
 }
Ejemplo n.º 2
0
 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();
         }
     }
 }
Ejemplo n.º 3
0
 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;
         }
     }
 }
Ejemplo n.º 4
0
 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);
             });
         }
     }
 }
Ejemplo n.º 5
0
 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();
                     }
                 }
             }
         }
     }
 }