CopyPastehas never been so tasty!

C#: RTF editor

by alexdevillx

  • 0
  • 0
  • 0
332 views

//--------------------------------------------------------------\
//| Простой RTF редактор, написанный на C#. |
//| (C) Alex.Devil.LX 15/06/2011 |
//| http://www.alexdevillx.blogspot.com |
//| Email: alex.devil.lx@gmail.com |
//\-------------------------------------------------------------/




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace Csharp_TextPad
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void оПрограммеToolStripMenuItem_Click(object sender, EventArgs e)
{
AboutBox1 CallAboutBox = new AboutBox1();
CallAboutBox.Show();
}

private void скачатьИсходникToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start ("Iexplore.exe", "http://alexdevillx.blogspot.com");
}

private void новыйToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1 = null;
}

private void шрифтToolStripMenuItem_Click(object sender, EventArgs e)
{
fontDialog1.ShowDialog();
richTextBox1.Font = fontDialog1.Font;
richTextBox1.ForeColor = fontDialog1.Color;
}

private void цветФонаToolStripMenuItem_Click(object sender, EventArgs e)
{
colorDialog1.ShowDialog();
richTextBox1.BackColor = colorDialog1.Color;
}

private void вырезатьToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Cut();
}

private void копироватьToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Copy();
}

private void вставитьToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Paste();
}

private void открытьToolStripMenuItem_Click(object sender, EventArgs e)
{
openFileDialog1.ShowDialog();
richTextBox1.LoadFile(openFileDialog1.FileName);
}

private void сохранитьToolStripMenuItem_Click(object sender, EventArgs e)
{
saveFileDialog1.ShowDialog();
richTextBox1.SaveFile(saveFileDialog1.FileName);
}
}
}

Add A Comment: