Inheritance: System.Windows.Forms.Form
Example #1
0
        private void _manageCulturesMenuItem_Click(object sender, EventArgs e)
        {
            IEditContext ec = (IEditContext)Site.GetService(typeof(IEditContext));

            using (CultureManagerForm cmf = new CultureManagerForm(ec.AvailableCultures))
                if (cmf.ShowDialog(ec.DialogsOwner) == DialogResult.OK)
                {
                    ec.AvailableCultures = cmf.Cultures;
                    _propertyGrid.Refresh();
                }
        }
Example #2
0
		private void _manageCulturesMenuItem_Click(object sender, EventArgs e)
		{
			IEditContext ec = (IEditContext)Site.GetService(typeof(IEditContext));
			using (CultureManagerForm cmf = new CultureManagerForm(ec.AvailableCultures))
				if (cmf.ShowDialog(ec.DialogsOwner) == DialogResult.OK)
				{
					ec.AvailableCultures = cmf.Cultures;
					_propertyGrid.Refresh();
				}
		}