本文整理汇总了C#中IForum类的典型用法代码示例。如果您正苦于以下问题:C# IForum类的具体用法?C# IForum怎么用?C# IForum使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IForum类属于命名空间,在下文中一共展示了IForum类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Create
public static IExecutable Create(string commandInput, IForum forum)
{
var data = commandInput.Split(null);
var commandName = data[0].ToLower();
var commandClass =
Assembly.GetExecutingAssembly()
.GetTypes()
.Where(t => t.IsClass && t.Namespace == typeof(CommandFactory).Namespace)
.Where(t => t.Name.EndsWith(CommandSuffix))
.First(t => t.Name.Replace(CommandSuffix, string.Empty).ToLower().Equals(commandName));
var command = Activator.CreateInstance(commandClass, forum) as AbstractCommand;
foreach (var field in data)
{
command.Data.Add(field);
}
return command;
}
示例2: RegisterCommand
public RegisterCommand(IForum forum)
: base(forum)
{
}
示例3: LoginCommand
public LoginCommand(IForum forum)
: base(forum)
{
}
示例4: ShowQuestionsCommand
public ShowQuestionsCommand(IForum forum)
: base(forum)
{
}
示例5: MakeBestAnswerCommand
public MakeBestAnswerCommand(IForum forum)
: base(forum)
{
}
示例6: PostQuestionCommand
public PostQuestionCommand(IForum forum)
: base(forum)
{
}
示例7: AbstractCommand
protected AbstractCommand(IForum forum)
{
this.Forum = forum;
}
示例8: Init
public void Init(IForum View)
{
_view = View;
bool IsLogin = _webContext.LoggedIn;
_view.LoadCategories(_boardService.GetCategoriesWithForums());
}
示例9: WrongCommand
public WrongCommand(IForum forum)
: base(forum)
{
}
示例10: OpenQuestion
public OpenQuestion(IForum forum)
: base(forum)
{
}
示例11: LogoutCommand
public LogoutCommand(IForum forum)
: base(forum)
{
}
示例12: ExitCommand
public ExitCommand(IForum forum)
: base(forum)
{
}
示例13: ShowAllQuestions
public ShowAllQuestions(IForum forum)
: base(forum)
{
}
示例14: OpenQuestionCommand
public OpenQuestionCommand(IForum forum)
: base(forum)
{
}
示例15: LoggedUserCommand
protected LoggedUserCommand(IForum forum)
: base(forum)
{
}