コード例 #1
0
        /// <summary>
        /// Prevents a default instance of the <see cref="FlexibleMaterialForm"/> class from being created.
        /// </summary>
        private FlexibleMaterialForm()
        {
            InitializeComponent();

            //Try to evaluate the language. If this fails, the fallback language English will be used
            Enum.TryParse <TwoLetterISOLanguageID>(CultureInfo.CurrentUICulture.TwoLetterISOLanguageName, out this.languageID);

            this.KeyPreview = true;
            this.KeyUp     += FlexibleMaterialForm_KeyUp;

            materialSkinManager = MaterialSkinManager.Instance;
            materialSkinManager.AddFormToManage(this);
            FONT = materialSkinManager.getFontByType(MaterialSkinManager.fontType.Body1);
        }