Clean start to gitea repo.
This commit is contained in:
commit
fc2be8a2ad
Binary file not shown.
|
After Width: | Height: | Size: 142 KiB |
|
|
@ -0,0 +1,91 @@
|
|||
*.suo
|
||||
*.user
|
||||
|
||||
[Dd]ebug/
|
||||
[Dd]debugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64
|
||||
x86
|
||||
bld
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_i.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.iobj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.ipdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
*.e2e
|
||||
|
||||
publish/
|
||||
|
||||
*.nupkg
|
||||
**/[Pp]ackages/*
|
||||
!**/[Pp]ackages/build/
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
*.[Cc]ache
|
||||
!*.[Cc]ache/
|
||||
|
||||
ClientBin/
|
||||
~$*
|
||||
*~
|
||||
|
||||
*.mdf
|
||||
*.ldf
|
||||
*.ndf
|
||||
|
||||
*.opt
|
||||
*.vbw
|
||||
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
._*
|
||||
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.com.apple.timemachine.donotpresent
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppLauncher", "AppLauncher\AppLauncher.csproj", "{FF6ADA8B-C158-4846-8E53-5EE82668B020}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{FF6ADA8B-C158-4846-8E53-5EE82668B020}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{FF6ADA8B-C158-4846-8E53-5EE82668B020}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FF6ADA8B-C158-4846-8E53-5EE82668B020}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FF6ADA8B-C158-4846-8E53-5EE82668B020}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{FF6ADA8B-C158-4846-8E53-5EE82668B020}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>AppLauncher</RootNamespace>
|
||||
<AssemblyName>AppLauncher</AssemblyName>
|
||||
<ApplicationIcon>start_menu_xp.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Utils.cs" />
|
||||
<Compile Include="MainForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainForm.Designer.cs">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="MainForm.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="app.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="start_menu_xp.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,139 @@
|
|||
namespace AppLauncher
|
||||
{
|
||||
partial class MainForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.Label label1;
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
||||
this.searchbox = new System.Windows.Forms.TextBox();
|
||||
this.launchAction = new System.Windows.Forms.Button();
|
||||
this.appsList = new System.Windows.Forms.ListBox();
|
||||
this.ExcludeUninstallersCheckbox = new System.Windows.Forms.CheckBox();
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
label1.Location = new System.Drawing.Point(9, 9);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new System.Drawing.Size(74, 13);
|
||||
label1.TabIndex = 3;
|
||||
label1.Text = "Find Program:";
|
||||
//
|
||||
// searchbox
|
||||
//
|
||||
this.searchbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.searchbox.Location = new System.Drawing.Point(12, 28);
|
||||
this.searchbox.Name = "searchbox";
|
||||
this.searchbox.Size = new System.Drawing.Size(300, 21);
|
||||
this.searchbox.TabIndex = 0;
|
||||
this.searchbox.TextChanged += new System.EventHandler(this.OnSearchBoxTextChanged);
|
||||
this.searchbox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnSearchBoxKeyDown);
|
||||
//
|
||||
// launchAction
|
||||
//
|
||||
this.launchAction.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.launchAction.Location = new System.Drawing.Point(229, 303);
|
||||
this.launchAction.Name = "launchAction";
|
||||
this.launchAction.Size = new System.Drawing.Size(83, 24);
|
||||
this.launchAction.TabIndex = 1;
|
||||
this.launchAction.Text = "&Launch";
|
||||
this.launchAction.UseVisualStyleBackColor = true;
|
||||
this.launchAction.Click += new System.EventHandler(this.OnLaunchActionClick);
|
||||
//
|
||||
// appsList
|
||||
//
|
||||
this.appsList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.appsList.FormattingEnabled = true;
|
||||
this.appsList.HorizontalScrollbar = true;
|
||||
this.appsList.IntegralHeight = false;
|
||||
this.appsList.Location = new System.Drawing.Point(12, 55);
|
||||
this.appsList.Name = "appsList";
|
||||
this.appsList.Size = new System.Drawing.Size(300, 242);
|
||||
this.appsList.TabIndex = 2;
|
||||
this.appsList.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.OnAppListMouseDblClick);
|
||||
this.appsList.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnAppListKeyDown);
|
||||
//
|
||||
// ExcludeUninstallersCheckbox
|
||||
//
|
||||
this.ExcludeUninstallersCheckbox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ExcludeUninstallersCheckbox.AutoSize = true;
|
||||
this.ExcludeUninstallersCheckbox.Checked = true;
|
||||
this.ExcludeUninstallersCheckbox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.ExcludeUninstallersCheckbox.Location = new System.Drawing.Point(12, 308);
|
||||
this.ExcludeUninstallersCheckbox.Name = "ExcludeUninstallersCheckbox";
|
||||
this.ExcludeUninstallersCheckbox.Size = new System.Drawing.Size(121, 17);
|
||||
this.ExcludeUninstallersCheckbox.TabIndex = 4;
|
||||
this.ExcludeUninstallersCheckbox.Text = "E&xclude Uninstallers";
|
||||
this.ExcludeUninstallersCheckbox.UseVisualStyleBackColor = true;
|
||||
this.ExcludeUninstallersCheckbox.CheckedChanged += new System.EventHandler(this.OnExcludeUninstallersCheckboxCheckChanged);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(324, 337);
|
||||
this.Controls.Add(this.ExcludeUninstallersCheckbox);
|
||||
this.Controls.Add(label1);
|
||||
this.Controls.Add(this.appsList);
|
||||
this.Controls.Add(this.launchAction);
|
||||
this.Controls.Add(this.searchbox);
|
||||
this.DoubleBuffered = true;
|
||||
this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.KeyPreview = true;
|
||||
this.MaximizeBox = false;
|
||||
this.MaximumSize = new System.Drawing.Size(800, 700);
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(264, 235);
|
||||
this.Name = "MainForm";
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
||||
this.Text = "App Launcher";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnMainFormFormClosing);
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnMainFormKeyDown);
|
||||
this.Load += new System.EventHandler(this.OnMainFormLoad);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TextBox searchbox;
|
||||
private System.Windows.Forms.Button launchAction;
|
||||
private System.Windows.Forms.ListBox appsList;
|
||||
private System.Windows.Forms.CheckBox ExcludeUninstallersCheckbox;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,207 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace AppLauncher
|
||||
{
|
||||
[Serializable]
|
||||
public partial class MainForm : Form
|
||||
{
|
||||
SortedDictionary<String, String> linksList;
|
||||
|
||||
public MainForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
linksList = LoadStartMenuLinks();
|
||||
}
|
||||
|
||||
private SortedDictionary<String, String> LoadStartMenuLinks()
|
||||
{
|
||||
SortedDictionary<String, String> dictionary = new SortedDictionary<String, String>();
|
||||
|
||||
String[] links = Utils.MergeArrays(
|
||||
ExtractLinks(Program.GetAllUsersStartMenuDirectory()),
|
||||
ExtractLinks(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu)));
|
||||
|
||||
foreach (String p in links) {
|
||||
String filename = Path.GetFileNameWithoutExtension(p);
|
||||
if (dictionary.ContainsKey(filename)) {
|
||||
continue;
|
||||
}
|
||||
dictionary.Add(filename, p);
|
||||
}
|
||||
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
private String[] ExtractLinks(String path)
|
||||
{
|
||||
return ExtractLinksRecursive(path, new String[0]);
|
||||
}
|
||||
|
||||
private String[] ExtractLinksRecursive(String path, String[] files)
|
||||
{
|
||||
String[] pathFiles = Directory.GetFiles(path, "*.lnk");
|
||||
|
||||
pathFiles = Utils.MergeArrays(pathFiles, files);
|
||||
|
||||
String[] pathDirs = Directory.GetDirectories(path);
|
||||
|
||||
foreach (String dir in pathDirs) {
|
||||
String[] dirFilePaths = ExtractLinksRecursive(dir, files);
|
||||
if (dirFilePaths.Length > 0) {
|
||||
pathFiles = Utils.MergeArrays(pathFiles, dirFilePaths);
|
||||
}
|
||||
}
|
||||
|
||||
return pathFiles;
|
||||
}
|
||||
|
||||
private void FilterLinks(String keyword)
|
||||
{
|
||||
SortedDictionary<String, String> filteredData = new SortedDictionary<String, String>();
|
||||
|
||||
foreach (KeyValuePair<String, String> val in linksList) {
|
||||
Boolean containsUninstallWord = val.Key.ToLowerInvariant().Contains("uninstall");
|
||||
if (containsUninstallWord && ExcludeUninstallersCheckbox.Checked) {
|
||||
continue;
|
||||
}
|
||||
if (val.Key.ToLowerInvariant().Contains(keyword.ToLowerInvariant())) {
|
||||
filteredData.Add(val.Key, val.Value);
|
||||
}
|
||||
}
|
||||
|
||||
if (filteredData.Count == 0) {
|
||||
appsList.DataSource = null;
|
||||
return;
|
||||
}
|
||||
|
||||
appsList.DataSource = new BindingSource(filteredData, null);
|
||||
appsList.DisplayMember = "Key";
|
||||
appsList.ValueMember = "Value";
|
||||
}
|
||||
|
||||
private void ExecuteSelectedLink()
|
||||
{
|
||||
String path = appsList.SelectedValue.ToString();
|
||||
try {
|
||||
Process.Start(path);
|
||||
Application.Exit();
|
||||
} catch {
|
||||
MessageBox.Show("Failed to run application.", "Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadSettings()
|
||||
{
|
||||
Size = Properties.Settings.Default.WindowSize;
|
||||
Location = Properties.Settings.Default.WindowLocation;
|
||||
searchbox.Text = Properties.Settings.Default.LastSearchString;
|
||||
|
||||
// make sure window is within all screen bounds
|
||||
foreach (Screen screen in Screen.AllScreens) {
|
||||
if (screen.WorkingArea.Contains(Location)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
CenterToScreen();
|
||||
}
|
||||
|
||||
private void SaveSettings()
|
||||
{
|
||||
Properties.Settings.Default.WindowSize = Size;
|
||||
Properties.Settings.Default.WindowLocation = Location;
|
||||
Properties.Settings.Default.LastSearchString = searchbox.Text;
|
||||
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void OnMainFormLoad(object sender, EventArgs e)
|
||||
{
|
||||
FilterLinks(searchbox.Text);
|
||||
LoadSettings();
|
||||
}
|
||||
|
||||
private void OnSearchBoxTextChanged(object sender, EventArgs e)
|
||||
{
|
||||
FilterLinks(((TextBox)sender).Text);
|
||||
}
|
||||
|
||||
private void OnMainFormKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Escape) {
|
||||
e.SuppressKeyPress = true;
|
||||
Application.Exit();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnSearchBoxKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
switch (e.KeyCode) {
|
||||
case Keys.A:
|
||||
Console.WriteLine(e.Modifiers);
|
||||
if (e.Modifiers == Keys.Control) {
|
||||
((TextBox)sender).SelectAll();
|
||||
e.SuppressKeyPress = true;
|
||||
}
|
||||
break;
|
||||
case Keys.Enter:
|
||||
if (appsList.SelectedItems.Count == 0) {
|
||||
return;
|
||||
}
|
||||
ExecuteSelectedLink();
|
||||
e.SuppressKeyPress = true;
|
||||
break;
|
||||
case Keys.Down:
|
||||
if (appsList.SelectedItems.Count == 0) {
|
||||
return;
|
||||
}
|
||||
appsList.SelectedIndex = Math.Min(appsList.SelectedIndex + 1, appsList.Items.Count - 1);
|
||||
e.Handled = true;
|
||||
break;
|
||||
case Keys.Up:
|
||||
if (appsList.SelectedItems.Count == 0) {
|
||||
return;
|
||||
}
|
||||
appsList.SelectedIndex = Math.Max(appsList.SelectedIndex - 1, 0);
|
||||
e.SuppressKeyPress = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnLaunchActionClick(object sender, EventArgs e)
|
||||
{
|
||||
ExecuteSelectedLink();
|
||||
}
|
||||
|
||||
private void OnExcludeUninstallersCheckboxCheckChanged(object sender, EventArgs e)
|
||||
{
|
||||
FilterLinks(searchbox.Text);
|
||||
}
|
||||
|
||||
private void OnMainFormFormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
SaveSettings();
|
||||
}
|
||||
|
||||
private void OnAppListKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter) {
|
||||
ExecuteSelectedLink();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnAppListMouseDblClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
ExecuteSelectedLink();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,146 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAIAICAQAAEABADoAgAAJgAAABAQEAABAAQAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAICAAIAAAACAAIAAgIAAAMDAwACAgIAAAAD/AAD/
|
||||
AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAAAACIiIiIiIiIiIiIiIiIiIiAh3d3d3d3
|
||||
d3d3d3d3d3d3gIf4iIiIiIiId3d3d3d3d4CH93BwAAB3eHd3d3d3d3eAh/cHAGCgd3h3d3d3d3d3gIf3
|
||||
cHAAAHd4d3d3d3d3d4CH9wcAkLB3eHd3d3d3d3eAh/d3cAAAd3h3d3d3d3d3gIf/////////d3d3d3d3
|
||||
d4CHd3d3d3d3d3d3d3d3d3eAiIiIiIiIiIiIiIiIiIiIgCKPREd3d3d3d3d3gCIiIiIij0RHd3d3d3d3
|
||||
d4AiIiIiIo9ER85Hd3d3d3eAIiIiIiKPREfMd4iIiIh3gCIiIiIij0RHd3d3d3d3d4AiIiIiIo9ER5sX
|
||||
d3d3d3eAIiIiIiKPREeZd4iIiIh3gCIiIiIij0RHd3d3d3d3d4AiIiIiIo9ER25Hd3d3d3eAIiIiIiKP
|
||||
REdmd4iIiIh3gCIiIiIij0RHd3d3d3d3d4AiIiIiIo9ERzsHd3d3d3eAIiIiIiKPREczd4iIiIh3gCIi
|
||||
IiIij0RHd3d3d3d3d4AiIiIiIo9ER85Hd3d3d3eAIiIiIiKPREfMd4iIiIh3gCIiIiIij0RHd3d3d3d3
|
||||
d4AiIiIiIo9ER3d3d3d3d3eAIiIiIiKP////////////gCIiIiIiiIiIiIiIiIiIiIAiIiIiAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAA/8AAAP/AAAD/wAAA/8AA
|
||||
AP/AAAD/wAAA/8AAAP/AAAD/wAAA/8AAAP/AAAD/wAAA/8AAAP/AAAD/wAAA/8AAAP/AAAD/wAAA/8AA
|
||||
AP8oAAAAEAAAACAAAAABAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAICAAIAA
|
||||
AACAAIAAgIAAAMDAwACAgIAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAh4iIiHd3
|
||||
d3CH/Kd4d3d3cIf5v/h3d3dwiIiIiIiIiIAY9Ed3d3cBERj0R8eIhwERGPRHd3d3AREY9EfHiIcBERj0
|
||||
R3d3dwERGPRHx4iHAREY9Ed3d3cBERj0R8eIhwERGPRHd3d3AREY//////8BERiIiIiIiAERAAB3cAAA
|
||||
d3gAAHd3AAB3gAAA//+AB///gAd3d4AHd4CAB3d3gAd3d4AHd3eAB3eAgAeIiIAHiIiAB4iIgAeIgA==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace AppLauncher
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
const int CSIDL_COMMON_STARTMENU = 0x16; // All Users\Start Menu
|
||||
|
||||
[DllImport("shell32.dll")]
|
||||
public static extern bool SHGetSpecialFolderPath(IntPtr hwnd, [Out] StringBuilder lpszPath, int nFolder, bool fCreate);
|
||||
|
||||
public static string GetAllUsersStartMenuDirectory()
|
||||
{
|
||||
StringBuilder path = new StringBuilder(512);
|
||||
SHGetSpecialFolderPath(IntPtr.Zero, path, CSIDL_COMMON_STARTMENU, false);
|
||||
return path.ToString();
|
||||
}
|
||||
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
bool isNewInstance;
|
||||
Mutex mutex = new Mutex(true, "AppLauncher", out isNewInstance);
|
||||
if (!isNewInstance) {
|
||||
return;
|
||||
}
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainForm());
|
||||
mutex.ReleaseMutex();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("App Launcher")]
|
||||
[assembly: AssemblyDescription("Search and launch apps in the Start Menu.")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("John Espiritu")]
|
||||
[assembly: AssemblyProduct("App Launcher")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("ed116524-6444-401c-8e20-38c9fdded84b")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace AppLauncher.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AppLauncher.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,117 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace AppLauncher.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("120, 100")]
|
||||
public global::System.Drawing.Size WindowSize {
|
||||
get {
|
||||
return ((global::System.Drawing.Size)(this["WindowSize"]));
|
||||
}
|
||||
set {
|
||||
this["WindowSize"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("-1, -1")]
|
||||
public global::System.Drawing.Point WindowLocation {
|
||||
get {
|
||||
return ((global::System.Drawing.Point)(this["WindowLocation"]));
|
||||
}
|
||||
set {
|
||||
this["WindowLocation"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
public string LastSearchString {
|
||||
get {
|
||||
return ((string)(this["LastSearchString"]));
|
||||
}
|
||||
set {
|
||||
this["LastSearchString"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="AppLauncher.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="WindowSize" Type="System.Drawing.Size" Scope="User">
|
||||
<Value Profile="(Default)">120, 100</Value>
|
||||
</Setting>
|
||||
<Setting Name="WindowLocation" Type="System.Drawing.Point" Scope="User">
|
||||
<Value Profile="(Default)">-1, -1</Value>
|
||||
</Setting>
|
||||
<Setting Name="LastSearchString" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace AppLauncher
|
||||
{
|
||||
class Utils
|
||||
{
|
||||
public static String[] MergeArrays(String[] a, String[] b)
|
||||
{
|
||||
String[] mergedArray = new String[a.Length + b.Length];
|
||||
a.CopyTo(mergedArray, 0);
|
||||
b.CopyTo(mergedArray, a.Length);
|
||||
return mergedArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||
<section name="AppLauncher.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
<section name="AppStarter.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<userSettings>
|
||||
<AppLauncher.Properties.Settings>
|
||||
<setting name="WindowSize" serializeAs="String">
|
||||
<value>120, 100</value>
|
||||
</setting>
|
||||
<setting name="WindowLocation" serializeAs="String">
|
||||
<value>-1, -1</value>
|
||||
</setting>
|
||||
<setting name="LastSearchString" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
</AppLauncher.Properties.Settings>
|
||||
<AppStarter.Properties.Settings>
|
||||
<setting name="WindowSize" serializeAs="String">
|
||||
<value>120, 100</value>
|
||||
</setting>
|
||||
<setting name="WindowLocation" serializeAs="String">
|
||||
<value>-1, -1</value>
|
||||
</setting>
|
||||
<setting name="LastSearchString" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
</AppStarter.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue