protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { var localiser = new Localiser(typeof(CustomContentStrings)); localiser.Form(this); FillDropDownWithValues <At>(comboBoxInjectAt, new At[] { At.Start, At.End }, r => { switch (r) { case At.Start: return(CustomContentStrings.Start); case At.End: return(CustomContentStrings.End); default: throw new NotImplementedException(); } }); FillDropDownWithValues <InjectionLocation>(comboBoxInjectOf, Enum.GetValues(typeof(InjectionLocation)).OfType <InjectionLocation>(), r => Describe.InjectionLocation(r)); _ValueChangedHelper.HookValueChanged(new Control[] { checkBoxInjectEnabled, fileNameControlInjectFile, comboBoxInjectAt, comboBoxInjectOf, textBoxInjectPathAndFile, }); _Presenter = Factory.Singleton.Resolve <IOptionsPresenter>(); _Presenter.Initialise(this); } }
/// <summary> /// See <see cref="Localiser.Form"/>. /// </summary> /// <param name="form"></param> public static void Form(Form form) { _Localiser.Form(form); }