예제 #1
0
 public Operations(DateTime dateTime, Operations op1, Operations op2, Operations op3, Operations op4, UCstatus uCstatus)
 {
     this.dateTime = dateTime;
     this.Op1      = op1;
     this.Op2      = op2;
     this.Op3      = op3;
     this.Op4      = op4;
     this.count    = op1.Count + op2.Count + op3.Count + op3.Count;
     this.uCstatus = uCstatus;
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var month = (int)monBox.SelectedItem;
            var year  = (int)yearBox.SelectedItem;

            var list = uc01.Where(t => t.DateTime.Date.Month.Equals(month) && t.DateTime.Year == year).ToList();

            DrawDataPerDay(list);
            uCstatus    = UCstatus.UC_01;
            ucName.Text = uCstatus.ToString();
        }
예제 #3
0
        public Form1()
        {
            InitializeComponent();
            uc01     = new List <Operations>();
            uc02     = new List <Operations>();
            uc03     = new List <Operations>();
            uc04     = new List <Operations>();
            uc_all   = new List <Operations>();
            avg_uc01 = new List <Operations>();
            avg_uc02 = new List <Operations>();
            avg_uc03 = new List <Operations>();
            avg_uc04 = new List <Operations>();

            uCstatus = new UCstatus();

            yearBox.Items.Add(2019);
            yearBox.SelectedItem = 2019;
            monBox.DataSource    = Enum.GetValues(typeof(Months));
            chart1.ChartAreas.FindByName("ChartArea1").AxisX.Interval = 1;
            chart1.ChartAreas.FindByName("ChartArea1").AxisY.Interval = 1000;
            monBox.SelectedItem = 1;
        }
예제 #4
0
 public Operations(DateTime dateTime, double count, UCstatus uCstatus)
 {
     this.DateTime = dateTime;
     this.Count    = count;
     this.uCstatus = uCstatus;
 }