mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
[MWB][CQ]Remove use of deprecated BinaryFormatter (#32925)
This commit is contained in:
@@ -54,7 +54,6 @@
|
|||||||
this.dUCTDOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.dUCTDOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.tRUONG2DToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.tRUONG2DToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.NotifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
|
this.NotifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
|
||||||
this.imgListIcon = new System.Windows.Forms.ImageList(this.components);
|
|
||||||
this.picLogonLogo = new System.Windows.Forms.PictureBox();
|
this.picLogonLogo = new System.Windows.Forms.PictureBox();
|
||||||
this.MainMenu.SuspendLayout();
|
this.MainMenu.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.picLogonLogo)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.picLogonLogo)).BeginInit();
|
||||||
@@ -228,12 +227,6 @@
|
|||||||
this.NotifyIcon.Text = "Microsoft® Visual Studio® 2010";
|
this.NotifyIcon.Text = "Microsoft® Visual Studio® 2010";
|
||||||
this.NotifyIcon.MouseDown += new System.Windows.Forms.MouseEventHandler(this.NotifyIcon_MouseDown);
|
this.NotifyIcon.MouseDown += new System.Windows.Forms.MouseEventHandler(this.NotifyIcon_MouseDown);
|
||||||
//
|
//
|
||||||
// imgListIcon
|
|
||||||
//
|
|
||||||
this.imgListIcon.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgListIcon.ImageStream")));
|
|
||||||
this.imgListIcon.TransparentColor = System.Drawing.Color.Transparent;
|
|
||||||
this.imgListIcon.Images.SetKeyName(0, "Logo.ico");
|
|
||||||
//
|
|
||||||
// picLogonLogo
|
// picLogonLogo
|
||||||
//
|
//
|
||||||
this.picLogonLogo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
this.picLogonLogo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
||||||
@@ -286,7 +279,6 @@
|
|||||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
|
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
|
||||||
private System.Windows.Forms.ToolStripMenuItem dUCTDOToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem dUCTDOToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem tRUONG2DToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem tRUONG2DToolStripMenuItem;
|
||||||
private System.Windows.Forms.ImageList imgListIcon;
|
|
||||||
private System.Windows.Forms.ToolStripMenuItem menuSendScreenCapture;
|
private System.Windows.Forms.ToolStripMenuItem menuSendScreenCapture;
|
||||||
private System.Windows.Forms.ToolStripMenuItem menuSend2Myself;
|
private System.Windows.Forms.ToolStripMenuItem menuSend2Myself;
|
||||||
private System.Windows.Forms.ToolStripMenuItem menuGetScreenCapture;
|
private System.Windows.Forms.ToolStripMenuItem menuGetScreenCapture;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ using Microsoft.PowerToys.Telemetry;
|
|||||||
// 2023- Included in PowerToys.
|
// 2023- Included in PowerToys.
|
||||||
// </history>
|
// </history>
|
||||||
using MouseWithoutBorders.Class;
|
using MouseWithoutBorders.Class;
|
||||||
using MouseWithoutBorders.Form;
|
using MouseWithoutBorders.Properties;
|
||||||
using Timer = System.Windows.Forms.Timer;
|
using Timer = System.Windows.Forms.Timer;
|
||||||
|
|
||||||
[module: SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "MouseWithoutBorders.frmScreen.#ShowMouseWithoutBordersUiOnWinLogonDesktop(System.Boolean)", Justification = "Dotnet port with style preservation")]
|
[module: SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "MouseWithoutBorders.frmScreen.#ShowMouseWithoutBordersUiOnWinLogonDesktop(System.Boolean)", Justification = "Dotnet port with style preservation")]
|
||||||
@@ -617,7 +617,7 @@ namespace MouseWithoutBorders
|
|||||||
{
|
{
|
||||||
Graphics g;
|
Graphics g;
|
||||||
Pen p;
|
Pen p;
|
||||||
Bitmap bm = new(imgListIcon.Images[0]);
|
Bitmap bm = Images.notify_default;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (curIcon == Common.ICON_ONE)
|
if (curIcon == Common.ICON_ONE)
|
||||||
|
|||||||
@@ -196,48 +196,6 @@
|
|||||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
AAAAAAAA//8AAP//AAD//wAA7/8AAMfnAADjzwAA8Z8AAAAAAAABAAAA848AAOfHAADJJwAA+T8AAP//
|
AAAAAAAA//8AAP//AAD//wAA7/8AAMfnAADjzwAA8Z8AAAAAAAABAAAA848AAOfHAADJJwAA+T8AAP//
|
||||||
AAD//wAA//8AAA==
|
AAD//wAA//8AAA==
|
||||||
</value>
|
|
||||||
</data>
|
|
||||||
<metadata name="imgListIcon.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>233, 17</value>
|
|
||||||
</metadata>
|
|
||||||
<data name="imgListIcon.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>
|
|
||||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
|
||||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0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||||
Afb/AEgAAR0BkQH2AR4BkAH2ARgBkAH2ARQBjgH2ATEBmAH1HgABJQGSAfYBFgGPAfYBFgGPAfYBKgGU
|
|
||||||
AfUBEgGNAfb/AEIAAR0BkQH2ARQBiwH3ARkBkAH2ARMBjgH2ATEBlwH1BgAGBAwABgQGAAElAZIB9gEW
|
|
||||||
AY8B9gEWAY8B9gEfAY8B9wESAY0B9v8APwABEgGNAfYBHwGQAfYBDgGMAfYBMwGYAfQGAAwEBgAMBAYA
|
|
||||||
ASYBkgH1AQ8BjAH2AScBlAH1ARIBjQH2/wBCAAESAY0B9gE0AZgB9QkAAwQB/wH4AfAGBAYAAwQB/wH4
|
|
||||||
AfAGBAkAATABlgH1ARIBjQH2/wBUAAwEBgAMBP8AZgAGBAwABgT/AP8A/wD/AP8A/wD/AP8A/wD/AE4A
|
|
||||||
AUIBTQE+BwABPgMAASgDAAGAAwABIAMAAQEBAAEBBgABAhYAA/8BAAT/DAAE/wwABP8MAAT/DAAE/wwA
|
|
||||||
BP8MAAH+Av8BfwwAAfwBfwH+AT8MAAH4AT8B/AEfDAAB/AEfAfgBPwwAAf4BDwHwAX8MAAH/AQcB4AH/
|
|
||||||
DAAB/wGDAcEB/wwAAf8BwQGDAf8tAAEBAYANAAH/AYMBwQH/DAAB/wEHAeAB/wwAAf4BDwHwAX8MAAH8
|
|
||||||
AR8B+AE/DAAB+AEzAcwBHwwAAfgBYQGGAR8MAAH8AeEBhwE/DAAB/wHhAYcB/wwAAf8B8wHPAf8MAAT/
|
|
||||||
DAAE/wwABP8MAAT/DAAE/wwABP8MAAs=
|
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
|||||||
BIN
src/modules/MouseWithoutBorders/App/Icon/notify_default.bmp
Normal file
BIN
src/modules/MouseWithoutBorders/App/Icon/notify_default.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 680 B |
@@ -103,6 +103,11 @@
|
|||||||
<Compile Update="Form\Settings\SetupPage5.cs">
|
<Compile Update="Form\Settings\SetupPage5.cs">
|
||||||
<SubType>UserControl</SubType>
|
<SubType>UserControl</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Update="Properties\Images.Designer.cs">
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Images.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Update="MouseWithoutBorders.exe.manifest">
|
<None Update="MouseWithoutBorders.exe.manifest">
|
||||||
@@ -243,6 +248,12 @@
|
|||||||
<EmbeddedResource Remove="Form\Settings\SettingsPage3.resx" />
|
<EmbeddedResource Remove="Form\Settings\SettingsPage3.resx" />
|
||||||
<EmbeddedResource Remove="Form\Settings\SettingsPage4.resx" />
|
<EmbeddedResource Remove="Form\Settings\SettingsPage4.resx" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Update="Properties\Images.resx">
|
||||||
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Images.Designer.cs</LastGenOutput>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Runtime Version:4.0.30319.42000
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace MouseWithoutBorders.Properties {
|
namespace MouseWithoutBorders.Properties {
|
||||||
using System;
|
using System;
|
||||||
@@ -600,6 +600,16 @@ namespace MouseWithoutBorders.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap notify_default {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("notify_default", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -112,10 +112,10 @@
|
|||||||
<value>2.0</value>
|
<value>2.0</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="reader">
|
<resheader name="reader">
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
<data name="Logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
@@ -355,4 +355,7 @@
|
|||||||
<data name="two_row_button_unchecked" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="two_row_button_unchecked" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Icon\two_row_button_unchecked.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Icon\two_row_button_unchecked.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="notify_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Icon\notify_default.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
Reference in New Issue
Block a user