Browse Source

Move InferenceTextToImageView to Views.Inference

pull/165/head
Ionite 1 year ago
parent
commit
d97a505010
No known key found for this signature in database
  1. 1
      StabilityMatrix.Avalonia/App.axaml.cs
  2. 2
      StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs
  3. 2
      StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml
  4. 11
      StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml.cs
  5. 21
      StabilityMatrix.Avalonia/Views/InferenceTextToImageView.axaml.cs

1
StabilityMatrix.Avalonia/App.axaml.cs

@ -68,6 +68,7 @@ using StabilityMatrix.Core.Services;
using StabilityMatrix.Core.Updater; using StabilityMatrix.Core.Updater;
using Application = Avalonia.Application; using Application = Avalonia.Application;
using DrawingColor = System.Drawing.Color; using DrawingColor = System.Drawing.Color;
using InferenceTextToImageView = StabilityMatrix.Avalonia.Views.Inference.InferenceTextToImageView;
using LogLevel = Microsoft.Extensions.Logging.LogLevel; using LogLevel = Microsoft.Extensions.Logging.LogLevel;
namespace StabilityMatrix.Avalonia; namespace StabilityMatrix.Avalonia;

2
StabilityMatrix.Avalonia/ViewModels/Inference/InferenceTextToImageViewModel.cs

@ -20,7 +20,6 @@ using StabilityMatrix.Avalonia.Services;
using StabilityMatrix.Avalonia.ViewModels.Base; using StabilityMatrix.Avalonia.ViewModels.Base;
using StabilityMatrix.Avalonia.Views; using StabilityMatrix.Avalonia.Views;
using StabilityMatrix.Core.Attributes; using StabilityMatrix.Core.Attributes;
using StabilityMatrix.Core.Exceptions;
using StabilityMatrix.Core.Extensions; using StabilityMatrix.Core.Extensions;
using StabilityMatrix.Core.Helper; using StabilityMatrix.Core.Helper;
using StabilityMatrix.Core.Inference; using StabilityMatrix.Core.Inference;
@ -30,6 +29,7 @@ using StabilityMatrix.Core.Models.Api.Comfy.Nodes;
using StabilityMatrix.Core.Models.Api.Comfy.NodeTypes; using StabilityMatrix.Core.Models.Api.Comfy.NodeTypes;
using StabilityMatrix.Core.Models.Api.Comfy.WebSocketData; using StabilityMatrix.Core.Models.Api.Comfy.WebSocketData;
using StabilityMatrix.Core.Services; using StabilityMatrix.Core.Services;
using InferenceTextToImageView = StabilityMatrix.Avalonia.Views.Inference.InferenceTextToImageView;
#pragma warning disable CS0657 // Not a valid attribute location for this declaration #pragma warning disable CS0657 // Not a valid attribute location for this declaration

2
StabilityMatrix.Avalonia/Views/InferenceTextToImageView.axaml → StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml

@ -1,5 +1,5 @@
<controls:UserControlBase <controls:UserControlBase
x:Class="StabilityMatrix.Avalonia.Views.InferenceTextToImageView" x:Class="StabilityMatrix.Avalonia.Views.Inference.InferenceTextToImageView"
xmlns="https://github.com/avaloniaui" xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls" xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls"

11
StabilityMatrix.Avalonia/Views/Inference/InferenceTextToImageView.axaml.cs

@ -0,0 +1,11 @@
using StabilityMatrix.Avalonia.Controls.Dock;
namespace StabilityMatrix.Avalonia.Views.Inference;
public partial class InferenceTextToImageView : DockUserControlBase
{
public InferenceTextToImageView()
{
InitializeComponent();
}
}

21
StabilityMatrix.Avalonia/Views/InferenceTextToImageView.axaml.cs

@ -1,21 +0,0 @@
using System.Diagnostics;
using StabilityMatrix.Avalonia.Controls.Dock;
namespace StabilityMatrix.Avalonia.Views;
public partial class InferenceTextToImageView : DockUserControlBase
{
public InferenceTextToImageView()
{
InitializeComponent();
}
~InferenceTextToImageView()
{
if (DataContext is { } dataContext)
{
Debug.WriteLine("InferenceTextToImageView destructor");
}
Debug.WriteLine("InferenceTextToImageView destructor");
}
}
Loading…
Cancel
Save