public DayZServerMonitorForm() { InitializeComponent(); logger = new Logger(clock, StatusWriter); monitor = new Monitor(clock, clientFactory, logger); SelectionCombo.Items.Add(new ServerSelectionItem(new LatestServerSource("Stable", ProfileParser.GetDayZFolder(), ProfileParser.GetProfileFilename(), logger))); SelectionCombo.Items.Add(new ServerSelectionItem(new LatestServerSource("Experimental", ProfileParser.GetExperimentalDayZFolder(), ProfileParser.GetProfileFilename(), logger))); SelectionCombo.DisplayMember = "DisplayName"; SelectionCombo.ValueMember = "Value"; SelectionCombo.SelectedIndex = 0; SelectionCombo.SelectedValueChanged += new EventHandler(ServerSelectionChanged); }
public void GetDayZFolderReturnsDayZFolderPath() { Assert.AreEqual( Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\DayZ", ProfileParser.GetDayZFolder()); }