Exemplo n.º 1
0
 private void unregisterButton_Click(object sender, EventArgs e)
 {
     WinAVFS.Utils.ShellItemRegistry shellItem = new WinAVFS.Utils.ShellItemRegistry();
     shellItem.ItemName = "Mount_by_WinAVFS";
     shellItem.UnregisterAllFiles();
     MessageBox.Show("Unregistered.");
     this.Close();
 }
Exemplo n.º 2
0
        private void registerButton_Click(object sender, EventArgs e)
        {
            WinAVFS.Utils.ShellItemRegistry shellItem = new WinAVFS.Utils.ShellItemRegistry();
            shellItem.ItemName = "Mount_by_WinAVFS";
            shellItem.MenuText = "Mount by WinAVFS";
            string currentProgramPath = Process.GetCurrentProcess().MainModule.FileName;

            shellItem.IconPath           = currentProgramPath;
            shellItem.ExecutableFilePath = currentProgramPath;
            shellItem.RegisterAllFiles();
            MessageBox.Show("Registered.");
            this.Close();
        }