예제 #1
0
        public void Save(string fileName)
        {
            List <string> dList = new List <string>();

            for (int i = 0; i < Rows.Count - 1; i++)
            {
                string str = "";
                for (int j = 0; j < ColumnCount; j++)
                {
                    str += (string)Rows[i].Cells[j].Value + ",";
                }
                dList.Add(str);
            }

            File.WriteAllLines($"./data/{fileName}.zl", dList.ToArray());

            EventProcessor.Load();
        }
예제 #2
0
        public Main()
        {
            EventProcessor.GetToday();
            EventProcessor.Load();

            forms = new Form[4];

            AddTask();

            for (int i = 0; i < buttonNames.Length; i++)
            {
                GenerateButton(buttonNames[i], new Point(350, i * 50 + (i + 1) * 50));
            }

            Timer timer = new Timer()
            {
                Interval = 1000,
                Enabled  = true
            };

            timer.Tick += Timer_Tick;
        }
예제 #3
0
 protected override void OnClosed(EventArgs e)
 {
     System.IO.File.WriteAllLines($"./data/option.zl", new string[] { EventProcessor.PreTime.ToString() });
     EventProcessor.Load();
     base.OnClosed(e);
 }