예제 #1
0
        public MainViewModel()
        {
            SchoolSummaryView = new SchoolSummaryView();
            ClassView         = new ClassView();
            TeacherView       = new TeacherView();
            StudentView       = new StudentView();

            SchoolSummaryViewModel = (SchoolSummaryViewModel)SchoolSummaryView.DataContext;
            ClassViewModel         = (ClassViewModel)ClassView.DataContext;
            TeacherViewModel       = (TeacherViewModel)TeacherView.DataContext;
            StudentViewModel       = (StudentViewModel)StudentView.DataContext;

            InitializeCommands();

            SchoolSummaryViewModel.MainViewModel = this;
            ClassViewModel.MainViewModel         = this;

            var dummyData = StudentTestDataUtility.GetDummySchoolData();

            ClassBooks = new ObservableCollection <ClassBook>(dummyData.ClassBooks);
            Teachers   = new ObservableCollection <Teacher>(dummyData.Teachers);
            Students   = new ObservableCollection <Student>(dummyData.Students);

            OnSchoolSummaryView();
        }
예제 #2
0
        /// <summary>
        /// 分类页面
        /// </summary>
        /// <param name="id"></param>
        /// <param name="page"></param>
        protected void GetClass(string Name, int page)
        {
            Class cls = ClassView.Find(string.Format("ClassName=N'{0}'", Name));

            Response.Clear();
            Response.Write(CreateListPage(cls, page));
        }
예제 #3
0
        /// <summary>
        /// 书籍编辑
        /// </summary>
        /// <param name="id">ID</param>
        /// <param name="Title">标题</param>
        /// <param name="Author">作者</param>
        /// <param name="ClassID">类别ID</param>
        /// <param name="Intro">简介</param>
        /// <param name="Length">长度</param>
        protected void BookEdit(int id, string Title, string Author, int ClassID, string Intro, long Length)
        {
            Book   b         = BookView.GetModelByID(id.ToS());
            string ClassName = ClassView.GetModelByID(ClassID.ToString()).ClassName;

            b.Title     = Title.IsNull(b.Title);
            b.Author    = Author.IsNull(b.Author);
            b.ClassID   = ClassID.IsNull(b.ClassID);
            b.ClassName = ClassName.IsNull(b.ClassName);
            b.Intro     = Intro.IsNull(b.Intro);
            b.Length    = Length == 0 ? b.Length : Length;

            if (b.ID < 0)
            {
                Response.Clear();
                Response.Write(Voodoo.IO.XML.Serialize(false));
            }
            try
            {
                BookView.Update(b);
                Response.Clear();
                Response.Write(Voodoo.IO.XML.Serialize(true));
            }
            catch
            {
                Response.Clear();
                Response.Write(Voodoo.IO.XML.Serialize(false));
            }
        }
예제 #4
0
        protected void btn_createPage_Click(object sender, EventArgs e)
        {
            string[] ids = WS.RequestString("id").Split(',');
            foreach (string id in ids)
            {
                News n = NewsView.GetModelByID(id);
                CreatePage.CreateContentPage(n, NewsView.GetNewsClass(n));

                News news_pre = GetPreNews(n, NewsView.GetNewsClass(n));

                if (news_pre != null)
                {
                    CreatePage.CreateContentPage(news_pre, NewsView.GetNewsClass(n));
                }
            }

            if (cls > 0)
            {
                try
                {
                    CreatePage.CreateListPage(ClassView.GetModelByID(cls.ToS()), 1);
                }
                catch { }
            }
            CreatePage.GreateIndexPage();
            Js.Jump(url);
        }
예제 #5
0
        public AddClassPage()
        {
            InitializeComponent();
            DataContext = this;

            Classes = new List <Class> {
                new Class {
                    ClassName   = @"Qt Class",
                    DefaultName = @"QtClass",
                    Type        = @"Visual C++",
                    Description = @"Creates a C++ header and source file for a new class that you "
                                  + @"can add to a Qt Project.",
                    ImageSource = @"/QtVsTools.Wizards;component/Resources/Qt-logo-small.png",
                    Kind        = ClassKind.Core
                },
                new Class {
                    ClassName   = @"Qt Widgets Class",
                    DefaultName = @"QtWidgetsClass",
                    Type        = @"Visual C++",
                    Description = @"Creates a new empty Qt Designer form along with a matching "
                                  + @"C++ header and source file for implementation purposes. You can add "
                                  + @"the form and class to an existing Qt Project.",
                    ImageSource = @"/QtVsTools.Wizards;component/Resources/Qt-logo-small.png",
                    Kind        = ClassKind.Gui
                }
            };
            ClassView.SelectedIndex = 0;
            ClassView.ItemTemplate  = ClassView.FindResource("MediumTemplate") as DataTemplate;
            VisualCppView.Focus();
        }
        public ImplicitMessaging(TreeView devicetreeView)
        {
            InitializeComponent();

            ClassView.ImageList = devicetreeView.ImageList;

            TreeNode baseNode = devicetreeView.SelectedNode;

            while (baseNode.Parent != null)
            {
                baseNode = baseNode.Parent;
            }

            device = (EnIPRemoteDevice)baseNode.Tag;

            foreach (TreeNode t in baseNode.Nodes)
            {
                ClassView.Nodes.Add((TreeNode)t.Clone());
            }

            ClassView.ExpandAll();

            ClassView.ItemDrag += new ItemDragEventHandler(ClassView_ItemDrag);

            this.Text = "Implicit Messaging with " + baseNode.Text;

            try
            {
                IPEndPoint LocalEp = new IPEndPoint(IPAddress.Parse(Properties.Settings.Default.DefaultIPInterface), 0x8AE);
                // It's not a problem to do this with more than one remote device,
                // the underlying udp socket is static
                device.Class1Activate(LocalEp);
            }
            catch { }
        }
예제 #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string ClassName = WS.RequestString("class");
            int    Model     = WS.RequestInt("m", 4);

            if (ClassName.Length == 0)
            {
                return;
            }

            Class cls = ClassView.Find(string.Format("ClassName=N'{0}' and ModelID={1}", ClassName, Model));

            if (cls.ID <= 0)
            {
                //cls.ClassForder = PinyinHelper.GetPinyin(ClassName);
                cls.ClassForder   = ClassName;
                cls.ClassKeywords = ClassName;
                cls.ClassName     = ClassName;
                cls.ModelID       = Model;
                cls.IsLeafClass   = true;
                cls.ModelID       = Model;
                cls.ShowInNav     = true;
                ClassView.Insert(cls);
            }
            Response.Clear();
            Response.Write(Voodoo.IO.XML.Serialize(cls));
        }
예제 #8
0
        public ActionResult Index(ClassView model)
        {
            try
            {
                KelvinEntities1 db = new KelvinEntities1();


                Employee emp = new Employee();
                emp.Address      = model.Address;
                emp.EmpName      = model.EmpName;
                emp.DepartmentId = model.DepartmentId;

                db.Employees.Add(emp);
                db.SaveChanges();

                int latestEmpId = emp.EmpId;


                Site site = new Site();
                site.SName = model.SName;
                site.EmpId = latestEmpId;

                db.Sites.Add(site);
                db.SaveChanges();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(View(model));
        }
예제 #9
0
 private void OnMediumIconsChecked(object sender, RoutedEventArgs e)
 {
     SmallIcons.IsChecked = false;
     if (ClassView != null)
     {
         ClassView.ItemTemplate = ClassView.FindResource("MediumTemplate") as DataTemplate;
     }
 }
예제 #10
0
        protected void CreateClassPage()
        {
            var cls = ClassView.GetModelList();

            foreach (var c in cls)
            {
                Voodoo.Basement.CreatePage.CreateListPage(c, 1);
            }
        }
예제 #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                string chapters = "";
                if (Voodoo.Cookies.Cookies.GetCookie("history") != null)
                {
                    chapters = Voodoo.Cookies.Cookies.GetCookie("history").Value;
                }
                string[] cs = chapters.Split(',');

                List <Cook> cookie = new List <Cook>();

                string ids = "";
                foreach (string chapter in cs)
                {
                    string[] Arr_chapter = chapter.Split('|');
                    cookie.Add(new Cook()
                    {
                        id = Arr_chapter[0].ToInt64(), time = Arr_chapter[1].ToDateTime()
                    });
                    ids += Arr_chapter[0] + ",";
                }

                ids = ids.TrimEnd(',');

                List <BookChapter> list_chapter = BookChapterView.GetModelList(string.Format("id in({0})", ids));

                StringBuilder sb = new StringBuilder();
                sb.Append("document.write('");
                foreach (BookChapter bc in list_chapter)
                {
                    Book  b = BookView.GetModelByID(bc.BookID.ToString());
                    Class c = ClassView.GetModelByID(bc.ClassID.ToString());

                    BookChapter new_Chapter = BookChapterView.GetModelByID(b.LastChapterID.ToString());

                    sb.Append(string.Format("<a href=\"{0}\">{1}</a>(<a href=\"{2}\">{3}</a>) 最新:<a href=\"{4}\">{5}</a><br />",
                                            BasePage.GetBookUrl(b, c),
                                            bc.BookTitle,
                                            BasePage.GetBookChapterUrl(bc, c),
                                            bc.Title,
                                            BasePage.GetBookChapterUrl(new_Chapter, c),
                                            b.LastChapterTitle
                                            ));
                }
                sb.Append("');");

                Response.Clear();
                Response.Write(sb.ToS());
            }// end try
            catch
            {
                Voodoo.Cookies.Cookies.Remove("history");
            }
        }
예제 #12
0
        protected void btn_Save_Click(object sender, EventArgs e)
        {
            int id = WS.RequestInt("id");

            Class cls = ClassView.GetModelByID(id.ToString());

            cls.ClassName = txt_ClassName.Text;
            cls.Alter     = txt_Alter.Text;
            if (cls.Alter.IsNullOrEmpty())
            {
                cls.Alter = txt_ClassName.Text;
            }
            cls.ParentID    = lbox_ParentID.SelectedValue.ToInt32();
            cls.IsLeafClass = chk_IsLeafClass.Checked;

            cls.ParentClassForder = txt_ParentClassForder.Text;
            cls.ClassForder       = txt_ClassForder.Text;
            cls.ModelID           = ddl_ModelID.SelectedValue.ToInt32();

            cls.ClassICON        = txt_ClassICON.Text;
            cls.ClassKeywords    = txt_ClassKeywords.Text;
            cls.ClassDescription = txt_ClassDescription.Text;

            cls.ShowInNav  = chk_ShowInNav.Checked;
            cls.EnablePost = chk_EnablePost.Checked;
            cls.NavIndex   = txt_NavIndex.Text.ToInt32();

            cls.VisitRole = cbl_VisitRole.GetValues();
            //--cbl_VisitRole.SetValue(cls.VisitRole.Split(','));

            cls.PostRoles = cbl_PostRoles.GetValues();
            //--cbl_PostRoles.SetValue(cls.PostRoles.Split(','));

            cls.PostcreateList = ddl_PostcreateList.SelectedValue.ToInt32();
            cls.PostAddCent    = txt_PostAddCent.Text.ToInt32();
            cls.PostManagement = ddl_PostManagement.SelectedValue.ToInt32();

            cls.EditcreateList = ddl_EditcreateList.SelectedValue.ToInt32();
            cls.AutoAudt       = chk_AutoAudt.Checked;

            cls.EnableReply    = chk_EnableReply.Checked;
            cls.ReplyNeedAudit = chk_ReplyNeedAudit.Checked;

            cls.ModelID = ddl_ModelID.SelectedValue.ToInt32();

            if (cls.ID > 0)
            {
                ClassView.Update(cls);
            }
            else
            {
                ClassView.Insert(cls);
            }
            Voodoo.Cache.Cache.Clear("_NewClassList");
            Js.AlertAndChangUrl("保存成功!", "ClassList.aspx");
        }
예제 #13
0
        /// <summary>
        /// Class constructor
        /// </summary>
        public PanelCommits()
        {
            InitializeComponent();

            treeCommits.ImageList = ClassView.GetImageList();

            App.Refresh += CommitsRefresh;

            timer.Elapsed += MenuRefreshClick;
        }
예제 #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string Title     = WS.RequestString("title");
            string Author    = WS.RequestString("author");
            int    ClassID   = WS.RequestInt("classid");
            string ClassName = ClassView.GetModelByID(ClassID.ToString()).ClassName;
            string Intro     = WS.RequestString("intro").HtmlDeCode();
            int    Length    = WS.RequestInt("length", 0);

            Book b = new Book();

            if (Title.IsNullOrEmpty())
            {
                b.ID = int.MinValue;
                Response.Clear();
                Response.Write(Voodoo.IO.XML.Serialize(b));
                return;
            }

            b.Addtime          = DateTime.Now;
            b.Author           = Author;
            b.ClassID          = ClassID;
            b.ClassName        = ClassName;
            b.ClickCount       = 0;
            b.CorpusID         = 0;
            b.Enable           = true;
            b.FaceImage        = "";
            b.Intro            = Intro;
            b.IsFirstPost      = false;
            b.IsVip            = false;
            b.LastChapterID    = 0;
            b.LastVipChapterID = 0;
            b.Length           = Length;
            b.ReplyCount       = 0;
            b.SaveCount        = 0;
            b.Status           = 0;//连载中
            b.Title            = Title;
            b.UpdateTime       = DateTime.Now;
            b.VipUpdateTime    = DateTime.Now;
            b.ZtID             = 0;

            bool Exist = BookView.Exist(string.Format("Title=N'{0}' and Author=N'{1}'", Title, Author));

            if (Exist == false)
            {
                BookView.Insert(b);
            }
            else
            {
                b = BookView.Find(string.Format("Title=N'{0}' and Author=N'{1}'", Title, Author));
            }

            Response.Clear();
            Response.Write(Voodoo.IO.XML.Serialize(b));
        }
예제 #15
0
        public MainWindowViewModel()
        {
            //http://dotnetpattern.com/mvvm-light-messenger

            //used by TeacherViewModel..ChangeToStudentViewCommand
            gala.Messenger.Default.Register <SwitchViewMessage>(this, (switchViewMessage) =>
            {
                SwitchView(switchViewMessage.ViewName);
            });

            UserControl studentView               = new StudentView();
            UserControl membershipView            = new MembershipView();
            UserControl teacherView               = new TeacherView();
            UserControl classView                 = new ClassView();
            UserControl csSelectionView           = new CSMain();
            UserControl scheduleView              = new ScheduleView();
            UserControl studentRosterView         = new StudentRoster();
            UserControl classStudentEnrollView    = new ClassStudentEnroll();
            UserControl classPnLReportView        = new ClassPnLReport();
            UserControl studentAttendanceView     = new StudentAttendanceReport();
            UserControl semesterStudentReportView = new SemesterStudentReport();

            this.VIEWSpsaces.Add("StudentView", studentView);
            this.VIEWSpsaces.Add("MembershipView", membershipView);
            this.VIEWSpsaces.Add("TeacherView", teacherView);
            this.VIEWSpsaces.Add("ClassView", classView);
            this.VIEWSpsaces.Add("ClassManagementView", csSelectionView);
            this.VIEWSpsaces.Add("ScheduleView", scheduleView);
            this.VIEWSpsaces.Add("StudentRosterView", studentRosterView);
            this.VIEWSpsaces.Add("ChangeClassStudentEnrollView", classStudentEnrollView);
            this.VIEWSpsaces.Add("ClassPnLReportView", classPnLReportView);
            this.VIEWSpsaces.Add("StudentAttendanceView", studentAttendanceView);
            this.VIEWSpsaces.Add("SemesterStudentReportView", semesterStudentReportView);


            ViewModelBase studentViewModel = new StudentViewModel()
            {
                Text = "Student View"
            };
            ViewModelBase teacherViewModel = new TeacherViewModel()
            {
                Text = "Teacher View"
            };
            ViewModelBase classViewModel = new ClassViewModel()
            {
                Text = "Class View"
            };


            this.VMspaces.Add("StudentViewModel", studentViewModel);
            this.VMspaces.Add("TeacherViewModel", teacherViewModel);
            this.VMspaces.Add("ClassViewModel", classViewModel);
            StatusBar = "App Started at " + DateTime.Now;
        }
예제 #16
0
        /// <summary>
        /// 获取小说栏目列表
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public string getallnovelclass(string str)
        {
            List <Class>  cls = ClassView.GetModelList("ModelID=4");
            StringBuilder sb  = new StringBuilder();

            foreach (Class c in cls)
            {
                sb.Append(string.Format("<a href=\"{0}\">{1}</a> ", BasePage.GetClassUrl(c), c.ClassName));
            }
            return(sb.ToS());
        }
예제 #17
0
        /// <summary>
        /// 获取所有子栏目
        /// </summary>
        /// <param name="ClassID"></param>
        /// <returns></returns>
        protected string GetAllSubClass(int ClassID)
        {
            var           cls = ClassView.GetModelList(string.Format("ParentID={0}", ClassID));
            StringBuilder sb  = new StringBuilder();

            foreach (var c in cls)
            {
                sb.Append(c.ID + ",");
            }
            sb.Append(ClassID);
            return(sb.ToS());
        }
예제 #18
0
        private void TreeCommitsAfterLabelEdit(object sender, NodeLabelEditEventArgs e)
        {
            var commit = GetCommitForEditLabel(e);

            if (commit != null && e.Label != null && e.Label.Trim().Length > 0)
            {
                commit.DescriptionTitle = e.Label;
            }

            e.CancelEdit = true; // always cancel edit, so we can properly add files count. If edit is not canceled, editted text is automatically set to e.Node.Text
            e.Node.Text  = ClassView.GetCommitNodeText(e.Node.Tag as ClassCommit);
        }
예제 #19
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string ids = WS.RequestString("id");

            GetHelper().ExecuteNonQuery(CommandType.Text, string.Format("delete from  news where id in({0})", ids));
            if (cls > 0)
            {
                CreatePage.CreateListPage(ClassView.GetModelByID(cls.ToS()), 1);
            }
            CreatePage.GreateIndexPage();
            Js.AlertAndChangUrl("删除成功!", url);
        }
예제 #20
0
        public object CreateView(object obj, ClassView classView)
        {
            if (obj == null)
            {
                throw new ArgumentNullException("obj");
            }
            if (classView == null)
            {
                throw new ArgumentNullException("classView");
            }

            return(wrapper.WrapObject(obj, classView));
        }
예제 #21
0
        protected void btn_SetTop_Click(object sender, EventArgs e)
        {
            string ids = WS.RequestString("id");

            GetHelper().ExecuteNonQuery(CommandType.Text, string.Format("update news set SetTop=1 where id in({0})", ids));

            if (cls > 0)
            {
                CreatePage.CreateListPage(ClassView.GetModelByID(cls.ToS()), 1);
            }
            CreatePage.GreateIndexPage();
            Js.Jump(url);
        }
예제 #22
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string ids = WS.RequestString("id");

            ImageAction.DeleteImageAlbum(string.Format("id in ({0})", ids));

            if (cls > 0)
            {
                CreatePage.CreateListPage(ClassView.GetModelByID(cls.ToS()), 1);
            }
            CreatePage.GreateIndexPage();
            Js.AlertAndChangUrl("删除成功!", url);
        }
예제 #23
0
        /// <summary>
        /// 添加书籍
        /// </summary>
        /// <param name="Title">标题</param>
        /// <param name="Author">作者</param>
        /// <param name="ClassID">类别ID</param>
        /// <param name="Intro">简介</param>
        /// <param name="Length">长度</param>
        protected void BookAdd(string Title, string Author, int ClassID, string Intro, long Length)
        {
            string ClassName = ClassView.GetModelByID(ClassID.ToString()).ClassName;

            Book b = new Book();

            if (Title.IsNullOrEmpty() && BookView.Exist(string.Format("Title=N'{0}' and Author=N'{1}'", Title, Author)))
            {
                b.ID = int.MinValue;
                Response.Clear();
                Response.Write(Voodoo.IO.XML.Serialize(b));
                return;
            }

            b.Addtime          = DateTime.UtcNow.AddHours(8);
            b.Author           = Author;
            b.ClassID          = ClassID;
            b.ClassName        = ClassName;
            b.ClickCount       = 0;
            b.CorpusID         = 0;
            b.Enable           = true;
            b.FaceImage        = "";
            b.Intro            = Intro;
            b.IsFirstPost      = false;
            b.IsVip            = false;
            b.LastChapterID    = 0;
            b.LastVipChapterID = 0;
            b.Length           = Length;
            b.ReplyCount       = 0;
            b.SaveCount        = 0;
            b.Status           = 0;//连载中
            b.Title            = Title;
            b.UpdateTime       = DateTime.UtcNow.AddHours(8);
            b.VipUpdateTime    = DateTime.UtcNow.AddHours(8);
            b.ZtID             = 0;

            bool Exist = BookView.Exist(string.Format("Title=N'{0}' and Author=N'{1}'", Title, Author));

            if (Exist == false)
            {
                BookView.Insert(b);
            }
            else
            {
                b = BookView.Find(string.Format("Title=N'{0}' and Author=N'{1}'", Title, Author));
            }

            Response.Clear();
            Response.Write(Voodoo.IO.XML.Serialize(b));
        }
예제 #24
0
 /// <summary>
 /// 创建列表页面
 /// </summary>
 public void CreateClassPage()
 {
     try
     {
         var cls = ClassView.GetModelList();
         foreach (var c in cls)
         {
             Voodoo.Basement.CreatePage.CreateListPage(c, 1);
         }
     }
     catch (System.Exception e)
     {
     }
 }
예제 #25
0
        /// <summary>
        /// 判断当前用户的投稿权限
        /// </summary>
        /// <param name="ClassID"></param>
        /// <returns></returns>
        public static bool HasPostRight(int ClassID)
        {
            User  u   = opuser;
            Class cls = ClassView.GetModelByID(ClassID.ToS());

            if (u.ID.ToS().IsInArray(cls.PostRoles.Split(',')))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #26
0
        protected void DeleteAnswer(int id)
        {
            AnswerView.DelByID(id);

            Class    cls = ClassView.GetModelByID(WS.RequestString("class"));
            Question qu  = QuestionView.GetModelByID(WS.RequestString("id"));

            if (cls.ID > 0 && qu.ID > 0)
            {
                CreatePage.CreateContentPage(qu, cls);
            }
            rp_list.DataSource = AnswerView.GetModelList(string.Format("QuestionID={0} order by id", WS.RequestString("id")));
            rp_list.DataBind();
        }
예제 #27
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (WS.RequestString("action") == "del")
            {
                string ids = WS.RequestString("id");
                ClassView.Del(string.Format("id in ({0})", ids));
                Voodoo.Cache.Cache.SetCache("_NewClassList", null);
            }

            if (!IsPostBack)
            {
                LoadList();
            }
        }
예제 #28
0
 /// <summary>
 /// 创建列表页面
 /// </summary>
 protected void CreateClassPage(int cls)
 {
     try
     {
         var c = ClassView.GetModelByID(cls.ToS());
         Voodoo.Basement.CreatePage.CreateListPage(c, 1);
         Response.Clear();
         Response.Write(XML.Serialize(true));
     }
     catch (System.Exception e)
     {
         Response.Clear();
         Response.Write(XML.Serialize(false));
     }
 }
예제 #29
0
        /// <summary>
        /// 根据条件获取分类列表
        /// </summary>
        /// <param name="m_where">条件语句</param>
        /// <returns></returns>
        public static string getclassbyfilter(string m_where)
        {
            List <Class>  cls = ClassView.GetModelList(m_where);
            StringBuilder sb  = new StringBuilder();

            foreach (Class c in cls)
            {
                sb.AppendLine(string.Format("<a href=\"{0}\">{1}</a> ",
                                            BasePage.GetClassUrl(c),
                                            c.ClassName
                                            ));
            }

            return(sb.ToString());
        }
예제 #30
0
        /// <summary>
        /// 根据条件获取分类列表
        /// </summary>
        /// <param name="m_where">条件语句</param>
        /// <param name="Model">字符拼接模板</param>
        /// <returns></returns>
        public static string Getclassbyfilter(string m_where, string Model)
        {
            List <Class>  cls = ClassView.GetModelList(m_where);
            StringBuilder sb  = new StringBuilder();

            foreach (Class c in cls)
            {
                string str = Model.Replace("{classname}", c.ClassName);
                str = str.Replace("{id}", c.ID.ToS());
                str = str.Replace("{url}", BasePage.GetClassUrl(c));
                sb.Append(str);
            }

            return(sb.ToString());
        }
예제 #31
0
 public PropertyView(ClassView classView)
 {
     this.classView = classView;
     classView.PropertyViews.Add(this);
 }