This commit is contained in:
Alessandro Ferro 2021-08-14 11:45:49 +02:00
parent ddb4305c77
commit e8de659c5f
15 changed files with 3034 additions and 3028 deletions

BIN
.vs/MyNotepad/v16/.suo Normal file

Binary file not shown.

View File

@ -1,12 +1,7 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using Microsoft.VisualBasic;
using System.Collections;
using System.Linq;
namespace MyNotepad
@ -59,8 +54,6 @@ namespace MyNotepad
{
// Nothing happens
}
}
// Pulsante "salva con nome"
@ -135,9 +128,8 @@ namespace MyNotepad
// Mostra o nascondi barra di stato
private void checkbox_barra_di_stato_Click(object sender, EventArgs e)
{
if (barra_di_stato.Visible == true) barra_di_stato.Visible = false;
if (barra_di_stato.Visible) barra_di_stato.Visible = false;
else barra_di_stato.Visible = true;
}
private void selezionaTuttoToolStripMenuItem_Click(object sender, EventArgs e)
@ -317,15 +309,15 @@ namespace MyNotepad
public void vaiARigo(int rigo)
{
int indice = testo_notepad.GetFirstCharIndexFromLine(rigo - 1); //(gli umani contano da 1)
try
{
int indice = testo_notepad.GetFirstCharIndexFromLine(rigo - 1); //(gli umani contano da 1)
testo_notepad.Select(indice, 0);
testo_notepad.ScrollToCaret();
}
catch (ArgumentOutOfRangeException)
{
MessageBox.Show("Numero di riga maggiore del numero di righe totali");
MessageBox.Show("Numero di riga non valido");
}
}

View File

@ -77,19 +77,19 @@
<Compile Include="MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="Form2.cs">
<Compile Include="VaiAllaRigaForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
<Compile Include="VaiAllaRigaForm.Designer.cs">
<DependentUpon>VaiAllaRigaForm.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
<EmbeddedResource Include="VaiAllaRigaForm.resx">
<DependentUpon>VaiAllaRigaForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]

View File

@ -1 +1 @@
d638d27bd995b5c7438f24c07719243a6e21f0bf
c66af5722762eae07206fd460f79a3fd7b9e6c63

View File

@ -28,3 +28,13 @@ D:\Lavoro\WinForms\MyNotepad\MyNotepad\obj\Debug\MyNotepad.csproj.GenerateResour
D:\Lavoro\WinForms\MyNotepad\MyNotepad\obj\Debug\MyNotepad.csproj.CoreCompileInputs.cache
D:\Lavoro\WinForms\MyNotepad\MyNotepad\obj\Debug\MyNotepad.exe
D:\Lavoro\WinForms\MyNotepad\MyNotepad\obj\Debug\MyNotepad.pdb
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\bin\Debug\MyNotepad.exe
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\bin\Debug\MyNotepad.pdb
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\obj\Debug\MyNotepad.csproj.AssemblyReference.cache
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\obj\Debug\MyNotepad.myBloccoNote.resources
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\obj\Debug\MyNotepad.Vai_alla_riga.resources
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\obj\Debug\MyNotepad.Properties.Resources.resources
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\obj\Debug\MyNotepad.csproj.GenerateResource.cache
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\obj\Debug\MyNotepad.csproj.CoreCompileInputs.cache
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\obj\Debug\MyNotepad.exe
D:\Lavoro\WinForms\Nuova cartella\idk\MyNotepad\obj\Debug\MyNotepad.pdb

Binary file not shown.

Binary file not shown.