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

            WebResourceUpdated?.Invoke(this, wrueArgs);
        }
예제 #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);
        }
예제 #4
0
        private void SendSavedMessage()
        {
            var wrueArgs = new WebResourceUpdatedEventArgs
            {
                Base64Content = innerContent,
                IsDirty       = (innerContent != originalContent),
                Type          = innerType
            };

            if (WebResourceUpdated != null)
            {
                WebResourceUpdated(this, wrueArgs);
            }
        }
예제 #5
0
        private void SendSavedMessage()
        {
            var wrueArgs = new WebResourceUpdatedEventArgs
            {
                Base64Content = innerContent,
                IsDirty = (innerContent != originalContent),
                Type = innerType
            };

            if (WebResourceUpdated != null)
            {
                WebResourceUpdated(this, wrueArgs);
            }
        }
예제 #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];
     }
 }