예제 #1
0
        /// <summary>
        /// Edit Params initializes the data in the customizer as well as
        /// instantiating the dialog.
        /// </summary>
        /// <param name="obj"> Is a component object containing the parameter information for the object. </param>
        /// <returns>A DialogResult object associated with the form.
        /// OK means accept changes.  Cancel means reject changes.</returns>
        DialogResult ICyParamEditHook_v1.EditParams(ICyInstEdit_v1 obj, ICyTerminalQuery_v1 termQuery,
                                                    ICyExpressMgr_v1 mgr)
        {
            ICyTabbedParamEditor editor = obj.CreateTabbedParamEditor();

            m_editControl = new CyCharacterLCDEditingControl(obj);
            editor.AddCustomPage("General", m_editControl, ExpView_ParamChanged, "General");
            editor.AddDefaultPage("Built-in", "Built-in");
            System.Windows.Forms.DialogResult result = editor.ShowDialog();
            return(result);
        }
예제 #2
0
 /// <summary>
 /// Edit Params initializes the data in the customizer as well as 
 /// instantiating the dialog.  
 /// </summary>
 /// <param name="obj"> Is a component object containing the parameter information for the object. </param>
 /// <returns>A DialogResult object associated with the form.  
 /// OK means accept changes.  Cancel means reject changes.</returns>
 DialogResult ICyParamEditHook_v1.EditParams(ICyInstEdit_v1 obj, ICyTerminalQuery_v1 termQuery, 
     ICyExpressMgr_v1 mgr)
 {
     ICyTabbedParamEditor editor = obj.CreateTabbedParamEditor();
     m_editControl = new CyCharacterLCDEditingControl(obj);
     editor.AddCustomPage("General", m_editControl, ExpView_ParamChanged, "General");
     editor.AddDefaultPage("Built-in", "Built-in");
     System.Windows.Forms.DialogResult result = editor.ShowDialog();
     return result;
 }