Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
luongti
textovyEditor_LuongI2C
Commits
4577851c
Commit
4577851c
authored
4 years ago
by
luongti
Browse files
Options
Download
Email Patches
Plain Diff
Delete main
parent
68b0eb17
master
No related merge requests found
Pipeline
#1997
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main
+0
-84
main
with
0 additions
and
84 deletions
+0
-84
main
deleted
100644 → 0
+
0
-
84
View file @
68b0eb17
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace textovyEditorLuong
{
public partial class textovyEditor : Form
{
public textovyEditor()
{
InitializeComponent();
}
private void uložitToolStripMenuItem_Click(object sender, EventArgs e)
{
SaveFileDialog savefile = new SaveFileDialog();
savefile.Title = "Save file as..";
if (savefile.ShowDialog() == DialogResult.OK)
{
StreamWriter txtoutput = new StreamWriter(savefile.FileName);
txtoutput.Write(richTextBox1.Text);
txtoutput.Close();
}
}
private void uložitToolStripButton_Click(object sender, EventArgs e)
{
SaveFileDialog savefile = new SaveFileDialog();
savefile.Title = "Save file as..";
if (savefile.ShowDialog() == DialogResult.OK)
{
StreamWriter txtoutput = new StreamWriter(savefile.FileName);
txtoutput.Write(richTextBox1.Text);
txtoutput.Close();
}
}
private void fontStripButton_Click(object sender, EventArgs e)
{
if (fontDialog1.ShowDialog() == DialogResult.OK)
{
richTextBox1.Font = fontDialog1.Font;
richTextBox1.ForeColor = fontDialog1.Color;
}
}
private void nápovědaToolStripButton_Click(object sender, EventArgs e)
{
MessageBox.Show("Textový editor\nAutor: Tiep Luong\nVerze: 1.0", "O aplikaci");
}
private void oAplikaciToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("Textový editor\nAutor: Tiep Luong\nVerze: 1.0", "O aplikaci");
}
private void ukončitToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void fontToolStripMenuItem_Click_1(object sender, EventArgs e)
{
if (fontDialog1.ShowDialog() == DialogResult.OK)
{
richTextBox1.Font = fontDialog1.Font;
richTextBox1.ForeColor = fontDialog1.Color;
}
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets