* Simplifying view models, step 1: Extracting common terminal configuration into TerminalInfoViewModel.cs. * Simplifying a bit. * SSH view models simplfication. * Refactoring duplicated code. * Refactoring duplicated code. * Renaming a resource file. * Cleanup. * Fixing an issue with TemplateSelectors. * QuickSshDialog created. * Minor fix. * Wiring up QuickSshDialog. * Minor fix. * Fixed an issue with shared resources. * Single-text-box dialog works. * Improving "Quick SSH" look. * Improving data validation workflow to avoid double validations. * Refactoring view models and templates to avoid duplicated code. * Minor fix. * Fixing a bug with mosh. * Cleanup. * Cleanup. * Moving profile view models in a separate folder (namespace). * Few comment lines (short description) added to profile view models. * Removing IDisposable from view-models because event-caused memory leaks will be solved differently. * Implemented quick-ssh shortcuts. * Fixing quick SSH command validation. * Minor change. * Minor change. * Combining "SSH Info" and "Quick SSH" into a single dialog. * Quick SSH profiles. * Fixing a minor bug with custom links. * Fixing remote profiles look and feel. * Minor improvements. * Fixing a minor bug. * Minor changes based on Felix' comments. * Saving executed commands history implemented.
24 lines
634 B
C#
24 lines
634 B
C#
using FluentTerminal.App.Services.EventArgs;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FluentTerminal.App.Services
|
|
{
|
|
public delegate Task CloseRequestedHandler(object sender, CancelableEventArgs args);
|
|
|
|
public interface IApplicationView
|
|
{
|
|
event CloseRequestedHandler CloseRequested;
|
|
event EventHandler Closed;
|
|
|
|
int Id { get; }
|
|
string Title { get; set; }
|
|
|
|
Task RunOnDispatcherThread(Action action, bool enforceNewSchedule = true);
|
|
|
|
Task<bool> TryClose();
|
|
|
|
bool ToggleFullScreen();
|
|
bool IsApiContractPresent(string api, ushort version);
|
|
}
|
|
} |