This commit is contained in:
bmgjet 2024-12-22 20:29:41 +13:00
commit a11465ec09
18 changed files with 1524 additions and 0 deletions

BIN
.vs/Ruyi-GUI/v17/.suo Normal file

Binary file not shown.

25
Ruyi-GUI.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34112.27
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ruyi-GUI", "Ruyi-GUI\Ruyi-GUI.csproj", "{69020BE2-E87C-4ECD-8E8F-A1591EC00174}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{69020BE2-E87C-4ECD-8E8F-A1591EC00174}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{69020BE2-E87C-4ECD-8E8F-A1591EC00174}.Debug|Any CPU.Build.0 = Debug|Any CPU
{69020BE2-E87C-4ECD-8E8F-A1591EC00174}.Release|Any CPU.ActiveCfg = Release|Any CPU
{69020BE2-E87C-4ECD-8E8F-A1591EC00174}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {066FF920-C8FC-477D-AB4D-EE3243EE2776}
EndGlobalSection
EndGlobal

BIN
Ruyi-GUI/AIIcon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

6
Ruyi-GUI/App.config Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

629
Ruyi-GUI/Form1.Designer.cs generated Normal file
View File

@ -0,0 +1,629 @@
namespace Ruyi_GUI
{
partial class Form1
{
/// <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()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.Img1lbl = new System.Windows.Forms.Label();
this.Img2lbl = new System.Windows.Forms.Label();
this.Img1 = new System.Windows.Forms.TextBox();
this.Img2 = new System.Windows.Forms.TextBox();
this.SelectImg1 = new System.Windows.Forms.Button();
this.SelectImg2 = new System.Windows.Forms.Button();
this.SelectVideoOut = new System.Windows.Forms.Button();
this.VideoOut = new System.Windows.Forms.TextBox();
this.Videolbl = new System.Windows.Forms.Label();
this.FrameRate = new System.Windows.Forms.ComboBox();
this.Frameslbl = new System.Windows.Forms.Label();
this.Resolutionlbl = new System.Windows.Forms.Label();
this.Resolution = new System.Windows.Forms.ComboBox();
this.Aspectlbl = new System.Windows.Forms.Label();
this.AspectRatio = new System.Windows.Forms.ComboBox();
this.Motionlbl = new System.Windows.Forms.Label();
this.Motion = new System.Windows.Forms.ComboBox();
this.Directionlbl = new System.Windows.Forms.Label();
this.Direction = new System.Windows.Forms.ComboBox();
this.LowMemoryMode = new System.Windows.Forms.CheckBox();
this.Offloadlbl = new System.Windows.Forms.Label();
this.GPUOffload = new System.Windows.Forms.TextBox();
this.Samplerlbl = new System.Windows.Forms.Label();
this.Steps = new System.Windows.Forms.TextBox();
this.Stepslbl = new System.Windows.Forms.Label();
this.Cfg = new System.Windows.Forms.TextBox();
this.Cfglbl = new System.Windows.Forms.Label();
this.Seed = new System.Windows.Forms.TextBox();
this.Seedlbl = new System.Windows.Forms.Label();
this.Schedulerlbl = new System.Windows.Forms.Label();
this.Scheduler = new System.Windows.Forms.ComboBox();
this.GenerateButton = new System.Windows.Forms.Button();
this.PlayVideo = new System.Windows.Forms.Button();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.AddJob = new System.Windows.Forms.Button();
this.JobList = new System.Windows.Forms.ListBox();
this.RemoveJob = new System.Windows.Forms.Button();
this.RunJobs = new System.Windows.Forms.Button();
this.timer2 = new System.Windows.Forms.Timer(this.components);
this.Batch = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox1.Location = new System.Drawing.Point(6, 6);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(257, 267);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// pictureBox2
//
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox2.Location = new System.Drawing.Point(276, 6);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(2);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(257, 267);
this.pictureBox2.TabIndex = 1;
this.pictureBox2.TabStop = false;
//
// Img1lbl
//
this.Img1lbl.AutoSize = true;
this.Img1lbl.Location = new System.Drawing.Point(3, 280);
this.Img1lbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Img1lbl.Name = "Img1lbl";
this.Img1lbl.Size = new System.Drawing.Size(78, 13);
this.Img1lbl.TabIndex = 2;
this.Img1lbl.Text = "Starting Image:";
//
// Img2lbl
//
this.Img2lbl.AutoSize = true;
this.Img2lbl.Location = new System.Drawing.Point(273, 280);
this.Img2lbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Img2lbl.Name = "Img2lbl";
this.Img2lbl.Size = new System.Drawing.Size(61, 13);
this.Img2lbl.TabIndex = 3;
this.Img2lbl.Text = "End Image:";
//
// Img1
//
this.Img1.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.Img1.Location = new System.Drawing.Point(85, 277);
this.Img1.Margin = new System.Windows.Forms.Padding(2);
this.Img1.Name = "Img1";
this.Img1.ReadOnly = true;
this.Img1.Size = new System.Drawing.Size(178, 20);
this.Img1.TabIndex = 4;
//
// Img2
//
this.Img2.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.Img2.Location = new System.Drawing.Point(335, 277);
this.Img2.Margin = new System.Windows.Forms.Padding(2);
this.Img2.Name = "Img2";
this.Img2.ReadOnly = true;
this.Img2.Size = new System.Drawing.Size(198, 20);
this.Img2.TabIndex = 5;
//
// SelectImg1
//
this.SelectImg1.Location = new System.Drawing.Point(6, 298);
this.SelectImg1.Margin = new System.Windows.Forms.Padding(2);
this.SelectImg1.Name = "SelectImg1";
this.SelectImg1.Size = new System.Drawing.Size(257, 22);
this.SelectImg1.TabIndex = 6;
this.SelectImg1.Text = "Select";
this.SelectImg1.UseVisualStyleBackColor = true;
this.SelectImg1.Click += new System.EventHandler(this.SelectImg1_Click);
//
// SelectImg2
//
this.SelectImg2.Location = new System.Drawing.Point(276, 298);
this.SelectImg2.Margin = new System.Windows.Forms.Padding(2);
this.SelectImg2.Name = "SelectImg2";
this.SelectImg2.Size = new System.Drawing.Size(257, 22);
this.SelectImg2.TabIndex = 7;
this.SelectImg2.Text = "Select";
this.SelectImg2.UseVisualStyleBackColor = true;
this.SelectImg2.Click += new System.EventHandler(this.SelectImg2_Click);
//
// SelectVideoOut
//
this.SelectVideoOut.Location = new System.Drawing.Point(445, 324);
this.SelectVideoOut.Margin = new System.Windows.Forms.Padding(2);
this.SelectVideoOut.Name = "SelectVideoOut";
this.SelectVideoOut.Size = new System.Drawing.Size(87, 22);
this.SelectVideoOut.TabIndex = 10;
this.SelectVideoOut.Text = "Select";
this.SelectVideoOut.UseVisualStyleBackColor = true;
this.SelectVideoOut.Click += new System.EventHandler(this.SelectVideoOut_Click);
//
// VideoOut
//
this.VideoOut.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.VideoOut.Location = new System.Drawing.Point(78, 326);
this.VideoOut.Margin = new System.Windows.Forms.Padding(2);
this.VideoOut.Name = "VideoOut";
this.VideoOut.ReadOnly = true;
this.VideoOut.Size = new System.Drawing.Size(363, 20);
this.VideoOut.TabIndex = 9;
//
// Videolbl
//
this.Videolbl.AutoSize = true;
this.Videolbl.Location = new System.Drawing.Point(3, 329);
this.Videolbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Videolbl.Name = "Videolbl";
this.Videolbl.Size = new System.Drawing.Size(72, 13);
this.Videolbl.TabIndex = 8;
this.Videolbl.Text = "Output Video:";
//
// FrameRate
//
this.FrameRate.FormattingEnabled = true;
this.FrameRate.Items.AddRange(new object[] {
"24",
"48",
"72",
"96",
"120"});
this.FrameRate.Location = new System.Drawing.Point(6, 372);
this.FrameRate.Margin = new System.Windows.Forms.Padding(2);
this.FrameRate.Name = "FrameRate";
this.FrameRate.Size = new System.Drawing.Size(80, 21);
this.FrameRate.TabIndex = 11;
//
// Frameslbl
//
this.Frameslbl.AutoSize = true;
this.Frameslbl.Location = new System.Drawing.Point(3, 357);
this.Frameslbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Frameslbl.Name = "Frameslbl";
this.Frameslbl.Size = new System.Drawing.Size(74, 13);
this.Frameslbl.TabIndex = 12;
this.Frameslbl.Text = "Video Frames:";
//
// Resolutionlbl
//
this.Resolutionlbl.AutoSize = true;
this.Resolutionlbl.Location = new System.Drawing.Point(164, 358);
this.Resolutionlbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Resolutionlbl.Name = "Resolutionlbl";
this.Resolutionlbl.Size = new System.Drawing.Size(115, 13);
this.Resolutionlbl.TabIndex = 14;
this.Resolutionlbl.Text = "Generation Resolution:";
//
// Resolution
//
this.Resolution.FormattingEnabled = true;
this.Resolution.Items.AddRange(new object[] {
"384",
"480",
"512",
"720",
"768",
"896"});
this.Resolution.Location = new System.Drawing.Point(166, 372);
this.Resolution.Margin = new System.Windows.Forms.Padding(2);
this.Resolution.Name = "Resolution";
this.Resolution.Size = new System.Drawing.Size(116, 21);
this.Resolution.TabIndex = 13;
//
// Aspectlbl
//
this.Aspectlbl.AutoSize = true;
this.Aspectlbl.Location = new System.Drawing.Point(90, 358);
this.Aspectlbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Aspectlbl.Name = "Aspectlbl";
this.Aspectlbl.Size = new System.Drawing.Size(71, 13);
this.Aspectlbl.TabIndex = 16;
this.Aspectlbl.Text = "Aspect Ratio:";
//
// AspectRatio
//
this.AspectRatio.FormattingEnabled = true;
this.AspectRatio.Items.AddRange(new object[] {
"16:9",
"9:16"});
this.AspectRatio.Location = new System.Drawing.Point(93, 372);
this.AspectRatio.Margin = new System.Windows.Forms.Padding(2);
this.AspectRatio.Name = "AspectRatio";
this.AspectRatio.Size = new System.Drawing.Size(70, 21);
this.AspectRatio.TabIndex = 15;
//
// Motionlbl
//
this.Motionlbl.AutoSize = true;
this.Motionlbl.Location = new System.Drawing.Point(378, 358);
this.Motionlbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Motionlbl.Name = "Motionlbl";
this.Motionlbl.Size = new System.Drawing.Size(42, 13);
this.Motionlbl.TabIndex = 18;
this.Motionlbl.Text = "Motion:";
//
// Motion
//
this.Motion.FormattingEnabled = true;
this.Motion.Items.AddRange(new object[] {
"auto",
"1",
"2",
"3",
"4"});
this.Motion.Location = new System.Drawing.Point(380, 372);
this.Motion.Margin = new System.Windows.Forms.Padding(2);
this.Motion.Name = "Motion";
this.Motion.Size = new System.Drawing.Size(76, 21);
this.Motion.TabIndex = 17;
//
// Directionlbl
//
this.Directionlbl.AutoSize = true;
this.Directionlbl.Location = new System.Drawing.Point(282, 358);
this.Directionlbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Directionlbl.Name = "Directionlbl";
this.Directionlbl.Size = new System.Drawing.Size(91, 13);
this.Directionlbl.TabIndex = 20;
this.Directionlbl.Text = "Camera Direction:";
//
// Direction
//
this.Direction.FormattingEnabled = true;
this.Direction.Items.AddRange(new object[] {
"auto",
"static",
"left",
"right",
"up",
"down"});
this.Direction.Location = new System.Drawing.Point(285, 372);
this.Direction.Margin = new System.Windows.Forms.Padding(2);
this.Direction.Name = "Direction";
this.Direction.Size = new System.Drawing.Size(92, 21);
this.Direction.TabIndex = 19;
//
// LowMemoryMode
//
this.LowMemoryMode.AutoSize = true;
this.LowMemoryMode.Location = new System.Drawing.Point(119, 418);
this.LowMemoryMode.Margin = new System.Windows.Forms.Padding(2);
this.LowMemoryMode.Name = "LowMemoryMode";
this.LowMemoryMode.Size = new System.Drawing.Size(142, 17);
this.LowMemoryMode.TabIndex = 21;
this.LowMemoryMode.Text = "Low GPU Memory Mode";
this.LowMemoryMode.UseVisualStyleBackColor = true;
//
// Offloadlbl
//
this.Offloadlbl.AutoSize = true;
this.Offloadlbl.Location = new System.Drawing.Point(3, 400);
this.Offloadlbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Offloadlbl.Name = "Offloadlbl";
this.Offloadlbl.Size = new System.Drawing.Size(100, 13);
this.Offloadlbl.TabIndex = 23;
this.Offloadlbl.Text = "GPU Offload Steps:";
//
// GPUOffload
//
this.GPUOffload.Location = new System.Drawing.Point(6, 415);
this.GPUOffload.Margin = new System.Windows.Forms.Padding(2);
this.GPUOffload.Name = "GPUOffload";
this.GPUOffload.Size = new System.Drawing.Size(95, 20);
this.GPUOffload.TabIndex = 24;
this.GPUOffload.Text = "0";
//
// Samplerlbl
//
this.Samplerlbl.AutoSize = true;
this.Samplerlbl.Location = new System.Drawing.Point(3, 439);
this.Samplerlbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Samplerlbl.Name = "Samplerlbl";
this.Samplerlbl.Size = new System.Drawing.Size(89, 13);
this.Samplerlbl.TabIndex = 25;
this.Samplerlbl.Text = "Sampler Settings:";
//
// Steps
//
this.Steps.Location = new System.Drawing.Point(11, 470);
this.Steps.Margin = new System.Windows.Forms.Padding(2);
this.Steps.Name = "Steps";
this.Steps.Size = new System.Drawing.Size(95, 20);
this.Steps.TabIndex = 27;
this.Steps.Text = "25";
//
// Stepslbl
//
this.Stepslbl.AutoSize = true;
this.Stepslbl.Location = new System.Drawing.Point(5, 455);
this.Stepslbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Stepslbl.Name = "Stepslbl";
this.Stepslbl.Size = new System.Drawing.Size(37, 13);
this.Stepslbl.TabIndex = 26;
this.Stepslbl.Text = "Steps:";
//
// Cfg
//
this.Cfg.Location = new System.Drawing.Point(113, 470);
this.Cfg.Margin = new System.Windows.Forms.Padding(2);
this.Cfg.Name = "Cfg";
this.Cfg.Size = new System.Drawing.Size(95, 20);
this.Cfg.TabIndex = 29;
this.Cfg.Text = "7.0";
//
// Cfglbl
//
this.Cfglbl.AutoSize = true;
this.Cfglbl.Location = new System.Drawing.Point(110, 455);
this.Cfglbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Cfglbl.Name = "Cfglbl";
this.Cfglbl.Size = new System.Drawing.Size(26, 13);
this.Cfglbl.TabIndex = 28;
this.Cfglbl.Text = "Cfg:";
//
// Seed
//
this.Seed.Location = new System.Drawing.Point(215, 470);
this.Seed.Margin = new System.Windows.Forms.Padding(2);
this.Seed.Name = "Seed";
this.Seed.Size = new System.Drawing.Size(95, 20);
this.Seed.TabIndex = 31;
this.Seed.Text = "17";
//
// Seedlbl
//
this.Seedlbl.AutoSize = true;
this.Seedlbl.Location = new System.Drawing.Point(212, 455);
this.Seedlbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Seedlbl.Name = "Seedlbl";
this.Seedlbl.Size = new System.Drawing.Size(35, 13);
this.Seedlbl.TabIndex = 30;
this.Seedlbl.Text = "Seed:";
//
// Schedulerlbl
//
this.Schedulerlbl.AutoSize = true;
this.Schedulerlbl.Location = new System.Drawing.Point(315, 455);
this.Schedulerlbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.Schedulerlbl.Name = "Schedulerlbl";
this.Schedulerlbl.Size = new System.Drawing.Size(58, 13);
this.Schedulerlbl.TabIndex = 33;
this.Schedulerlbl.Text = "Scheduler:";
//
// Scheduler
//
this.Scheduler.FormattingEnabled = true;
this.Scheduler.Items.AddRange(new object[] {
"DDIM",
"Euler",
"Euler A",
"DPM++",
"PNDM",
"DDIM"});
this.Scheduler.Location = new System.Drawing.Point(318, 470);
this.Scheduler.Margin = new System.Windows.Forms.Padding(2);
this.Scheduler.Name = "Scheduler";
this.Scheduler.Size = new System.Drawing.Size(138, 21);
this.Scheduler.TabIndex = 32;
//
// GenerateButton
//
this.GenerateButton.Location = new System.Drawing.Point(6, 495);
this.GenerateButton.Margin = new System.Windows.Forms.Padding(2);
this.GenerateButton.Name = "GenerateButton";
this.GenerateButton.Size = new System.Drawing.Size(527, 30);
this.GenerateButton.TabIndex = 34;
this.GenerateButton.Text = "Generate Video";
this.GenerateButton.UseVisualStyleBackColor = true;
this.GenerateButton.Click += new System.EventHandler(this.GenerateButton_Click);
//
// PlayVideo
//
this.PlayVideo.Enabled = false;
this.PlayVideo.Location = new System.Drawing.Point(8, 527);
this.PlayVideo.Name = "PlayVideo";
this.PlayVideo.Size = new System.Drawing.Size(524, 24);
this.PlayVideo.TabIndex = 35;
this.PlayVideo.Text = "Play Video";
this.PlayVideo.UseVisualStyleBackColor = true;
this.PlayVideo.Click += new System.EventHandler(this.PlayVideo_Click);
//
// timer1
//
this.timer1.Enabled = true;
this.timer1.Interval = 1000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// AddJob
//
this.AddJob.Location = new System.Drawing.Point(540, 458);
this.AddJob.Name = "AddJob";
this.AddJob.Size = new System.Drawing.Size(101, 24);
this.AddJob.TabIndex = 36;
this.AddJob.Text = "Add As Job";
this.AddJob.UseVisualStyleBackColor = true;
this.AddJob.Click += new System.EventHandler(this.AddJob_Click);
//
// JobList
//
this.JobList.FormattingEnabled = true;
this.JobList.Location = new System.Drawing.Point(540, 6);
this.JobList.Name = "JobList";
this.JobList.Size = new System.Drawing.Size(235, 446);
this.JobList.TabIndex = 37;
this.JobList.SelectedIndexChanged += new System.EventHandler(this.JobList_SelectedIndexChanged);
//
// RemoveJob
//
this.RemoveJob.Location = new System.Drawing.Point(674, 458);
this.RemoveJob.Name = "RemoveJob";
this.RemoveJob.Size = new System.Drawing.Size(101, 24);
this.RemoveJob.TabIndex = 38;
this.RemoveJob.Text = "Remove Job";
this.RemoveJob.UseVisualStyleBackColor = true;
this.RemoveJob.Click += new System.EventHandler(this.RemoveJob_Click);
//
// RunJobs
//
this.RunJobs.Location = new System.Drawing.Point(540, 488);
this.RunJobs.Name = "RunJobs";
this.RunJobs.Size = new System.Drawing.Size(234, 63);
this.RunJobs.TabIndex = 39;
this.RunJobs.Text = "Run Jobs";
this.RunJobs.UseVisualStyleBackColor = true;
this.RunJobs.Click += new System.EventHandler(this.RunJobs_Click);
//
// timer2
//
this.timer2.Interval = 1000;
this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
//
// Batch
//
this.Batch.Location = new System.Drawing.Point(465, 470);
this.Batch.Name = "Batch";
this.Batch.Size = new System.Drawing.Size(67, 21);
this.Batch.TabIndex = 40;
this.Batch.Text = "Batch";
this.Batch.UseVisualStyleBackColor = true;
this.Batch.Click += new System.EventHandler(this.Batch_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(540, 557);
this.Controls.Add(this.Batch);
this.Controls.Add(this.RunJobs);
this.Controls.Add(this.RemoveJob);
this.Controls.Add(this.JobList);
this.Controls.Add(this.AddJob);
this.Controls.Add(this.PlayVideo);
this.Controls.Add(this.GenerateButton);
this.Controls.Add(this.Schedulerlbl);
this.Controls.Add(this.Scheduler);
this.Controls.Add(this.Seed);
this.Controls.Add(this.Seedlbl);
this.Controls.Add(this.Cfg);
this.Controls.Add(this.Cfglbl);
this.Controls.Add(this.Steps);
this.Controls.Add(this.Stepslbl);
this.Controls.Add(this.Samplerlbl);
this.Controls.Add(this.GPUOffload);
this.Controls.Add(this.Offloadlbl);
this.Controls.Add(this.LowMemoryMode);
this.Controls.Add(this.Directionlbl);
this.Controls.Add(this.Direction);
this.Controls.Add(this.Motionlbl);
this.Controls.Add(this.Motion);
this.Controls.Add(this.Aspectlbl);
this.Controls.Add(this.AspectRatio);
this.Controls.Add(this.Resolutionlbl);
this.Controls.Add(this.Resolution);
this.Controls.Add(this.Frameslbl);
this.Controls.Add(this.FrameRate);
this.Controls.Add(this.SelectVideoOut);
this.Controls.Add(this.VideoOut);
this.Controls.Add(this.Videolbl);
this.Controls.Add(this.SelectImg2);
this.Controls.Add(this.SelectImg1);
this.Controls.Add(this.Img2);
this.Controls.Add(this.Img1);
this.Controls.Add(this.Img2lbl);
this.Controls.Add(this.Img1lbl);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.Text = "Ruyi-GUI";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Label Img1lbl;
private System.Windows.Forms.Label Img2lbl;
private System.Windows.Forms.TextBox Img1;
private System.Windows.Forms.TextBox Img2;
private System.Windows.Forms.Button SelectImg1;
private System.Windows.Forms.Button SelectImg2;
private System.Windows.Forms.Button SelectVideoOut;
private System.Windows.Forms.TextBox VideoOut;
private System.Windows.Forms.Label Videolbl;
private System.Windows.Forms.ComboBox FrameRate;
private System.Windows.Forms.Label Frameslbl;
private System.Windows.Forms.Label Resolutionlbl;
private System.Windows.Forms.ComboBox Resolution;
private System.Windows.Forms.Label Aspectlbl;
private System.Windows.Forms.ComboBox AspectRatio;
private System.Windows.Forms.Label Motionlbl;
private System.Windows.Forms.ComboBox Motion;
private System.Windows.Forms.Label Directionlbl;
private System.Windows.Forms.ComboBox Direction;
private System.Windows.Forms.CheckBox LowMemoryMode;
private System.Windows.Forms.Label Offloadlbl;
private System.Windows.Forms.TextBox GPUOffload;
private System.Windows.Forms.Label Samplerlbl;
private System.Windows.Forms.TextBox Steps;
private System.Windows.Forms.Label Stepslbl;
private System.Windows.Forms.TextBox Cfg;
private System.Windows.Forms.Label Cfglbl;
private System.Windows.Forms.TextBox Seed;
private System.Windows.Forms.Label Seedlbl;
private System.Windows.Forms.Label Schedulerlbl;
private System.Windows.Forms.ComboBox Scheduler;
private System.Windows.Forms.Button GenerateButton;
private System.Windows.Forms.Button PlayVideo;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Button AddJob;
private System.Windows.Forms.ListBox JobList;
private System.Windows.Forms.Button RemoveJob;
private System.Windows.Forms.Button RunJobs;
private System.Windows.Forms.Timer timer2;
private System.Windows.Forms.Button Batch;
}
}

288
Ruyi-GUI/Form1.cs Normal file
View File

@ -0,0 +1,288 @@
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.IO.Compression;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Ruyi_GUI
{
public partial class Form1 : Form
{
public string PythonCode = Encoding.UTF8.GetString(Convert.FromBase64String(Decompress(Convert.FromBase64String("xRprb+M28nuA/AeeroClrqrdpO0eEEAf0tjZGhdvgiS3/ZAzBMaibG5kUadHNmng/34zJCVRD9vpXoAL0CbivIfD4cxw+ToVWUFEfnjA1Z+FyBarw4MoE2tyNb0genm6pkuml0MeRWXOsrwC2pMyZtmY54uMFexmsWIhLrhErp8mC5YXGY37COOr2Y2IH1k2K+OC5wVLDeKrz+OZ8TkeT5tPR6si1mxJFyKJKlUuceEMFjQCyE3ySGRrQ92zi+mVtOcqE6BaLoA7rn3hORfJTIQs/oMXK4B+ZYsCljSvnEagfQL4uSfdVDGMBQ2DiMeM0Fx9GKiaeFUulzxZRnTBglV5X5HmCU3zlSiCUHxLkFSjZ+Uz90JaUO++XDywAjiuUzC8oju9uZqc3QbXp7fTy+DXo2OXLAFpEYscfB1kFNQ2Oa3RqNyjZSFYsoCPLAAHPPKi5tdA/nkxk6ABesObP4cV6e9l8lzS5NaAjaUTTQYpT1nME1b/EeBywJOU8qTW4hrWpmrpSuOZTMqCgxKxyGgg/6zIQOSSBbjukjJpvvq0LTL0GMc4CAoRPPKQiSCmsGuFC1v9yNRSHiwzDruSFzSr0FNarAj8+MR6+WE6O/00OdpYhwcsCTsIiKIxjjeHB6Is0rLQojSO5PFlOp5cIgutBUuWFQPF4vz6dDa5ARb3NAfXsVzEJUZmjXAtoYo8538yQhryzyJh5PCA5imEs4qNBgjSVSyh+LWomZIWyuwS4uwzoiwo+JcGIc/U2ahRxtNr4CKxCLqLpTnpcnr54eZ2coWaLqIl6f4g/Oz8E0Dz6pwHCYgz9Lg5+30y/tfF5FoKicW3YJmWwZqtRfYcYJBKJheXf8wmM+CDQBFF6khqjRDh8vz84vJ0jJI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46pSXGpN3oRqEvW6fF4FS3N9ycuz26XSPdrfPOAT7DY92BoedeHbbz6E0KTV71zHCXQ7rz0F0Mdnpm26x0v0Y98/qT09drtZ3ZTl91skLr2DRYK+NJza9qiwasiowKrIqdBlqnSAmtv0yMkocU7itIrVQG9yJamoaX64AnEcuYxJFvnljvwe+uJaTWwswzRi+BHqgw/X7+GRqhSczmsxozOZ56S/9/5A/zHwS8LoPUD/XqtgMe1awFLhC8Ve3eQ75qndtkkM5HI60TMFjTBwb0ud3Cgpz8BBVYIB587MeAT/efHtgqjbmkJ9QlUZr7x784/wU="))));
public string StartBat;
public bool DoingJobs = false;
private void SaveSettings() { File.WriteAllText("Config.cfg", Img1.Text + "|" + Img2.Text + "|" + VideoOut.Text + "|" + FrameRate.SelectedIndex + "|" + AspectRatio.SelectedIndex + "|" + Resolution.SelectedIndex + "|" + Direction.SelectedIndex + "|" + Motion.SelectedIndex + "|" + GPUOffload.Text + "|" + LowMemoryMode.Checked + "|" + Steps.Text + "|" + Cfg.Text + "|" + Seed.Text + "|" + Scheduler.SelectedIndex); }
private void LogFiltered(string message)
{
if (message.Contains("%"))
{
AppendTextBox(message);
}
if(DoingJobs && message.Contains("100%"))
{
AppendTextBox("Loading Next Job..");
while (!File.Exists(VideoOut.Text)){Thread.Sleep(5000);}
DoingJobs = false;
JobList.Items.RemoveAt(0);
return;
}
if (message.Contains("100%"))
{
GenerateButton.BeginInvoke(new Action(() => { GenerateButton.Enabled = true; }));
AppendTextBox("");
}
}
public static string Decompress(byte[] data)
{
MemoryStream input = new MemoryStream(data);
MemoryStream output = new MemoryStream();
using (DeflateStream dstream = new DeflateStream(input, CompressionMode.Decompress))
{
dstream.CopyTo(output);
}
return Convert.ToBase64String(output.ToArray());
}
public Form1()
{
InitializeComponent();
StartBat = Path.Combine(AssemblyDirectory, "Run_Ruyi.bat");
if (File.Exists("Config.cfg"))
{
string Settings = File.ReadAllText("Config.cfg");
string[] SSettings = Settings.Split('|');
Img1.Text = SSettings[0];
Img2.Text = SSettings[1];
VideoOut.Text = SSettings[2];
FrameRate.SelectedIndex = int.Parse(SSettings[3]);
AspectRatio.SelectedIndex = int.Parse(SSettings[4]);
Resolution.SelectedIndex = int.Parse(SSettings[5]);
Direction.SelectedIndex = int.Parse(SSettings[6]);
Motion.SelectedIndex = int.Parse(SSettings[7]);
GPUOffload.Text = SSettings[8];
LowMemoryMode.Checked = bool.Parse(SSettings[9]);
Steps.Text = SSettings[10];
Cfg.Text = SSettings[11];
Seed.Text = SSettings[12];
Scheduler.SelectedIndex = int.Parse(SSettings[13]);
if (File.Exists(Img1.Text)) { pictureBox1.BackgroundImage = new Bitmap(Img1.Text); }
if (File.Exists(Img2.Text)) { pictureBox2.BackgroundImage = new Bitmap(Img2.Text); }
}
else
{
FrameRate.SelectedIndex = 0;
AspectRatio.SelectedIndex = 0;
Resolution.SelectedIndex = 0;
Direction.SelectedIndex = 0;
Motion.SelectedIndex = 0;
Scheduler.SelectedIndex = 0;
SaveSettings();
}
}
private void GenerateButton_Click(object sender, EventArgs e)
{
string Image2 = string.IsNullOrEmpty(Img2.Text) ? "None" : @""""+ Img2.Text.Replace(@"\", @"\\")+@"""";
string CallCode = PythonCode.Replace("{$IMAGE1}", Img1.Text.Replace(@"\", @"\\")).Replace("{$IMAGE2}", Image2).Replace("{$VIDEO}", VideoOut.Text.Replace(@"\", @"\\")).Replace("{$FRAMES}", FrameRate.Text).Replace("{$RES}", Resolution.Text).Replace("{$ASPECT}", AspectRatio.Text).Replace("{$MOTION}", Motion.Text).Replace("{$DIRECTION}", Direction.Text).Replace("{$STEPS}", Steps.Text).Replace("{$CFG}", Cfg.Text).Replace("{$SCHEDULER}", Scheduler.Text).Replace("{$LOWMEM}", LowMemoryMode.Checked.ToString()).Replace("{$OFFLOAD}", GPUOffload.Text).Replace("{$SEED}", Seed.Text);
File.WriteAllText(Path.Combine("Ruyi-Models", "i2v.py"), CallCode);
ExecuteCommand();
}
private string GetTimestamp()
{
DateTime currentTime = DateTime.UtcNow;
long unixTime = ((DateTimeOffset)currentTime).ToUnixTimeSeconds();
return unixTime.ToString();
}
private void AppendTextBox(string value)
{
if (InvokeRequired)
{
this.Invoke(new Action<string>(AppendTextBox), new object[] { value });
return;
}
this.Text = "Ruyi-GUI " + value;
}
private string AssemblyDirectory
{
get
{
string codeBase = Assembly.GetExecutingAssembly().CodeBase;
UriBuilder uri = new UriBuilder(codeBase);
string path = Uri.UnescapeDataString(uri.Path);
return Path.GetDirectoryName(path);
}
}
private void ExecuteCommand()
{
if(File.Exists(VideoOut.Text)){File.Move(VideoOut.Text, VideoOut.Text.Replace(".mp4", "-"+ GetTimestamp() +".mp4"));}
File.WriteAllText(StartBat,
@"@echo off
call environment.bat
cd %~dp0Ruyi-Models
if not defined PYTHON (set PYTHON=python)
%PYTHON% i2v.py %*
pause
exit /b");
Task.Run(() =>
{
GenerateButton.BeginInvoke(new Action(() => { GenerateButton.Enabled = false; }));
AppendTextBox("Loading AI Please Wait...");
var processInfo = new ProcessStartInfo("cmd.exe", "/c " + StartBat);
processInfo.CreateNoWindow = true;
processInfo.UseShellExecute = false;
processInfo.RedirectStandardError = true;
processInfo.RedirectStandardOutput = true;
var process = Process.Start(processInfo);
process.OutputDataReceived += (object sender, DataReceivedEventArgs e) => LogFiltered(e.Data);
process.BeginOutputReadLine();
process.ErrorDataReceived += (object sender, DataReceivedEventArgs e) => LogFiltered(e.Data);
process.BeginErrorReadLine();
process.WaitForExit();
process.Close();
});
}
private string SelectImageButton()
{
string path = "";
var dialog = new OpenFileDialog();
dialog.Title = "Open Image";
dialog.Filter = "Image Files (*.bmp;*.jpg;*.jpeg,*.png)|*.BMP;*.JPG;*.JPEG;*.PNG";
if (dialog.ShowDialog() == DialogResult.OK) { path = dialog.FileName; }
dialog.Dispose();
return path;
}
private void SelectImg1_Click(object sender, EventArgs e)
{
Img1.Text = SelectImageButton();
if (string.IsNullOrEmpty(Img1.Text))
{
pictureBox1.BackgroundImage = null;
return;
}
pictureBox1.BackgroundImage = new Bitmap(Img1.Text);
}
private void SelectImg2_Click(object sender, EventArgs e)
{
Img2.Text = SelectImageButton();
if (string.IsNullOrEmpty(Img2.Text))
{
pictureBox2.BackgroundImage = null;
return;
}
pictureBox2.BackgroundImage = new Bitmap(Img2.Text);
}
private void SelectVideoOut_Click(object sender, EventArgs e)
{
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "Video Output|*.mp4";
saveFileDialog1.Title = "Save an Video File";
saveFileDialog1.ShowDialog();
if (saveFileDialog1.FileName != "")
{
VideoOut.Text = saveFileDialog1.FileName;
}
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
SaveSettings();
if (File.Exists(StartBat)) { File.Delete(StartBat); }
}
private void PlayVideo_Click(object sender, EventArgs e)
{
if (File.Exists(VideoOut.Text))
{
System.Diagnostics.Process.Start(VideoOut.Text);
}
}
private void timer1_Tick(object sender, EventArgs e)
{
if (File.Exists(VideoOut.Text)){PlayVideo.Enabled = true;}
else { PlayVideo.Enabled = false; }
}
private void AddJob_Click(object sender, EventArgs e)
{
string Job = Img1.Text + "|" + Img2.Text + "|" + VideoOut.Text;
if (JobList.Items.Contains(Job)) { return; }
JobList.Items.Add(Img1.Text + "|" + Img2.Text + "|" + VideoOut.Text);
}
private void RemoveJob_Click(object sender, EventArgs e)
{
if (JobList.SelectedIndex == -1) return;
JobList.Items.RemoveAt(JobList.SelectedIndex);
}
private void RunJobs_Click(object sender, EventArgs e)
{
timer2.Enabled = true;
RunJobs.Enabled = false;
}
private void timer2_Tick(object sender, EventArgs e)
{
if (DoingJobs) { return; }
if (JobList.Items.Count > 0)
{
DoingJobs = true;
UpdateJobList();
string Image2 = string.IsNullOrEmpty(Img2.Text) ? "None" : @"""" + Img2.Text.Replace(@"\", @"\\") + @"""";
string CallCode = PythonCode.Replace("{$IMAGE1}", Img1.Text.Replace(@"\", @"\\")).Replace("{$IMAGE2}", Image2).Replace("{$VIDEO}", VideoOut.Text.Replace(@"\", @"\\")).Replace("{$FRAMES}", FrameRate.Text).Replace("{$RES}", Resolution.Text).Replace("{$ASPECT}", AspectRatio.Text).Replace("{$MOTION}", Motion.Text).Replace("{$DIRECTION}", Direction.Text).Replace("{$STEPS}", Steps.Text).Replace("{$CFG}", Cfg.Text).Replace("{$SCHEDULER}", Scheduler.Text).Replace("{$LOWMEM}", LowMemoryMode.Checked.ToString()).Replace("{$OFFLOAD}", GPUOffload.Text).Replace("{$SEED}", Seed.Text);
File.WriteAllText(Path.Combine("Ruyi-Models", "i2v.py"), CallCode);
ExecuteCommand();
}
else
{
AppendTextBox("");
RunJobs.Enabled = true;
timer2.Enabled = false;
DoingJobs = false;
return;
}
}
private void UpdateJobList()
{
if(JobList.SelectedIndex == -1) { return; }
string[] JobSplit = JobList.Items[JobList.SelectedIndex].ToString().Split('|');
Img1.Text = JobSplit[0];
Img2.Text = JobSplit[1];
VideoOut.Text = JobSplit[2];
if (string.IsNullOrEmpty(Img1.Text)) { pictureBox1.BackgroundImage = null; }
else { pictureBox1.BackgroundImage = new Bitmap(Img1.Text); }
if (string.IsNullOrEmpty(Img2.Text)) { pictureBox2.BackgroundImage = null; }
else { pictureBox2.BackgroundImage = new Bitmap(Img2.Text); }
}
private void JobList_SelectedIndexChanged(object sender, EventArgs e)
{
UpdateJobList();
}
private void Batch_Click(object sender, EventArgs e)
{
if (this.Width == 800){this.Width = 560; }
else{this.Width = 800;}
}
}
}

203
Ruyi-GUI/Form1.resx Normal file
View File

@ -0,0 +1,203 @@
<?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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>105, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.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>
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVEgwAaVVVADEp
JQg2LSoXNi4sGjQtKxozKykbMSknHC4nJR4tJSMfLCQhHi0kIB0tJCAeLCMgHywjHx0qIh4dJx8bFyAb
FwZCNjMACAcDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtKSIAQzc1ADsy
LRg+NDFrQDYytj41MtY7MzDaOjEw2zkwLts5Ly3cNy0r3TUrKd4zKSfeMygl3TMoJN4yJyTfMick3jEn
JN0xJyTWMikmsjQrJ2w0LCcYNywpACspIQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAA/////////////////wAA//wAAD/4AAAf8AAAD+AAAAfgAAAH4AAAB+AA
AAfgAAAH4AAAB+AAAAfgAAAH4AAAB+AAAAfgAAAH4AAAB+AAAAfgAAAH4AAAB+AAAAfgAAAH4AAAB/AA
AA/wAAAP+AAAH/wAAH////////////////8=
</value>
</data>
</root>

22
Ruyi-GUI/Program.cs Normal file
View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Ruyi_GUI
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,36 @@
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("Ruyi-GUI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("bmgjet")]
[assembly: AssemblyProduct("Ruyi-GUI")]
[assembly: AssemblyCopyright("Copyright © bmgjet 2024")]
[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("69020be2-e87c-4ecd-8e8f-a1591ec00174")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------
namespace Ruyi_GUI.Properties
{
/// <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", "4.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 ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Ruyi_GUI.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;
}
}
}
}

View File

@ -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>

30
Ruyi-GUI/Properties/Settings.Designer.cs generated Normal file
View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------
namespace Ruyi_GUI.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

90
Ruyi-GUI/Ruyi-GUI.csproj Normal file
View File

@ -0,0 +1,90 @@
<?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>{69020BE2-E87C-4ECD-8E8F-A1591EC00174}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Ruyi_GUI</RootNamespace>
<AssemblyName>Ruyi-GUI</AssemblyName>
<TargetFrameworkVersion>v4.8</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>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>AIIcon.ico</ApplicationIcon>
</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="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.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>
<ItemGroup>
<Content Include="AIIcon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

Binary file not shown.