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); }
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); }