mirror of
https://github.com/greenshot/greenshot
synced 2025-08-26 08:06:09 -07:00
Even with small steps, one can come to an end.... Removed legacy Language usage from this class.
This commit is contained in:
parent
a42972c19e
commit
269b527868
1 changed files with 5 additions and 6 deletions
|
@ -28,7 +28,6 @@ using System.ComponentModel;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Greenshot.Addons.Controls;
|
using Greenshot.Addons.Controls;
|
||||||
using Greenshot.Addons.Core;
|
|
||||||
using Greenshot.Gfx.Effects;
|
using Greenshot.Gfx.Effects;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -41,15 +40,15 @@ namespace Greenshot.Addon.LegacyEditor.Forms
|
||||||
public partial class ResizeSettingsForm : BaseForm
|
public partial class ResizeSettingsForm : BaseForm
|
||||||
{
|
{
|
||||||
private readonly ResizeEffect _effect;
|
private readonly ResizeEffect _effect;
|
||||||
private readonly string _valuePercent;
|
private readonly string _valuePercent;
|
||||||
private double _newWidth, _newHeight;
|
private double _newWidth, _newHeight;
|
||||||
|
|
||||||
public ResizeSettingsForm(ResizeEffect effect)
|
public ResizeSettingsForm(ResizeEffect effect, IEditorLanguage editorLanguage)
|
||||||
{
|
{
|
||||||
_effect = effect;
|
_effect = effect;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
var valuePixel = Language.GetString("editor_resize_pixel");
|
var valuePixel = editorLanguage.EditorResizePixel;
|
||||||
_valuePercent = Language.GetString("editor_resize_percent");
|
_valuePercent = editorLanguage.EditorResizePercent;
|
||||||
combobox_width.Items.Add(valuePixel);
|
combobox_width.Items.Add(valuePixel);
|
||||||
combobox_width.Items.Add(_valuePercent);
|
combobox_width.Items.Add(_valuePercent);
|
||||||
combobox_width.SelectedItem = valuePixel;
|
combobox_width.SelectedItem = valuePixel;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue