private void LoadOpsTable() { var allShares = LocalStore.ShareListByName(); foreach (string shareLine in allShares) { Match m = Regex.Match(shareLine, @"(.+)\s(\d+)$"); if (m.Success) { var shareName = m.Groups[1].Value.TrimEnd(); var shareNum = Convert.ToInt32(m.Groups[2].Value); var oe = new AutoOpsEntry() { ShareName = shareName, ShareNum = shareNum, AllTabled = false, Calculated = false, Overviewed = false, RamAt = "no", TradeInfo = "no" }; opsTable.Add(oe); } } }
private void AllTableRepairForm_Load(object sender, EventArgs e) { listBoxRepairShares.DataSource = LocalStore.ShareListByName(); listBoxRepairShares.ClearSelected(); }