Exemplo n.º 1
0
        private void SendSavedMessage()
        {
            var wrueArgs = new WebResourceUpdatedEventArgs
            {
                Base64Content = innerContent,
                IsDirty       = innerContent != originalContent,
                Type          = (Enumerations.WebResourceType)resource.EntityType
            };

            WebResourceUpdated?.Invoke(this, wrueArgs);
        }
Exemplo n.º 2
0
        private void SendSavedMessage()
        {
            var wrueArgs = new WebResourceUpdatedEventArgs
            {
                Base64Content = innerContent,
                IsDirty       = (innerContent != originalContent),
                Type          = Enumerations.WebResourceType.Silverlight
            };

            WebResourceUpdated?.Invoke(this, wrueArgs);
        }
        private void SendSavedMessage()
        {
            byte[] bytes = Encoding.UTF8.GetBytes(innerContent);

            var wrueArgs = new WebResourceUpdatedEventArgs
            {
                Base64Content = Convert.ToBase64String(bytes),
                IsDirty       = innerContent != originalContent,
                Type          = innerType
            };

            WebResourceUpdated?.Invoke(this, wrueArgs);
        }
Exemplo n.º 4
0
        private void SendSavedMessage()
        {
            var wrueArgs = new WebResourceUpdatedEventArgs
            {
                Base64Content = innerContent,
                IsDirty       = (innerContent != originalContent),
                Type          = innerType
            };

            if (WebResourceUpdated != null)
            {
                WebResourceUpdated(this, wrueArgs);
            }
        }
Exemplo n.º 5
0
        private void SendSavedMessage()
        {
            var wrueArgs = new WebResourceUpdatedEventArgs
            {
                Base64Content = innerContent,
                IsDirty = (innerContent != originalContent),
                Type = innerType
            };

            if (WebResourceUpdated != null)
            {
                WebResourceUpdated(this, wrueArgs);
            }
        }
Exemplo n.º 6
0
 void MainFormWebResourceUpdated(object sender, WebResourceUpdatedEventArgs e)
 {
     fileMenuSave.Enabled = e.IsDirty;
     fileMenuUpdateAndPublish.Enabled = !e.IsDirty;
     if (e.IsDirty)
     {
         if (!tslResourceName.Text.Contains(" (not saved)"))
         {
             tslResourceName.ForeColor = Color.Red;
             tslResourceName.Text += " (not saved)";
         }
     }
     else
     {
         tslResourceName.ForeColor = Color.Black;
         tslResourceName.Text = tslResourceName.Text.Split(' ')[0];
     }
 }