Exemple #1
0
        /// <summary>
        /// Initializes all components
        /// </summary>
        public void Init()
        {
            _trackingController  = new TrackingController(this, picMinePlan);
            _messagingController = new MessagingController(this);
            _reportsController   = new ReportsController();

            // Set labels
            llblSiteInfo.Text = MineSite.GetInstance().siteName;

            llblUsername.Text = User.GetInstance().username;
            lblUserType.Text  = User.GetInstance().isAdmin ? "Administrator" : "Regular User";

            // Load routers into treeview
            LoadRoutersToTree();

            picMinePlan.Controls.Clear();
            _trackingController.AddAllRoutersToMap();

            LoadAllActiveMembers();

            // Set mapscale number incrementer
            nudMapScale.Value    = (decimal)(MineSite.GetInstance().mapScale);
            nudMapScale.Font     = new Font(nudMapScale.Font, FontStyle.Regular);
            btnSaveScale.Enabled = false;

            // Subscribe mainform to let it deal with member changes
            foreach (Member member in MineSite.GetInstance().siteMembers.Values)
            {
                member.OnInfoUpdated += LoadAllActiveMembers;
                member.OnPathUpdated += LoadRoutersToTree;
            }
        }
Exemple #2
0
        public ActiveMinersInfoForm(TrackingController c)
        {
            InitializeComponent();

            _controller = c;
        }
Exemple #3
0
        public TestCommForm(TrackingController c)
        {
            InitializeComponent();

            _controller = c;
        }
Exemple #4
0
        public RouterMapForm(TrackingController c)
        {
            InitializeComponent();

            _controller = c;
        }