00001 using System;
00002 using System.Collections.Generic;
00003 using System.ComponentModel;
00004 using System.Data;
00005 using System.Drawing;
00006 using System.Text;
00007 using System.Windows.Forms;
00008
00009 namespace Editor
00010 {
00011 public partial class NewEventDialog : Form
00012 {
00013 public NewEventDialog()
00014 {
00015 InitializeComponent();
00016 }
00017
00018 private void NewEventDialog_Load(object sender, EventArgs e)
00019 {
00020 nameTextBox.Text = name;
00021 typeTextBox.Text = type;
00022 valueTextBox.Text = value;
00023 }
00024
00025 public string name;
00026 public string type;
00027 public string value;
00028
00029 private void okButton_Click(object sender, EventArgs e)
00030 {
00031 name = nameTextBox.Text;
00032 type = typeTextBox.Text;
00033 value = valueTextBox.Text;
00034 DialogResult = DialogResult.OK;
00035 }
00036
00037 private void CancelButton_Click(object sender, EventArgs e)
00038 {
00039 DialogResult = DialogResult.Cancel;
00040 }
00041 }
00042 }