コード例 #1
0
 public Client(Socket s)
 {
     socket  = s;
     headBuf = new byte[32];
     name    = this.EndPoint.ToString();
     hisDB   = new AccessHisDB();
 }
コード例 #2
0
        private void Window_Initialized(object sender, EventArgs e)
        {
            m_userDB    = new UserDB();
            m_accessDB  = new AccessInfoDB();
            m_carDB     = new CarInfoDB();
            m_historyDB = new AccessHisDB();

            m_avrMgr = new AverageInfoManager();

            m_user = new MyPerson();
            m_car  = new CarInfo();

            toolStripCbCount.ItemsSource   = selectCountCbDatas;
            toolStripCbCount.SelectedIndex = 2;

            dtpAvgDate.SelectedDate   = DateTime.Today;
            cbChartType.ItemsSource   = chartTypeCbdatas;
            cbChartType.SelectedIndex = 0;
        }
コード例 #3
0
        private void UserForm_Load(object sender, EventArgs e)
        {
            m_userDB    = new UserDB();
            m_accessDB  = new AccessInfoDB();
            m_carDB     = new CarInfoDB();
            m_historyDB = new AccessHisDB();

            m_avrMgr = new AverageInfoManager();

            m_user = new MyPerson();
            m_car  = new CarInfo();

            toolStripCbCount.Items.AddRange(selectCountCbDatas);
            toolStripCbCount.SelectedIndex = 2;
            toolStripCbCount.DropDownStyle = ComboBoxStyle.DropDownList;

            dtpAvgDate.Format       = DateTimePickerFormat.Custom;
            dtpAvgDate.CustomFormat = "yyyy년 MM월 dd일 (ddd)";
            cbChartType.Items.AddRange(chartTypeCbdatas);
            cbChartType.SelectedIndex = 0;

            InitDataGridViews();
            UpdateComponents();
        }