From 26df70338a137fe628183d832da7b2277ec011b7 Mon Sep 17 00:00:00 2001 From: Renzo Lanza Date: Wed, 15 May 2019 07:32:21 +0000 Subject: [PATCH] =?UTF-8?q?LicenceManager=202.1e5=20:=20-=20Correzione=20s?= =?UTF-8?q?ulla=20TextBox=20Note,=20che=20riaprendo=20una=20seconda=20volt?= =?UTF-8?q?a=20(e=20successive)=20la=20pagina=20NewKey=20o=20NewLicence=20?= =?UTF-8?q?scompariva,=20perch=C3=A9=20LineCount=3D0.=20Ora=20rimane=20pre?= =?UTF-8?q?sente.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KeyPage/KeyPageV.xaml.vb | 2 +- My Project/AssemblyInfo.vb | 4 ++-- NewLicencePage/NewLicencePageV.xaml.vb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/KeyPage/KeyPageV.xaml.vb b/KeyPage/KeyPageV.xaml.vb index c141734..c82a51e 100644 --- a/KeyPage/KeyPageV.xaml.vb +++ b/KeyPage/KeyPageV.xaml.vb @@ -18,7 +18,7 @@ textBoxNote.Height = originalTextBoxHeight * textBoxNote.LineCount numberOfLines = textBoxNote.LineCount End If - If (numberOfLines > textBoxNote.LineCount) Then + If (numberOfLines > textBoxNote.LineCount) And Not textBoxNote.LineCount = 0 Then textBoxNote.Height = textBoxNote.Height - (originalTextBoxHeight * (numberOfLines - textBoxNote.LineCount)) numberOfLines = textBoxNote.LineCount End If diff --git a/My Project/AssemblyInfo.vb b/My Project/AssemblyInfo.vb index 7f6d6f8..6fdc3e4 100644 --- a/My Project/AssemblyInfo.vb +++ b/My Project/AssemblyInfo.vb @@ -59,5 +59,5 @@ Imports System.Windows ' usando l'asterisco '*' come illustrato di seguito: ' - - + + diff --git a/NewLicencePage/NewLicencePageV.xaml.vb b/NewLicencePage/NewLicencePageV.xaml.vb index aa099c1..a6db1fe 100644 --- a/NewLicencePage/NewLicencePageV.xaml.vb +++ b/NewLicencePage/NewLicencePageV.xaml.vb @@ -11,7 +11,7 @@ textBoxNote.Height = originalTextBoxHeight * textBoxNote.LineCount numberOfLines = textBoxNote.LineCount End If - If (numberOfLines > textBoxNote.LineCount) Then + If (numberOfLines > textBoxNote.LineCount) And Not textBoxNote.LineCount = 0 Then textBoxNote.Height = textBoxNote.Height - (originalTextBoxHeight * (numberOfLines - textBoxNote.LineCount)) numberOfLines = textBoxNote.LineCount End If