public void CanSerializeAndDeserialize()
        {
            DateTime value = DateTime.MaxValue;
            DatetimeConverter converter = new DatetimeConverter();
            byte[] bytes = converter.Serialize(value);

            DateTime valueFromBytes = converter.Deserialize(bytes);
            
            Assert.Equal(valueFromBytes, value);
        }
Beispiel #2
0
        //private void VisibleControlFinds(bool visible)
        //{
        //    comboBoxEditTime.Visible = visible;
        //    dateEditStartDate.Visible = visible;
        //    dateEditEndDate.Visible = visible;
        //    pictureEdit1.Visible = visible;
        //    btnSearch.Visible = visible;
        //}

        //private void VisibleGridLookUpProductGroup(bool visible)
        //{
        //    gridLookUpEditProductGroups.Visible = visible;
        //}
        private void btnSearch_Click(object sender, EventArgs e)
        {
            string startDate = dateEditStartDate.Text;
            string endDate   = dateEditEndDate.Text;

            if (!string.IsNullOrEmpty(startDate) && string.IsNullOrEmpty(endDate))
            {
                LoadDataForGridViewReportByStock(DatetimeConverter.StringToShortDate(startDate), DatetimeConverter.StringToShortDate(endDate));
            }
        }