Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            Language_ComboBox.SelectedItem = "ENG";

            var version = Regex.Replace(Assembly.GetExecutingAssembly().GetName().Version.ToString(), @"[.0]*$", string.Empty);

            Logger.Info("Inventory Kamera version {0}", version);

            Text = $"Inventory Kamera V{version}";

            UserInterface.Init(
                GearPictureBox,
                ArtifactOutput_TextBox,
                CharacterName_PictureBox,
                CharacterLevel_PictureBox,
                new[] { CharacterTalent1_PictureBox, CharacterTalent2_PictureBox, CharacterTalent3_PictureBox },
                CharacterOutput_TextBox,
                WeaponsScannedCount_Label,
                WeaponsMax_Labell,
                ArtifactsScanned_Label,
                ArtifactsMax_Label,
                CharactersScanned_Label,
                ProgramStatus_Label,
                ErrorLog_TextBox,
                Navigation_Image);
            MaximizeBox = false;
            MinimizeBox = false;
            Logger.Info("MainForm initialization complete");
        }