コード例 #1
0
        void sfd_FileOk(object sender, CancelEventArgs e)
        {
            if (!(sender is SaveFileDialog)) return;

            IconPickerDialog a = new IconPickerDialog();
            a.Filename = LauncherFolderStructure.WischiLauncherFolder + Path.DirectorySeparatorChar + "internal.dat";
            a.ShowDialog();

            SaveFileDialog S = (SaveFileDialog)sender;

            ShellLink link = new ShellLink();
            link.Target = Application.ExecutablePath;
            link.Arguments = "/profil=\"" + CurrentProfile.ProfileName + "\"";
            link.IconPath = a.Filename;
            link.IconIndex = a.IconIndex;

            link.Save(S.FileName);
        }
コード例 #2
0
        void sfds_FileOk(object sender, CancelEventArgs e)
        {
            if (!(sender is SaveFileDialog)) return;

            IconPickerDialog a = new IconPickerDialog();
            a.Filename = Application.ExecutablePath;
            a.ShowDialog();

            SaveFileDialog S = (SaveFileDialog)sender;

            ShellLink link = new ShellLink();
            link.Target = Application.ExecutablePath;
            link.IconPath = a.Filename;
            link.IconIndex = a.IconIndex;

            link.Save(S.FileName);
        }