Exemplo n.º 1
0
        public static void StoreOperation(Models.Operations op)
        {
            string journal = GetJournal();

            using (StreamWriter sw = new StreamWriter(STORE_PATH))
            {
                sw.WriteLine(journal);
                sw.WriteLine($"{ op.operation} => {op.Calculation} || {op.Key} || { op.Date}");
                sw.Close();
            }
        }
Exemplo n.º 2
0
        private void AddOperations(CompositeFactor factor, IEnumerable <Operation> items, string name)
        {
            if (!items.Any())
            {
                return;
            }

            factor.Specifications.Add($"[{name}]");
            var ops = new Operations {
                Name = name
            };

            ops.Operation = items.ToList();
            factor.Children.Add(ops);
        }