Пример #1
0
        // ===================================Association====================================
        //TODO: Fix File Association properly! (Also make it so that when you open an SHBD (double click), it automatically loads it)
        private void SetAssociation()
        {
            var isAso = FileAssociation.AssociationCheck(".shbd", "SHBD Tool");

            if (!isAso)
            {
                var result = MessageBox.Show(@"Do you want to associate this tool with SHBD files?", @"SHBD", MessageBoxButtons.YesNo);
                if (result == DialogResult.Yes)
                {
                    CreateAssociation();
                }
            }

            SetRegistryInfo();
        }