/// <summary> /// Initialises a new instance of the <see cref="ProfileView"/> class. /// </summary> public ProfileView(MainForm mainForm) { MainForm = mainForm; InitializeComponent(); _font = UI.GetFont(UI.System.font, 10); }
public Participants(MainForm mainForm, string forumName) { InitializeComponent(); CIX.DirectoryCollection.ForumUpdated += OnForumUpdated; CIX.DirectoryCollection.ParticipantsUpdated += OnParticipantsUpdated; _forum = CIX.DirectoryCollection.ForumByName(forumName); _mainForm = mainForm; _showMugshots = false; if (_forum == null) { CIX.DirectoryCollection.RefreshForum(forumName); } }
/// <summary> /// Initialises a new instance of the <see cref="FoldersTree"/> class. /// </summary> public FoldersTree(MainForm mainForm) { InitializeComponent(); MainForm = mainForm; _initialising = true; _searchBarTimer = new Timer { Enabled = false, Interval = 5 }; _searchBarTimer.Tick += SearchBarTimerOnTick; _smartFolderRefresh = new System.Timers.Timer(500); _smartFolderRefresh.Elapsed += SmartFolderRefresh; _smartFolderRefresh.AutoReset = false; _allViews = new Dictionary<AppView, ViewBaseView>(); _allViews[AppView.AppViewWelcome] = new WelcomeView(this); _allViews[AppView.AppViewMail] = new InboxView(this); _allViews[AppView.AppViewTopic] = new TopicView(this); _allViews[AppView.AppViewDirectory] = new DirectoryView(this); _allViews[AppView.AppViewForum] = new ForumsView(this); }
/// <summary> /// Initialises a new instance of the <see cref="LuaAPI"/> class /// </summary> /// <param name="mainForm">Main form control</param> public LuaAPI(MainForm mainForm) { _mainForm = mainForm; _userSettings = new LuaAPISettings(); }
public ScriptManager(MainForm mainForm) { _luaAPI = new LuaAPI(mainForm); _scriptObjects = new Dictionary<string, NLua.Lua>(); }