コード例 #1
0
        public static void showInstructions()
        {
            ResourceManager  LocRM          = new ResourceManager("TestPlatform.Resources.Localizations.LocalizedResources", typeof(FormMain).Assembly);
            CultureInfo      currentCulture = System.Threading.Thread.CurrentThread.CurrentUICulture;
            FormInstructions infoBox        = new FormInstructions(LocRM.GetString("instructionBoxText", currentCulture), FileManipulation.ReadInstructionFile());

            try
            {
                infoBox.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }