Skip to content

Commit

Permalink
Idk i'm comitting before i continue work later on
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMWestbrook committed Oct 3, 2019
1 parent f366f38 commit 7bb1899
Show file tree
Hide file tree
Showing 18 changed files with 357 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
Binary file modified .vs/RPGMVTools/v16/.suo
Binary file not shown.
Binary file modified .vs/RPGMVTools/v16/Server/sqlite3/storage.ide
Binary file not shown.
7 changes: 7 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\MainWindow.xaml",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
52 changes: 49 additions & 3 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,56 @@ private void BackupFolderTwoButton_Click(object sender, RoutedEventArgs e)

private void BackupProjectButton_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start(projectPath);
System.Diagnostics.Process.Start(BackupOnePath);
System.Diagnostics.Process.Start(BackupTwoPath);

DirectoryInfo BackupOneDir = new DirectoryInfo(BackupOnePath);
DirectoryInfo BackupTwoDir = new DirectoryInfo(BackupTwoPath);
DirectoryInfo ProjectFolder = new DirectoryInfo(projectPath);

FileInfo[] Project = ProjectFolder.GetFiles();

//DirectoryCopy(projectPath, BackupOnePath, true);
}

private void DirectoryCopy(string sourceDirName, string destDirName, bool copySubDirs)
{

// Get the subdirectories for the specified directory.
DirectoryInfo dir = new DirectoryInfo(sourceDirName);

if (!dir.Exists)
{
throw new DirectoryNotFoundException(
"Source directory does not exist or could not be found: "
+ sourceDirName);
}

DirectoryInfo[] dirs = dir.GetDirectories();
// If the destination directory doesn't exist, create it.
if (!Directory.Exists(destDirName))
{
Directory.CreateDirectory(destDirName);
}

// Get the files in the directory and copy them to the new location.
FileInfo[] files = dir.GetFiles();
foreach (FileInfo file in files)
{
string temppath = Path.Combine(destDirName, file.Name);
file.CopyTo(temppath, false);
}

// If copying subdirectories, copy them and their contents to new location.
if (copySubDirs)
{
foreach (DirectoryInfo subdir in dirs)
{
string temppath = Path.Combine(destDirName, subdir.Name);
DirectoryCopy(subdir.FullName, temppath, copySubDirs);
}
}
}

private void RXGCFoldeButton_Click(object sender, RoutedEventArgs e)
Expand Down Expand Up @@ -128,14 +177,11 @@ private void MoveGraphics_Click(object sender, RoutedEventArgs e)

FileInfo[] Images = RXGCFolder.GetFiles();

Console.Write(Images);

List<FileInfo> Characters = new List<FileInfo>();

for (int i = 0; i < Images.Length; i++)
{
MoveImage(Images[i], ProjectFolder);

}

List<DirectoryInfo> ContainedFolders = RXGCFolder.GetDirectories().ToList();
Expand Down
Binary file modified bin/Debug/RPGMVTools.exe
Binary file not shown.
Binary file modified bin/Debug/RPGMVTools.pdb
Binary file not shown.
Binary file modified obj/Debug/DesignTimeResolveAssemblyReferences.cache
Binary file not shown.
Binary file removed obj/Debug/MainWindow.baml
Binary file not shown.
Binary file modified obj/Debug/RPGMVTools.csprojAssemblyReference.cache
Binary file not shown.
Binary file modified obj/Debug/RPGMVTools.exe
Binary file not shown.
Binary file modified obj/Debug/RPGMVTools.pdb
Binary file not shown.
70 changes: 70 additions & 0 deletions obj/Release/App.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "4F57897B2CF4519E7B69C87B19D3BEFEF96842D5EF2109E9D35AA99D2D00F2BD"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using RPGMVTools;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;


namespace RPGMVTools {


/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application {

/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {

#line 5 "..\..\App.xaml"
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);

#line default
#line hidden
}

/// <summary>
/// Application Entry Point.
/// </summary>
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public static void Main() {
RPGMVTools.App app = new RPGMVTools.App();
app.InitializeComponent();
app.Run();
}
}
}

224 changes: 224 additions & 0 deletions obj/Release/MainWindow.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "DBDE059CE475AC29B4F245A80F621794C3B9CD4F4F866E49BB25A534CE990849"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using RPGMVTools;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;


namespace RPGMVTools {


/// <summary>
/// MainWindow
/// </summary>
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {


#line 12 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button ProjectFolderButton;

#line default
#line hidden


#line 19 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock ProjectFolderPath;

#line default
#line hidden


#line 23 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button BackupFolderOneButton;

#line default
#line hidden


#line 30 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock BackupFolderOnePath;

#line default
#line hidden


#line 35 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button BackupFolderTwoButton;

#line default
#line hidden


#line 42 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock BackupFolderTwoPath;

#line default
#line hidden


#line 47 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button BackupProjectButton;

#line default
#line hidden


#line 50 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button RXGCFoldeButton;

#line default
#line hidden


#line 58 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock RXGCFolderPath;

#line default
#line hidden


#line 60 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Button MoveGraphics;

#line default
#line hidden

private bool _contentLoaded;

/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/RPGMVTools;component/mainwindow.xaml", System.UriKind.Relative);

#line 1 "..\..\MainWindow.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);

#line default
#line hidden
}

[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.ProjectFolderButton = ((System.Windows.Controls.Button)(target));

#line 12 "..\..\MainWindow.xaml"
this.ProjectFolderButton.Click += new System.Windows.RoutedEventHandler(this.ProjectFolderButton_Click);

#line default
#line hidden
return;
case 2:
this.ProjectFolderPath = ((System.Windows.Controls.TextBlock)(target));
return;
case 3:
this.BackupFolderOneButton = ((System.Windows.Controls.Button)(target));

#line 23 "..\..\MainWindow.xaml"
this.BackupFolderOneButton.Click += new System.Windows.RoutedEventHandler(this.BackupFolderOneButton_Click);

#line default
#line hidden
return;
case 4:
this.BackupFolderOnePath = ((System.Windows.Controls.TextBlock)(target));
return;
case 5:
this.BackupFolderTwoButton = ((System.Windows.Controls.Button)(target));

#line 35 "..\..\MainWindow.xaml"
this.BackupFolderTwoButton.Click += new System.Windows.RoutedEventHandler(this.BackupFolderTwoButton_Click);

#line default
#line hidden
return;
case 6:
this.BackupFolderTwoPath = ((System.Windows.Controls.TextBlock)(target));
return;
case 7:
this.BackupProjectButton = ((System.Windows.Controls.Button)(target));

#line 47 "..\..\MainWindow.xaml"
this.BackupProjectButton.Click += new System.Windows.RoutedEventHandler(this.BackupProjectButton_Click);

#line default
#line hidden
return;
case 8:
this.RXGCFoldeButton = ((System.Windows.Controls.Button)(target));

#line 50 "..\..\MainWindow.xaml"
this.RXGCFoldeButton.Click += new System.Windows.RoutedEventHandler(this.RXGCFoldeButton_Click);

#line default
#line hidden
return;
case 9:
this.RXGCFolderPath = ((System.Windows.Controls.TextBlock)(target));
return;
case 10:
this.MoveGraphics = ((System.Windows.Controls.Button)(target));

#line 60 "..\..\MainWindow.xaml"
this.MoveGraphics.Click += new System.Windows.RoutedEventHandler(this.MoveGraphics_Click);

#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

1 change: 1 addition & 0 deletions obj/Release/RPGMVTools.csproj.CoreCompileInputs.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1fbb6437fe9396f161ced155212b1cd969715dcf
Loading

0 comments on commit 7bb1899

Please sign in to comment.