public InstallHandler(MainWindow window, Briefing briefing)
        {
            this.window = window;
            this.briefing = briefing;

            NameIndex = 0;
            profileName = "";
            missionName = "";
            MaxPlayers = "";
            gameType = "";
            LoadingText = "";
            LoadingAuthor = "";
            LoadingImage = "";
            MissionMap = "";
        }
        public MainWindow()
        {
            InitializeComponent();

            briefing = new Briefing();
            installHandler = new InstallHandler(this, briefing);
            VisibilityHandler = new VisibilityHandler(this);
            VisibilityHandler.showProfileSettings();

            TextBox_Briefing_Text.IsReadOnly = false;
            TextBox_Briefing_Text.AcceptsReturn = true;

            // Get arma profilefolders
            String arma3Folder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Arma 3";
            String arma3OtherFolder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Arma 3 - Other Profiles";

            // Find default arma profilename
            if (Directory.Exists(arma3Folder))
            {
                string[] files = Directory.GetFiles(arma3Folder, "*.Arma3Profile");

                string filename = new DirectoryInfo(files[0]).Name;
                string[] names = filename.Split('.');

                Combobox_Profile_Name.Items.Add(names[0]);
            }

            // Find all custom arma profilenames
            if (Directory.Exists(arma3OtherFolder))
            {
                string[] subdirectoryEntries = Directory.GetDirectories(arma3OtherFolder);
                foreach (string subdirectory in subdirectoryEntries)
                {
                    Combobox_Profile_Name.Items.Add(new DirectoryInfo(subdirectory).Name);
                }

            }

            // Set all combobox to first value
            ComboBox_Briefing_Side.SelectedIndex = 0;
            ComboBox_Briefing_Title.SelectedIndex = 0;
            Combobox_Mission_Gametype.SelectedIndex = 0;
            Combobox_Profile_Name.SelectedIndex = 0;
            Combobox_Mission_Map.SelectedIndex = 0;
            Combobox_Profile_Editor.SelectedIndex = 0;
        }