public EditRenderProfile(RenderProfile prof) { // // Windows フォーム デザイナ サポートに必要です。 // InitializeComponent(); _imageStyleBox.Items.AddRange(EnumListItem <ImageStyle> .GetListItems()); this._bgColorLabel.Text = ConnectProfilePlugin.Strings.GetString("Form.EditRenderProfile._bgColorLabel"); this._textColorLabel.Text = ConnectProfilePlugin.Strings.GetString("Form.EditRenderProfile._textColorLabel"); this._fontSelectButton.Text = ConnectProfilePlugin.Strings.GetString("Form.EditRenderProfile._fontSelectButton"); this._fontLabel.Text = ConnectProfilePlugin.Strings.GetString("Form.EditRenderProfile._fontLabel"); this._backgroundImageLabel.Text = ConnectProfilePlugin.Strings.GetString("Form.EditRenderProfile._backgroungImageLabel"); this._imageStyleLabel.Text = ConnectProfilePlugin.Strings.GetString("Form.EditRenderProfile._imageStyleLabel"); this._cancelButton.Text = ConnectProfilePlugin.Strings.GetString("Common.Cancel"); this._okButton.Text = ConnectProfilePlugin.Strings.GetString("Common.OK"); this._setToDefaultButton.Text = ConnectProfilePlugin.Strings.GetString("Form.EditRenderProfile._setToDefaultButton"); this._fontSample.Text = ConnectProfilePlugin.Strings.GetString("Common.FontSample"); this._editColorEscapeSequence.Text = ConnectProfilePlugin.Strings.GetString("Form.EditRenderProfile._editEscapeSequenceColorBox"); this.Text = ConnectProfilePlugin.Strings.GetString("Form.EditRenderProfile.Text"); _profile = prof == null?ConnectProfilePlugin.Instance.TerminalEmulatorService.TerminalEmulatorOptions.CreateRenderProfile() : (RenderProfile)prof.Clone(); InitUI(); }
public EditRenderProfile(RenderProfile prof) { // // Windows フォーム デザイナ サポートに必要です。 // InitializeComponent(); StringResource sr = TerminalUIPlugin.Instance.Strings; _imageStyleBox.Items.AddRange(EnumDescAttribute.For(typeof(ImageStyle)).DescriptionCollection()); this._bgColorLabel.Text = sr.GetString("Form.EditRenderProfile._bgColorLabel"); this._textColorLabel.Text = sr.GetString("Form.EditRenderProfile._textColorLabel"); this._fontSelectButton.Text = sr.GetString("Form.EditRenderProfile._fontSelectButton"); this._fontLabel.Text = sr.GetString("Form.EditRenderProfile._fontLabel"); this._backgroundImageLabel.Text = sr.GetString("Form.EditRenderProfile._backgroungImageLabel"); this._imageStyleLabel.Text = sr.GetString("Form.EditRenderProfile._imageStyleLabel"); this._cancelButton.Text = sr.GetString("Common.Cancel"); this._okButton.Text = sr.GetString("Common.OK"); this._setToDefaultButton.Text = sr.GetString("Form.EditRenderProfile._setToDefaultButton"); this._fontSample.Text = sr.GetString("Common.FontSample"); this._editColorEscapeSequence.Text = sr.GetString("Form.EditRenderProfile._editEscapeSequenceColorBox"); this.Text = sr.GetString("Form.EditRenderProfile.Text"); _profile = prof == null?TerminalUIPlugin.Instance.TerminalEmulatorPlugin.TerminalEmulatorOptions.CreateRenderProfile() : (RenderProfile)prof.Clone(); InitUI(); }