public ModuleProperty(MacroList p, MacroModule mod, Keys shortcut) { _parent = p; _prevShortCut = shortcut; _module = mod==null? new MacroModule(0) : (MacroModule)mod.Clone(); // // Windows �t�H�[�� �f�U�C�i �T�|�[�g�ɕK�v�ł��B // InitializeComponent(); this._titleLabel.Text = GApp.Strings.GetString("Form.ModuleProperty._titleLabel"); this._pathLabel.Text = GApp.Strings.GetString("Form.ModuleProperty._pathLabel"); this._additionalAssemblyLabel.Text = GApp.Strings.GetString("Form.ModuleProperty._additionalAssemblyLabel"); this._shortcutLabel.Text = GApp.Strings.GetString("Form.ModuleProperty._shortcutLabel"); this._debugOption.Text = GApp.Strings.GetString("Form.ModuleProperty._debugOption"); this._okButton.Text = GApp.Strings.GetString("Common.OK"); this._cancelButton.Text = GApp.Strings.GetString("Common.Cancel"); this.Text = GApp.Strings.GetString("Form.ModuleProperty.Text"); if(mod!=null) { _title.Text = _module.Title; _path.Text = _module.Path; _additionalAssembly.Text = Concat(_module.AdditionalAssemblies); _debugOption.Checked = _module.DebugMode; _shortcut.Key = shortcut; } }
public ModuleProperty(MacroList p, MacroModule mod, Keys shortcut) { _parent = p; _prevShortCut = shortcut; _module = mod == null? new MacroModule(0) : (MacroModule)mod.Clone(); // // Windows フォーム デザイナ サポートに必要です。 // InitializeComponent(); this._titleLabel.Text = GApp.Strings.GetString("Form.ModuleProperty._titleLabel"); this._pathLabel.Text = GApp.Strings.GetString("Form.ModuleProperty._pathLabel"); this._additionalAssemblyLabel.Text = GApp.Strings.GetString("Form.ModuleProperty._additionalAssemblyLabel"); this._shortcutLabel.Text = GApp.Strings.GetString("Form.ModuleProperty._shortcutLabel"); this._debugOption.Text = GApp.Strings.GetString("Form.ModuleProperty._debugOption"); this._okButton.Text = GApp.Strings.GetString("Common.OK"); this._cancelButton.Text = GApp.Strings.GetString("Common.Cancel"); this.Text = GApp.Strings.GetString("Form.ModuleProperty.Text"); if (mod != null) { _title.Text = _module.Title; _path.Text = _module.Path; _additionalAssembly.Text = Concat(_module.AdditionalAssemblies); _debugOption.Checked = _module.DebugMode; _shortcut.Key = shortcut; } }
public CommandResult ShowMacroConfigDialog() { MacroList dlg = new MacroList(); GCUtil.ShowModalDialog(_frame, dlg); return CommandResult.Success; }