Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
MistressPlague committed Jul 22, 2022
1 parent e92235d commit ab45957
Show file tree
Hide file tree
Showing 13 changed files with 828 additions and 0 deletions.
6 changes: 6 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
83 changes: 83 additions & 0 deletions AvatarConfigTransfer.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{352AB7E9-4A1C-491B-A99B-3E0B2C581DA3}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>AvatarConfigTransfer</RootNamespace>
<AssemblyName>AvatarConfigTransfer</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<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.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AvatarConfigTransferForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="AvatarConfigTransferForm.Designer.cs">
<DependentUpon>AvatarConfigTransferForm.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="AvatarConfigTransferForm.resx">
<DependentUpon>AvatarConfigTransferForm.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>
</Compile>
<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>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
25 changes: 25 additions & 0 deletions AvatarConfigTransfer.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.32014.148
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvatarConfigTransfer", "AvatarConfigTransfer.csproj", "{352AB7E9-4A1C-491B-A99B-3E0B2C581DA3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{352AB7E9-4A1C-491B-A99B-3E0B2C581DA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{352AB7E9-4A1C-491B-A99B-3E0B2C581DA3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{352AB7E9-4A1C-491B-A99B-3E0B2C581DA3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{352AB7E9-4A1C-491B-A99B-3E0B2C581DA3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {90012F25-81FA-4848-A361-5AD58F551A27}
EndGlobalSection
EndGlobal
180 changes: 180 additions & 0 deletions AvatarConfigTransferForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions AvatarConfigTransferForm.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AvatarConfigTransfer
{
public partial class AvatarConfigTransferForm : Form
{
public AvatarConfigTransferForm()
{
InitializeComponent();
}

private void AvatarConfigTransferForm_Load(object sender, EventArgs e)
{
GetUsers();
}

private void textBox1_TextChanged(object sender, EventArgs e)
{
GetUsers();
}

private void GetUsers()
{
comboBox1.Items.Clear();

if (Directory.Exists(textBox1.Text))
{
foreach (var userid in Directory.GetDirectories(textBox1.Text).Select(Path.GetFileName))
{
comboBox1.Items.Add(userid);
}
}

comboBox1.SelectedIndex = 0;
}

private void button1_Click(object sender, EventArgs e)
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
textBox2.Text = openFileDialog1.FileName;
}
}

private void button2_Click(object sender, EventArgs e)
{
if (!File.Exists(textBox2.Text))
{
MessageBox.Show("File Not Found!");
return;
}

if (!Directory.Exists(textBox1.Text + "\\" + comboBox1.Text))
{
MessageBox.Show("Path Not Found!");
return;
}

File.Copy(textBox2.Text, textBox1.Text + "\\" + comboBox1.Text + "\\" + Path.GetFileName(textBox2.Text), true);

MessageBox.Show("Done!");
}

private void button3_Click(object sender, EventArgs e)
{
if (!Directory.Exists(textBox1.Text + "\\" + comboBox1.Text))
{
MessageBox.Show("Path Not Found!");
return;
}

Process.Start(textBox1.Text + "\\" + comboBox1.Text);
}
}
}
Loading

0 comments on commit ab45957

Please sign in to comment.