using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Company.MyProduct.Support.Controllers;
namespace Company.MyProduct.WinForms{
public partial class MainForm : Ingenious.Mvc.Windows.Forms.Views.FormBase
{
private new MyController Controller
{
get
{
return base.Controller as MyController;
}
}
public MainForm()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//use the controller to do the work
textBox1.Text = Controller.ConvertToLower(textBox1.Text);
}
}
}
|