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;

namespace TheNovel
{
	partial class NewFile : Form
	{
		Novel mynovel;

		public Novel GetNewNovel { get { return mynovel; } }

		public NewFile ()
		{
			InitializeComponent ();
			Langsup.ApplyNewFile ( this );
		}

		private void Cancel_Click ( object sender, EventArgs e )
		{
			mynovel = null;
			DialogResult = DialogResult.Cancel;
		}

		private void Create_Click ( object sender, EventArgs e )
		{
			mynovel = new Novel ( Title.Text, Writer.Text );
			DialogResult = DialogResult.OK;
		}
	}
}
