Esempio n. 1
0
 private void SetDateTime()
 {
     DateTime[] result = RainfallUtility.GetConditionData(radioButton1.Checked ? 0 : (radioButton2.Checked ? 1 : 2));
     if (result != null)
     {
         dtpStart.Value = result[0];
         dtpEnd.Value   = result[1];
     }
 }
Esempio n. 2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            SetUnEnable();
            int?start = Convert.ToInt32(nums.Value);
            int?end   = Convert.ToInt32(mune.Value);

            if (checkBox3.Checked == false)
            {
                start = null;
                end   = null;
            }

            DateTime?startT = dtpStart.Value.Date;
            DateTime?endT   = dtpEnd.Value.Date;

            if (checkBox1.Checked == false)
            {
                startT = null;
                endT   = null;
            }
            if (radioButton1.Checked)
            {
                foreach (var item in _contents)
                {
                    RainfallUtility.InsertMetaData(item, checkBox2.Checked ? txtState.Text : null, start, end, startT, endT, checkBox4.Checked, SetEnable);
                }
            }
            else if (radioButton2.Checked)
            {
                // RainfallUtility.StaticDataNew(checkBox2.Checked ? txtState.Text : null, startT, endT, SetEnable, checkBox4.Checked);
                // RainfallUtility.StaticData(checkBox2.Checked ? txtState.Text : null, startT, endT);
                RainfallUtility.BulkStaticData(startT, endT, SetEnable);
            }
            else
            {
                //RainfallUtility.StaticMaxData(checkBox2.Checked ? txtState.Text : null, startT, endT, SetEnable);
                RainfallUtility.BulkStaticMax(startT, endT, SetEnable);
            }
        }
Esempio n. 3
0
 private void SaveDateTime()
 {
     RainfallUtility.SaveConditonData(radioButton1.Checked ? 0 : (radioButton2.Checked ? 1 : 2), dtpStart.Value, dtpEnd.Value);
 }