protected override void SetupRender() { _textClass = new List <TextClass>(); _text = TextMode == TextMode.Normal || TextSource == TextSource.MarkCollection ? TextLines.Where(x => !String.IsNullOrEmpty(x)).ToList() : SplitTextIntoCharacters(TextLines); if (TextSource != TextSource.None) { SetupMarks(); } if (TargetPositioning == TargetPositioningType.Locations) { // Adjust the font size for Location support, default will ensure when swicthing between string and location that the Font will be the same visual size. // Font is further adjusted using the scale text slider. double newFontSize = ((StringCount - ((StringCount - Font.Size) / 100) * 100)) * ((double)BufferHt / StringCount); _font = new Font(Font.FontFamily.Name, (int)newFontSize, Font.Style); _newFontSize = _font.Size; return; } double scaleFactor = ScalingTools.GetScaleFactor(); _font = new Font(Font.FontFamily, Font.Size / (float)scaleFactor, Font.Style); _newFontSize = _font.Size; }
public VixenPreviewSetupElementsDocument(VixenPreviewControl preview) { InitializeComponent(); int iconSize = (int)(24 * ScalingTools.GetScaleFactor()); buttonAddTemplate.Image = Tools.GetIcon(Resources.add, iconSize); buttonAddTemplate.Text = ""; var elementTemplates = ApplicationServices.GetAllElementTemplates(); comboBoxNewItemType.BeginUpdate(); foreach (IElementTemplate template in elementTemplates) { ComboBoxItem item = new ComboBoxItem(template.TemplateName, template); comboBoxNewItemType.Items.Add(item); } comboBoxNewItemType.EndUpdate(); if (comboBoxNewItemType.Items.Count > 0) { comboBoxNewItemType.SelectedIndex = 0; } ThemeUpdateControls.UpdateControls(this); _preview = preview; treeElements.AllowPropertyEdit = false; treeElements.AllowWireExport = false; }
public NameGenerator() { InitializeComponent(); Icon = Resources.Properties.Resources.Icon_Vixen3; int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); buttonMoveRuleUp.Image = Tools.GetIcon(Resources.Properties.Resources.arrow_up, iconSize); buttonMoveRuleUp.Text = ""; buttonMoveRuleDown.Image = Tools.GetIcon(Resources.Properties.Resources.arrow_down, iconSize); buttonMoveRuleDown.Text = ""; buttonAddNewRule.Image = Tools.GetIcon(Resources.Properties.Resources.add, iconSize); buttonAddNewRule.Text = ""; buttonDeleteRule.Image = Tools.GetIcon(Resources.Properties.Resources.delete, iconSize); buttonDeleteRule.Text = ""; ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); Generators = new List <INamingGenerator>(); listViewNames.Columns.Clear(); listViewNames.Columns.Add(new ColumnHeader { Text = "Name" }); labelColumnHeader1.Text = "Name"; labelColumnHeader2.Text = ""; }
public VixenPreviewSetup3() { InitializeComponent(); Icon = Resources.Icon_Vixen3; menuStrip.Renderer = new ThemeToolStripRenderer(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); panel10.BackColor = Color.Black; foreach (Control c in panel10.Controls) { c.BackColor = Color.Black; } dockPanel.BackColor = ThemeColorTable.BackgroundColor; label9.ForeColor = Color.Turquoise; label10.ForeColor = Color.LimeGreen; label11.ForeColor = Color.White; label12.ForeColor = Color.HotPink; label13.ForeColor = Color.Yellow; this.ShowInTaskbar = false; int iconSize = (int)(24 * ScalingTools.GetScaleFactor()); undoButton.Image = Tools.GetIcon(Resources.arrow_undo, iconSize); undoButton.DisplayStyle = ToolStripItemDisplayStyle.Image; redoButton.Image = Tools.GetIcon(Resources.arrow_redo, iconSize); redoButton.DisplayStyle = ToolStripItemDisplayStyle.Image; redoButton.ButtonType = UndoButtonType.RedoButton; undoToolStripMenuItem.Enabled = false; redoToolStripMenuItem.Enabled = false; }
public PreviewSetElements(List <PreviewBaseShape> shapes) { InitializeComponent(); Icon = Resources.Icon_Vixen3; ThemeUpdateControls.UpdateControls(this); contextMenuLinkedElements.Renderer = new ThemeToolStripRenderer(); int imageSize = (int)(16 * ScalingTools.GetScaleFactor()); contextMenuLinkedElements.ImageScalingSize = new Size(imageSize, imageSize); buttonHelp.Image = Tools.GetIcon(Resources.help, imageSize); _shapes = shapes; connectStandardStrings = shapes[0].connectStandardStrings; int i = 1; foreach (PreviewBaseShape shape in _shapes) { if (shape.Pixels.Count == 0) { continue; } var newString = new PreviewSetElementString(); // If this is a Standard string, only set the first pixel of the string if (shape.StringType == PreviewBaseShape.StringTypes.Standard) { //Console.WriteLine("Standard String"); PreviewPixel pixel = shape.Pixels[0]; //Console.WriteLine(shape.Pixels[0].Node.Name.ToString()); newString.Pixels.Add(pixel.Clone()); } // If this is a pixel string, let them set every pixel else if (shape.StringType == PreviewBaseShape.StringTypes.Pixel) { foreach (PreviewPixel pixel in shape.Pixels) { newString.Pixels.Add(pixel.Clone()); } } else if (shape.StringType == PreviewBaseShape.StringTypes.Custom) { foreach (var pixel in shape.Pixels) { newString.Pixels.Add(pixel.Clone()); } } newString.StringName = "String " + i.ToString(); _strings.Add(newString); i++; } if (_shapes[0].Parent != null) { string shapeType = ""; shapeType = _shapes[0].Parent.GetType().ToString(); if ((shapeType.Contains("Icicle") && _shapes[0].StringType != PreviewBaseShape.StringTypes.Standard) || shapeType.Contains("MultiString")) { tblLightCountControls.Visible = true; } } }
public GradientEdit() { SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint, true); _border = (int)(10 * ScalingTools.GetScaleFactor()); }
public StatusForm(SuperSchedulerData data, ScheduleExecutor executor) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(24 * ScalingTools.GetScaleFactor()); buttonPauseShow.Image = Tools.GetIcon(Resources.control_pause, iconSize); buttonPauseShow.Text = ""; buttonNextSong.Image = Tools.GetIcon(Resources.control_end, iconSize); buttonNextSong.Text = ""; buttonStartScheduler.Image = Tools.GetIcon(Resources.control_play_blue, iconSize); buttonStartScheduler.Text = ""; buttonStopNow.Image = Tools.GetIcon(Resources.control_stop_blue, iconSize); buttonStopNow.Text = ""; buttonStopGracefully.Image = Tools.GetIcon(Resources.clock_stop, iconSize); buttonStopGracefully.Text = ""; buttonViewLog.Image = Tools.GetIcon(Resources.document_notes, iconSize); buttonViewLog.Text = ""; buttonPlayShowNow.Image = Tools.GetIcon(Resources.control_play, iconSize); buttonPlayShowNow.Text = ""; buttonPlayShowGracefully.Image = Tools.GetIcon(Resources.clock_play, iconSize); buttonPlayShowGracefully.Text = ""; ThemeUpdateControls.UpdateControls(this); ControlBox = false; SchedulerData = data; Executor = executor; }
private void ImageSetup() { var t = (int)Math.Round(48 * _colorLibraryScale * ScalingTools.GetScaleFactor()); _imageSize = new Size(t, t); _sideGap = (short)(_imageSize.Width + (7 * ScalingTools.GetScaleFactor())); ListViewItem_SetSpacing(listViewColors, _sideGap, _sideGap); }
public SetupElementsTree(IEnumerable <IElementTemplate> elementTemplates, IEnumerable <IElementSetupHelper> elementSetupHelpers) { InitializeComponent(); int iconSize = (int)(24 * ScalingTools.GetScaleFactor()); buttonAddTemplate.Image = Tools.GetIcon(Resources.add, iconSize); buttonAddTemplate.Text = ""; buttonRunHelperSetup.Image = Tools.GetIcon(Resources.cog_go, iconSize); buttonRunHelperSetup.Text = ""; buttonAddProperty.Image = Tools.GetIcon(Resources.add, iconSize); buttonAddProperty.Text = ""; buttonRemoveProperty.Image = Tools.GetIcon(Resources.delete, iconSize); buttonRemoveProperty.Text = ""; buttonConfigureProperty.Image = Tools.GetIcon(Resources.cog, iconSize); buttonConfigureProperty.Text = ""; buttonDeleteElements.Image = Tools.GetIcon(Resources.delete, iconSize); buttonDeleteElements.Text = ""; buttonRenameElements.Image = Tools.GetIcon(Resources.pencil, iconSize); buttonRenameElements.Text = ""; buttonSelectDestinationOutputs.Image = Tools.GetIcon(Resources.table_select_row, iconSize); buttonSelectDestinationOutputs.Text = ""; ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); // comboBoxNewItemType.BackColor = ThemeColorTable.BackgroundColor; // comboBoxSetupHelperType.BackColor = ThemeColorTable.BackgroundColor; comboBoxNewItemType.BeginUpdate(); foreach (IElementTemplate template in elementTemplates) { ComboBoxItem item = new ComboBoxItem(template.TemplateName, template); comboBoxNewItemType.Items.Add(item); } comboBoxNewItemType.EndUpdate(); if (comboBoxNewItemType.Items.Count > 0) { comboBoxNewItemType.SelectedIndex = 0; } comboBoxSetupHelperType.BeginUpdate(); foreach (IElementSetupHelper helper in elementSetupHelpers) { ComboBoxItem item = new ComboBoxItem(helper.HelperName, helper); comboBoxSetupHelperType.Items.Add(item); } comboBoxSetupHelperType.EndUpdate(); if (comboBoxSetupHelperType.Items.Count > 0) { comboBoxSetupHelperType.SelectedIndex = 0; } UpdateFormWithNode(null); elementTree.ExportDiagram = ExportWireDiagram; }
private void ImageSetup() { var t = (int)Math.Round(48 * _gradientLibraryImageScale * ScalingTools.GetScaleFactor()); _imageSize = new Size(t, t); _newFontSize = new Font(Font.FontFamily.Name, (int)(7 * _gradientLibraryTextScale), Font.Style); short sideGap = (short)(_imageSize.Width + (5 * ScalingTools.GetScaleFactor())); short topGap = (short)(_imageSize.Height + 5 + ScalingTools.MeasureHeight(_newFontSize, "Test") * 2); ListViewItem_SetSpacing(listViewGradients, sideGap, topGap); }
public SequencePackageExportOutputStage(TimedSequencePackagerData data) { _data = data; InitializeComponent(); int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); btnOuputFolderSelect.Image = Tools.GetIcon(Resources.folder_explore, iconSize); btnOuputFolderSelect.Text = ""; ThemeUpdateControls.UpdateControls(this); }
public SequenceTypeEditor(ShowItem showItem) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); buttonSelectSequence.Image = Tools.GetIcon(Resources.folder_explore, iconSize); buttonSelectSequence.Text = ""; ThemeUpdateControls.UpdateControls(this); _showItem = showItem; }
private void VixenApplication_Paint(object sender, PaintEventArgs e) { //draws divider lines Pen borderColor = new Pen(ThemeColorTable.GroupBoxBorderColor, 1); if (ActiveForm != null) { int extraSpace1 = (int)(30 * ScalingTools.GetScaleFactor()); int extraSpace2 = (int)(40 * ScalingTools.GetScaleFactor()); e.Graphics.DrawLine(borderColor, 0, pictureBox1.Size.Height + extraSpace1, ActiveForm.Width, pictureBox1.Size.Height + extraSpace1); e.Graphics.DrawLine(borderColor, 0, Height - (statusStrip.Height + extraSpace2), Width, Height - (statusStrip.Height + extraSpace2)); } }
public SetupScheduleForm(ScheduleItem scheduleItem) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(24 * ScalingTools.GetScaleFactor()); buttonHelp.Image = Tools.GetIcon(Resources.help, iconSize); ThemeUpdateControls.UpdateControls(this); _scheduleItem = scheduleItem; }
public WebPageTypeEditor(ShowItem showItem) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); ThemeUpdateControls.UpdateControls(this); buttonTest.Image = Tools.GetIcon(Resources.cog_go, iconSize); buttonTest.Text = ""; _showItem = showItem; }
public Ruler(TimeInfo timeinfo) : base(timeinfo) { AutoScaleMode = AutoScaleMode.Font; BackColor = Color.Gray; recalculate(); StaticSnapPoints = new SortedDictionary <TimeSpan, List <SnapDetails> >(); SnapStrength = 2; double factor = ScalingTools.GetScaleFactor(); _arrowBase = (int)(16 * factor); _arrowLength = (int)(10 * factor); //SnapPriorityForElements = 5; }
public BulkExportSourcesStage(BulkExportWizardData data) { _data = data; InitializeComponent(); int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); btnAdd.Image = Tools.GetIcon(Resources.folder_open, iconSize); btnAdd.Text = string.Empty; btnDelete.Image = Tools.GetIcon(Resources.delete_32, iconSize); btnDelete.Text = string.Empty; ThemeUpdateControls.UpdateControls(this); }
public LaunchTypeEditor(ShowItem item) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); buttonSelectProgram.Image = Tools.GetIcon(Resources.folder_explore, iconSize); buttonSelectProgram.Text = ""; buttonTest.Image = Tools.GetIcon(Resources.cog_go, iconSize); buttonTest.Text = ""; ThemeUpdateControls.UpdateControls(this); _showItem = item; }
public BulkExportOutputFormatStage(BulkExportWizardData data) { _data = data; InitializeComponent(); int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); btnOuputFolderSelect.Image = Tools.GetIcon(Resources.folder_explore, iconSize); btnOuputFolderSelect.Text = ""; btnAudioOutputFolder.Image = Tools.GetIcon(Resources.folder_explore, iconSize); btnAudioOutputFolder.Text = ""; ThemeUpdateControls.UpdateControls(this); }
public Ruler(TimeInfo timeinfo) : base(timeinfo) { AutoScaleMode = AutoScaleMode.Font; BackColor = Color.Gray; _marksSelectionManager = MarksSelectionManager.Manager(); _timeLineGlobalEventManager = TimeLineGlobalEventManager.Manager; _timeLineGlobalEventManager.MarksMoving += TimeLineGlobalEventManagerTimeLineGlobalMoving; _timeLineGlobalEventManager.DeleteMark += TimeLineGlobalEventManagerDeleteTimeLineGlobal; _marksSelectionManager.SelectionChanged += _marksSelectionManager_SelectionChanged; recalculate(); double factor = ScalingTools.GetScaleFactor(); _arrowBase = (int) (16 * factor); _arrowLength = (int)(10 * factor); }
public Form_CurveLibrary(TimelineControl timelineControl) { InitializeComponent(); TimelineControl = timelineControl; Icon = Resources.Icon_Vixen3; ThemeUpdateControls.UpdateControls(this); toolStripCurves.Renderer = new ThemeToolStripRenderer(); int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); toolStripCurves.ImageScalingSize = new Size(iconSize, iconSize); toolStripButtonEditCurve.DisplayStyle = ToolStripItemDisplayStyle.Image; toolStripButtonEditCurve.Image = Tools.GetIcon(Resources.configuration, iconSize); toolStripButtonNewCurve.DisplayStyle = ToolStripItemDisplayStyle.Image; toolStripButtonNewCurve.Image = Tools.GetIcon(Resources.addItem, iconSize); toolStripButtonDeleteCurve.DisplayStyle = ToolStripItemDisplayStyle.Image; toolStripButtonDeleteCurve.Image = Tools.GetIcon(Resources.delete_32, iconSize); toolStripButtonExportCurves.DisplayStyle = ToolStripItemDisplayStyle.Image; toolStripButtonExportCurves.Image = Tools.GetIcon(Resources.folder_go, iconSize); toolStripButtonImportCurves.DisplayStyle = ToolStripItemDisplayStyle.Image; toolStripButtonImportCurves.Image = Tools.GetIcon(Resources.folder_open, iconSize); listViewCurves.AllowDrop = true; var xml = new XMLProfileSettings(); _curveLibraryImageScale = Convert.ToDouble(xml.GetSetting(XMLProfileSettings.SettingType.AppSettings, string.Format("{0}/CurveLibraryImageScale", Name), "1"), CultureInfo.InvariantCulture); _curveLibraryTextScale = Convert.ToDouble(xml.GetSetting(XMLProfileSettings.SettingType.AppSettings, string.Format("{0}/CurveLibraryTextScale", Name), "1"), CultureInfo.InvariantCulture); if (_curveLibraryImageScale < 0.1) { _curveLibraryImageScale = 0.1; } if (_curveLibraryTextScale < 0.2) { _curveLibraryTextScale = 0.2; } ImageSetup(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); //Over-ride the auto theme listview back color listViewCurves.BackColor = ThemeColorTable.BackgroundColor; listViewCurves.Alignment = ListViewAlignment.Top; _curveLibrary = ApplicationServices.Get <IAppModuleInstance>(CurveLibraryDescriptor.ModuleID) as CurveLibrary; }
public DataProfileForm() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; Icon = Resources.Icon_Vixen3; int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); buttonAddProfile.Image = Tools.GetIcon(Resources.add, iconSize); buttonAddProfile.Text = ""; buttonDeleteProfile.Image = Tools.GetIcon(Resources.delete, iconSize); buttonDeleteProfile.Text = ""; buttonSetDataFolder.Image = Tools.GetIcon(Resources.folder, iconSize); buttonSetDataFolder.Text = ""; ThemeUpdateControls.UpdateControls(this); }
//Used on the Preview property grid public static void PropertyGridRender(PropertyGrid propertyGrid) { propertyGrid.AutoScaleMode = AutoScaleMode.Font; propertyGrid.ViewBackColor = ThemeColorTable.BackgroundColor; propertyGrid.CommandsBackColor = ThemeColorTable.BackgroundColor; propertyGrid.BackColor = ThemeColorTable.BackgroundColor; propertyGrid.HelpBackColor = ThemeColorTable.BackgroundColor; propertyGrid.LineColor = ThemeColorTable.TextBoxBackgroundColor; propertyGrid.CategoryForeColor = ThemeColorTable.ForeColor; propertyGrid.CommandsForeColor = ThemeColorTable.ForeColor; propertyGrid.HelpForeColor = ThemeColorTable.ForeColor; if (ScalingTools.GetScaleFactor() >= 2) { propertyGrid.LargeButtons = true; } }
public DataZipForm() { InitializeComponent(); statusStrip1.Renderer = new ThemeToolStripRenderer(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); Icon = Resources.Icon_Vixen3; int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); buttonSetSaveFolder.Image = Tools.GetIcon(Resources.folder, iconSize); _bw.WorkerReportsProgress = true; _bw.WorkerSupportsCancellation = true; _bw.DoWork += bw_DoWork; _bw.ProgressChanged += backgroundWorker1_ProgressChanged; }
public SequencePackageImportInputStage(ImportConfig data) { _data = data; InitializeComponent(); int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); btnOuputFolderSelect.Image = btnMapFile.Image = Tools.GetIcon(Resources.folder_explore, iconSize); btnOuputFolderSelect.Text = btnMapFile.Text = ""; ThemeUpdateControls.UpdateControls(this); txtProfileMap.BackColor = ThemeColorTable.BackgroundColor; btnCreateMap.Enabled = false; btnEditMap.Enabled = false; }
public CheckForUpdates(string currentVersion, string latestVersion, string currentVersionType) { InitializeComponent(); ThemeUpdateControls.UpdateControls(this); Icon = Resources.Icon_Vixen3; textBoxReleaseNotes.AutoSize = false; textBoxReleaseNotes.Height = (int)(ScalingTools.GetScaleFactor() * 225); pictureBoxIcon.Image = Resources.VixenImage; labelHeading.Font = new Font(labelHeading.Font.Name, 20F); labelCurrentVersion.Font = new Font(labelCurrentVersion.Font.Name, 10F); linkLabelVixenDownLoadPage.Font = new Font(linkLabelVixenDownLoadPage.Font.Name, 10F); _currentVersion = currentVersion; _latestVersion = latestVersion; _currentVersionType = currentVersionType; Text = " " + _currentVersionType + " " + currentVersion + " Installed"; //Add Installed version and type to the Form Title }
public PreviewShapeBaseSetupControl(PreviewBaseShape shape) : base(shape) { InitializeComponent(); Title = $"{shape.TypeName} Properties"; int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); buttonHelp.Image = Tools.GetIcon(Resources.help, iconSize); ThemeUpdateControls.UpdateControls(this); ThemePropertyGridRenderer.PropertyGridRender(propertyGrid); propertyGrid.SelectedObject = Shape; Shape.OnPropertiesChanged += OnPropertiesChanged; if (ScalingTools.GetScaleFactor() >= 2) { propertyGrid.LargeButtons = true; } }
public BulkExportConfigStage(BulkExportWizardData data) { _data = data; InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); btnAddProfile.Image = Tools.GetIcon(Resources.add, iconSize); btnAddProfile.Text = ""; btnDeleteProfile.Image = Tools.GetIcon(Resources.delete, iconSize); btnDeleteProfile.Text = ""; btnRename.Image = Tools.GetIcon(Resources.cog_edit, iconSize); btnRename.Text = ""; ThemeUpdateControls.UpdateControls(this); }
public DisplaySetup() { InitializeComponent(); int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); Icon = Resources.Icon_Vixen3; ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); buttonHelp.Image = Common.Resources.Tools.GetIcon(Resources.help, iconSize); elementLabel.Font = new Font(SystemFonts.MessageBoxFont.FontFamily, 12F); patchingHeaderLabel.Font = new Font(SystemFonts.MessageBoxFont.FontFamily, 12F); controllersHeaderLabel.Font = new Font(SystemFonts.MessageBoxFont.FontFamily, 12F); _elementTemplates = Vixen.Services.ApplicationServices.GetAllElementTemplates(); _elementSetupHelpers = Vixen.Services.ApplicationServices.GetAllElementSetupHelpers(); }
protected SubstitutionRenamer() { InitializeComponent(); Icon = Resources.Properties.Resources.Icon_Vixen3; int iconSize = (int)(16 * ScalingTools.GetScaleFactor()); buttonMovePatternUp.Image = Tools.GetIcon(Resources.Properties.Resources.arrow_up, iconSize); buttonMovePatternUp.Text = ""; buttonMovePatternDown.Image = Tools.GetIcon(Resources.Properties.Resources.arrow_down, iconSize); buttonMovePatternDown.Text = ""; buttonAddNewPattern.Image = Tools.GetIcon(Resources.Properties.Resources.add, iconSize); buttonAddNewPattern.Text = ""; buttonDeletePattern.Image = Tools.GetIcon(Resources.Properties.Resources.delete, iconSize); buttonDeletePattern.Text = ""; buttonOk.Enabled = false; ThemeUpdateControls.UpdateControls(this); }