Пример #1
0
 private void ButtonUninstall_Click(object sender, RoutedEventArgs e)
 {
     RegistryUtil.RemoveFromConfig(GitIconOverlayHandler.RootFloderFiled);
     TextBoxLog.Log("RemoveFromRegeditConfig: " + GitIconOverlayHandler.RootFloderFiled);
     TextBoxLog.Log(ProcessUtil.Run(_asmPath, _dllPath + " /u"));
     MessageBox.Show("卸载完成,重启后生效,重启后可手动删除此文件夹");
 }
Пример #2
0
 private void ButtonInstall_Click(object sender, RoutedEventArgs e)
 {
     RegistryUtil.SetToConfig(GitIconOverlayHandler.RootFloderFiled, PathUtil.Base);
     TextBoxLog.Log("SetToRegeditConfig: " + GitIconOverlayHandler.RootFloderFiled + " = " + PathUtil.Base);
     TextBoxLog.Log(ProcessUtil.Run(_asmPath, _dllPath + " /codebase"));
     MessageBox.Show("安装完成,重启后生效,请保留此文件夹");
 }
Пример #3
0
 private void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     TextBoxLog.Log("Overlay Priority:" + GitIconOverlayHandler.Priority);
     TextBoxLog.Log("FirstAccessStatus:" + GitIconOverlayHandler.FirstAccessStatus);
 }
        private void TextBoxTest_TextChanged(object sender, TextChangedEventArgs e)
        {
            var textBox = sender as TextBox;

            TextBoxLog.Log("{0}检测到值变化为 {1}", textBox.Name, textBox.Text);
        }