예제 #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();
        }
예제 #2
0
 private void CreateAssociation()
 {
     string[] openWithList = { "notepad.exe", "wordpad.exe" };
     FileAssociation.AssociationCreation(".shbd", "SHBD Tool", "application/myfile", openWithList, true, "SHBD Editor");
 }