Commit 4577851c authored by luongti's avatar luongti
Browse files

Delete main

parent 68b0eb17
No related merge requests found
Pipeline #1997 failed with stages
Showing with 0 additions and 84 deletions
+0 -84
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;
}
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment