예제 #1
0
        /// <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);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        /// <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);
        }
예제 #4
0
 /// <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();
 }
예제 #5
0
 public ScriptManager(MainForm mainForm)
 {
     _luaAPI = new LuaAPI(mainForm);
     _scriptObjects = new Dictionary<string, NLua.Lua>();
 }