From bfc724e83f491efb9c0a0f9822466adb5d8908ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Su=C3=A1rez=20Ruiz?= Date: Sat, 2 Sep 2017 13:59:34 +0200 Subject: [PATCH] Removed Save button --- source/FormsGtkLive.GTK/FormsGtkLive.GTK.csproj | 3 --- source/FormsGtkLive.GTK/Images/save.png | Bin 336 -> 0 bytes source/FormsGtkLive/ViewModels/EditorViewModel.cs | 11 ++--------- source/FormsGtkLive/Views/EditorView.xaml | 4 ---- 4 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 source/FormsGtkLive.GTK/Images/save.png diff --git a/source/FormsGtkLive.GTK/FormsGtkLive.GTK.csproj b/source/FormsGtkLive.GTK/FormsGtkLive.GTK.csproj index 6151e23..2347ead 100644 --- a/source/FormsGtkLive.GTK/FormsGtkLive.GTK.csproj +++ b/source/FormsGtkLive.GTK/FormsGtkLive.GTK.csproj @@ -115,9 +115,6 @@ PreserveNewest - - PreserveNewest - diff --git a/source/FormsGtkLive.GTK/Images/save.png b/source/FormsGtkLive.GTK/Images/save.png deleted file mode 100644 index a1b150c558f8e75f5706b75e0737a89ef62000a1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 336 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTC#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6;>1s;*b3=DjSL74G){)!Z!;8RZ*$B+!?x7Qu{nhXS318x=Yh*ueXW!Y8u z{#x)0Mw^E17nygI^!}UJe{kxBCgDl{C$-f`9pmBk)pY@ae@j-adj0wKyzl8|*QGXp zXO@lV-4$|n-t!RkiPv=$TZEGDNvSS(GxuPgccsDH)PX-oVR>4_y8Qn932Yl)-%0Ly zofh%z$_u9Tb8pDy-d1_6v7yO)PYdf~|6go-Rx;*i9hfckVHw*V-+hg1HVd57O@AVr zEOh0@f@9M*eve!sp3PwYp|R#kh|!djzk=uQW)gqG43v&obgXORcdi!}Z*xEKb^w8j bc9;0!z4Hs-@>$OYdYHk})z4*}Q$iB}Y2S&5 diff --git a/source/FormsGtkLive/ViewModels/EditorViewModel.cs b/source/FormsGtkLive/ViewModels/EditorViewModel.cs index bbafc91..f9dd83c 100644 --- a/source/FormsGtkLive/ViewModels/EditorViewModel.cs +++ b/source/FormsGtkLive/ViewModels/EditorViewModel.cs @@ -30,8 +30,6 @@ namespace FormsGtkLive.ViewModels } } - public ICommand SaveCommand => new Command(Save); - public ICommand ReloadCommand => new Command(Reload); private async void PreviewXaml(string xaml) @@ -43,7 +41,7 @@ namespace FormsGtkLive.ViewModels if (string.IsNullOrEmpty(xaml)) return; - string contentPageXaml = $"{xaml}"; + string contentPageXaml = $"{xaml}"; await Live.UpdatePageFromXamlAsync(contentPage, contentPageXaml); } @@ -58,14 +56,9 @@ namespace FormsGtkLive.ViewModels Preview = contentPage.Content; } - private void Save() - { - - } - private void Reload() { PreviewXaml(LiveXaml); } } -} +} \ No newline at end of file diff --git a/source/FormsGtkLive/Views/EditorView.xaml b/source/FormsGtkLive/Views/EditorView.xaml index 9cb2aed..d01cf43 100644 --- a/source/FormsGtkLive/Views/EditorView.xaml +++ b/source/FormsGtkLive/Views/EditorView.xaml @@ -4,10 +4,6 @@ x:Class="FormsGtkLive.Views.EditorView" Title="Live XAML Editor"> -