Example #1
0
        private void RussianToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CultureDefine = RussianCulture;
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(CultureDefine, false);
            Thread.CurrentThread.CurrentCulture   = new CultureInfo(CultureDefine, false);
            frmmain frm = new frmmain(CultureDefine);

            this.Hide();
            frm.Show();
        }
Example #2
0
        private void Blank_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmmain frmm = (frmmain)this.MdiParent;

            if (IsSaved == true)
            {
                if (MessageBox.Show(frmm.resourceManager.GetString("MessageText"), "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    frmm.Save(DocName, e);
                }
            }
            //if (IsSaved == true)
            //    if (MessageBox.Show("Do you want save changes in " + this.DocName + "?", "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            //    { this.Save(this.DocName); }
        }