Подумал и создал отдельный класс, и перенес туда методом Load_form()
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Text;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestFount
{
class Font_class
{
public Font Text_Font_1;
public Font Text_Font_2;
public void Load_font()
{
try
{
PrivateFontCollection font = new PrivateFontCollection();
font.AddFontFile("test_font.ttf");
Text_Font_1 = new Font(font.Families[0], 26, FontStyle.Bold);
Text_Font_2 = new Font(font.Families[0], 26, FontStyle.Bold);
}
catch
{
Text_Font_1 = new Font("Verdana", 26, FontStyle.Bold);
Text_Font_2 = new Font("Verdana", 26, FontStyle.Bold);
}
}
}
}
В Form1 и Form2 объявил данный:
Font_class font_class = new Font_class();
И передал через него метод и свойства:
public Form1()
{
InitializeComponent();
font_class.Load_font();
label_test_font_1.Font = font_class.Text_Font_1;
label_test_font_2.Font = font_class.Text_Font_2;
public Form2()
{
InitializeComponent();
font_class.Load_font();
label_test_font_3.Font = font_class.Text_Font_1;
label_test_font_4.Font = font_class.Text_Font_2;
}
