/// <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; } }
public ActiveMinersInfoForm(TrackingController c) { InitializeComponent(); _controller = c; }
public TestCommForm(TrackingController c) { InitializeComponent(); _controller = c; }
public RouterMapForm(TrackingController c) { InitializeComponent(); _controller = c; }