mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 13:35:31 +02:00
fx cop for Fz Editor part2 (#11293)
* disposable not being disposed * CA1305 fixes Co-authored-by: crutkas <crutkas@microsoft.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
@@ -29,8 +30,9 @@ namespace FancyZonesEditor
|
||||
|
||||
private void CanvasZone_SizeChanged(object sender, SizeChangedEventArgs e)
|
||||
{
|
||||
WidthLabel.Text = Width.ToString();
|
||||
HeightLabel.Text = Height.ToString();
|
||||
// using current culture as this is end user facing
|
||||
WidthLabel.Text = Width.ToString(CultureInfo.CurrentCulture);
|
||||
HeightLabel.Text = Height.ToString(CultureInfo.CurrentCulture);
|
||||
}
|
||||
|
||||
private CanvasLayoutModel model;
|
||||
|
||||
Reference in New Issue
Block a user