Skip to content

Commit

Permalink
Merge pull request #759 from HandyOrg/t/bot/fix-codeformatting
Browse files Browse the repository at this point in the history
[Bot] Automated PR to fix formatting errors
  • Loading branch information
NaBian authored Apr 1, 2021
2 parents bf26f26 + 978df93 commit 051a9c9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Shared/HandyControl_Shared/Controls/Image/GifImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ static GifImage()

private static void OnUriChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var ctl = (GifImage)d;
var ctl = (GifImage) d;
ctl.StopAnimate();

if (e.NewValue != null)
{
var v = (Uri)e.NewValue;
var v = (Uri) e.NewValue;
ctl.GetGifStreamFromPack(v);
ctl.StartAnimate();
}
Expand All @@ -58,16 +58,16 @@ private static void OnUriChanged(DependencyObject d, DependencyPropertyChangedEv

public Uri Uri
{
get => (Uri)GetValue(UriProperty);
get => (Uri) GetValue(UriProperty);
set => SetValue(UriProperty, value);
}

private static void OnVisibilityChanged(DependencyObject s, DependencyPropertyChangedEventArgs e)
{
var ctl = (GifImage)s;
var ctl = (GifImage) s;
if (ctl.NativeImage == IntPtr.Zero) return;

var v = (Visibility)e.NewValue;
var v = (Visibility) e.NewValue;
if (v != Visibility.Visible)
{
ctl.StopAnimate();
Expand Down Expand Up @@ -268,8 +268,8 @@ internal static void EnsureSave(GifImage image, string filename, Stream dataStre
created = dataStream = File.OpenRead(filename);
}

image._rawData = new byte[(int)dataStream.Length];
dataStream.Read(image._rawData, 0, (int)dataStream.Length);
image._rawData = new byte[(int) dataStream.Length];
dataStream.Read(image._rawData, 0, (int) dataStream.Length);
}
finally
{
Expand Down Expand Up @@ -380,7 +380,7 @@ internal Guid[] FrameDimensionsList
{
for (var i = 0; i < count; i++)
{
guids[i] = (Guid)InteropMethods.PtrToStructure((IntPtr)((long)buffer + size * i), typeof(Guid));
guids[i] = (Guid) InteropMethods.PtrToStructure((IntPtr) ((long) buffer + size * i), typeof(Guid));
}
}
finally
Expand Down

0 comments on commit 051a9c9

Please sign in to comment.