Changeset 5081
- Timestamp:
- 12/10/10 18:16:25 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBAdminPlugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Controllers/AlgorithmClassController.cs
r5005 r5081 9 9 namespace HLWebPluginHost.Controllers { 10 10 public class AlgorithmClassController : Controller { 11 //container for data 12 AlgorithmClassModel viewModel; 11 13 // 12 14 // GET: /AlgorithmClass/ … … 30 32 //}; 31 33 32 v ar viewModel = new AlgorithmClassModel {34 viewModel = new AlgorithmClassModel { 33 35 NumOfClasses = 0, 34 36 AlgorithmClassList = null 35 }; 36 37 viewModel.AddAlgorithmClass("bbb", "na"); 37 }; 38 38 39 39 return View(viewModel); … … 63 63 } 64 64 65 public bool AddAlgorithmClass _Click(string name, String description) {66 var viewModel = new AlgorithmClassModel {67 NumOfClasses = 0,68 AlgorithmClassList = null69 };65 public bool AddAlgorithmClass(string name, String description) { 66 //var viewModel = new AlgorithmClassModel { 67 // NumOfClasses = 0, 68 // AlgorithmClassList = null 69 //}; 70 70 71 viewModel.AddAlgorithmClass(" aaa", "na");71 viewModel.AddAlgorithmClass("ccc", "na"); 72 72 73 73 return true; -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/AlgorithmClass/Index.aspx
r5005 r5081 1 1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 3 2 4 3 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> … … 17 16 <asp:ImageButton ID="btnAddAlgorithmClass" runat="server" 18 17 ImageUrl="~/Resources/Plus.bmp" ToolTip="Add Class" BorderColor="Black" 19 CommandArgument="Id" onclick=" btnAddAlgorithmClass_Click" />18 CommandArgument="Id" onclick="~/Controllers/AddAlgorithmClass" /> 20 19 <asp:ImageButton ID="btnDelAlgorithmClass" runat="server" 21 20 ImageUrl="~/Resources/Delete.bmp" ToolTip="Delete Class"
Note: See TracChangeset
for help on using the changeset viewer.