Skip to content

Commit

Permalink
ttt
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstardev committed Jan 16, 2025
1 parent 6af8f88 commit b9b6c7f
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
5 changes: 5 additions & 0 deletions RMVC/IRContract.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace RMVC {
public interface IRContract {

}
}
5 changes: 0 additions & 5 deletions RMVC/IRViewContract.cs

This file was deleted.

2 changes: 1 addition & 1 deletion RMVC/RCommandExecutorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public abstract class RCommandExecutorBase : RActor {
protected RCommandExecutorBase() {
}
protected void ExecuteCommand(RCommandBase command) {
rCommander?.Facade.ExecuteCommand(command);
rCommander?.Facade?.ExecuteCommand(command);
}
}
}
4 changes: 2 additions & 2 deletions RMVC/RFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static void Create(Type facadeConcreteType, IRAppShell? appShell = null)
}
}

public static void RegisterView(IRViewContract view) {
public static void RegisterView(IRContract view) {

RMediator? foundMediator = null;

Expand Down Expand Up @@ -125,7 +125,7 @@ public static void RegisterView(IRViewContract view) {

Log("Registered mediator + view: " + foundMediator.GetType().Name + " | " + view.GetType().Name);
}
public static void UnregisterView(IRViewContract view) {
public static void UnregisterView(IRContract view) {

RMediator? foundMediator = null;

Expand Down
4 changes: 2 additions & 2 deletions RMVC/RMediator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ public abstract class RMediator : RCommandExecutorBase {

public bool IsActive => viewBase != null;

public IRViewContract? viewBase { get; set; }
public IRContract? viewBase { get; set; }
internal Type viewBaseType { get; private set; }

internal void UpdateViewBase(IRViewContract viewBase) {
internal void UpdateViewBase(IRContract viewBase) {
OnDisposing();
this.viewBase = viewBase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;

namespace RMVCApp.Sample.Core.Shared {
public interface ICounterView : IRViewContract {
public interface ICounterView : IRContract {
event Action<int>? SetCounterEvt;
void SetCounter(int count);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;

namespace RMVCApp.Sample.Core.Shared {
public interface IHomeView : IRViewContract {
public interface IHomeView : IRContract {
event Action<string>? ShowRmvcMessageEvt;
event Action? RunRmvcProgressTestEvt;
void SetView();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using static RMVCApp.Sample.Core.Shared.Enums;

namespace RMVCApp.Sample.Core.Shared {
public interface IMainView : IRViewContract {
public interface IMainView : IRContract {
void ShowView(ViewEnum viewEnum);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;

namespace RMVCApp.Sample.Core.Shared {
public interface INavigationView : IRViewContract
public interface INavigationView : IRContract
{
event Action? ShowHomeViewEvt;
event Action? ShowCounterViewEvt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace RMVCApp.Sample.Core.Shared {


public interface IProgressView : IRViewContract {
public interface IProgressView : IRContract {
event Action? AbortProgressEvt;
void SetProgress(RProgress[] progress);
void ResetView();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using RMVC;

namespace RMVCApp.Sample.Core.Shared {
public interface IWeatherView : IRViewContract {
public interface IWeatherView : IRContract {
void SetView(WeatherForecastDTO[]? Forecasts);
}
}

0 comments on commit b9b6c7f

Please sign in to comment.