タグ: Tips

  • WPF.NET c# Tips


    Application.Startup イベント (System.Windows) | Microsoft Docs

    <Application
        x:Class="CallBook.App"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Startup="CallBook_Startup"
        >
        <Application.Resources>
        </Application.Resources>
    </Application>
        public partial class App : Application
        {
            void CallBook_Startup(object sender, StartupEventArgs e)
            {
                bool startReddit = false;
                for (int i = 0; i != e.Args.Length; ++i)
                {
                    if (e.Args[i] == "/Reddit")
                    {
                        startReddit = true;
                    }
                }
                
                if (startReddit)
                {
                    RedditWindow mainWindow = new RedditWindow();
                    mainWindow.WindowState = WindowState.Minimized;
                    mainWindow.Show();
                }
                else
                {
                    CallBookWindow cbw = new CallBookWindow();
                    cbw.Show();
                }
                
            }
        }

    263 View Count
  • Visual Studio Tips


    AdministratorでVisual Studioを起動、Clean Solution、Rebuit Solution.


    [View]-[Other Windows]-[Command Window]
    Tools.DiffFiles file1.cs file2.cs

    -Diff (devenv.exe) – Visual Studio (Windows) | Microsoft Docs


    XML ドキュメントのコメントを挿入する – Visual Studio (Windows) | Microsoft Docs

    オプションを有効にするには、プロジェクトのプロパティで

    コード要素の XML コメントを挿入するには C# では「///」と入力


    236 View Count
  • PowerShell Path Tips

    C:\Program Files\PowerShell\7
    C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin
    C:\WINDOWS\system32
    C:\WINDOWS
    C:\WINDOWS\System32\Wbem
    C:\WINDOWS\System32\WindowsPowerShell\v1.0\
    C:\WINDOWS\System32\OpenSSH\
    C:\Program Files\Microsoft SQL Server\130\Tools\Binn\
    C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
    C:\Program Files\Git\cmd
    C:\Program Files\dotnet\
    C:\WINDOWS\system32
    C:\WINDOWS
    C:\WINDOWS\System32\Wbem
    C:\WINDOWS\System32\WindowsPowerShell\v1.0\
    C:\WINDOWS\System32\OpenSSH\

    C:\Program Files\PowerShell\7
    C:\WINDOWS\System32\WindowsPowerShell\v1.0\
    C:\WINDOWS\System32\WindowsPowerShell\v1.0\
    C:\Program Files\PowerShell\7\

    Name Value
    —- —–
    PSVersion 7.2.5
    PSEdition Core
    GitCommitId 7.2.5
    OS Microsoft Windows 10.0.22000
    Platform Win32NT
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1
    WSManStackVersion 3.0

    C:\Users\user\Documents\PowerShell\Modules
    C:\Program Files\PowerShell\Modules
    c:\program files\powershell\7\Modules
    C:\Program Files\WindowsPowerShell\Modules
    C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    c:\Users\user.vscode-insiders\extensions\ms-vscode.powershell-preview-2022.7.0\modules