Exemple #1
0
        void LoadModel()
        {
            if (phModelEditor != null && mv1.ActiveViewIndex == 2)
            {
                if (String.IsNullOrEmpty(ModelName) || String.IsNullOrEmpty(ModelName.Trim()))
                {
                    Response.Write("内容模型为空");
                    return;
                }

                SimpleEditorPanel ep = LoadControl("~/ModelUI/Panel/system/SimpleEditorPanel.ascx") as SimpleEditorPanel;
                ep.ModelName = ModelName;
                ep.PanelName = "fedit";
                phModelEditor.Controls.Clear();
                phModelEditor.Controls.Add(ep);
                ep.OnSuccess += new EventHandler(ep_OnSuccess);
            }
        }
Exemple #2
0
 public override string ToString()
 {
     //System.Windows.Forms.MessageBox.Show(string.Format("{0} ({1})", ModelName, ModelNumber));
     return(string.Format("{0} {1}", ModelName.Trim(), ModelNumber.Trim()));
 }