private void Rus_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(); }
private void blank_Load(object sender, EventArgs e) { frmmain frmm = (frmmain)this.MdiParent; if (IsSaved == true) { if (MessageBox.Show(frmm.resourceManager.GetString("MessageText"), "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { frmm.cmnuSaveAs_Click(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); } } }