示例#1
0
        /// <summary>
        /// プロジェクト「選択」ボタンクリック時の動作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SerarchProject_Button_Click(object sender, EventArgs e)
        {
            using (SearchProjectsWindow _spw = new SearchProjectsWindow(_dr.year))
            {
                _spw.ShowDialog(this);
                _dr.project_ID = _spw._project_id;
//                _dr.project_ID = data_access.getProjectID(project_num);
                this.ProjectName_Textbox.Text = _spw._project_name;
                this.ProjectCode_Textbox.Text = _spw._project_code;
            }

            //    using (DataAccessClass data_access = new DataAccessClass())
            //    {
            //        int project_num = 10;
            //        // Task IDのセット
            //        this.project_ID = data_access.getProjectID(project_num);
            //    }
            //    this.ProjectCode_Textbox.Text = "1234";
            //    this.ProjectName_Textbox.Text = "テスト用プロジェクト";
        }
示例#2
0
        /// <summary>
        /// プロジェクト「選択」ボタンクリック時の動作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SerarchProject_Button_Click(object sender, EventArgs e)
        {
            using ( SearchProjectsWindow _spw = new SearchProjectsWindow( _dr.year ) )
            {
                _spw.ShowDialog(this);
                _dr.project_ID = _spw._project_id;
            //                _dr.project_ID = data_access.getProjectID(project_num);
                this.ProjectName_Textbox.Text = _spw._project_name;
                this.ProjectCode_Textbox.Text = _spw._project_code;
            }

            //    using (DataAccessClass data_access = new DataAccessClass())
            //    {
            //        int project_num = 10;
            //        // Task IDのセット
            //        this.project_ID = data_access.getProjectID(project_num);
            //    }
            //    this.ProjectCode_Textbox.Text = "1234";
            //    this.ProjectName_Textbox.Text = "テスト用プロジェクト";
        }