/*StringParser, Translator and WebResourceProvider are authored and written by Ravi Bhavnani.

Copyright (c) 2010 Ravi Bhavnani
License: Code Project Open License
http://www.codeproject.com/info/cpol10.aspx

To read full articles of these projects, please visit:
http://www.codeproject.com/script/Membership/View.aspx?mid=191
 */
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;
/*
 * This form located in this library so other libraries can locate it without the need to reference to ASMForms dll
 */
namespace AHD.SM.Forms
{
    public partial class Frm_TranslateLanguageFromTo : Form
    {
        public Frm_TranslateLanguageFromTo()
        {
            InitializeComponent();
            comboBox_from.SelectedItem = "English";
            comboBox_to.SelectedIndex = 0;
        }
        public string LanguageFrom
        { get { return comboBox_from.SelectedItem.ToString(); } }
        public string LanguageTo
        { get { return comboBox_to.SelectedItem.ToString(); } }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            Close();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            Close();
        }
    }
}
