Beispiel #1
0
        public static StatusJobDBDataSet.JobsRow GetRow()
        {
            StatusJobDBDataSetTableAdapters.JobsTableAdapter jobsTableAdapter = new StatusJobDBDataSetTableAdapters.JobsTableAdapter();
            StatusJobDBDataSet.JobsDataTable jobsRows = jobsTableAdapter.GetDataById(Id);

            return(jobsRows.Count > 0 ? jobsRows[0] : null);
        }
Beispiel #2
0
        public static void Fill(int Id)
        {
            StatusJobDBDataSetTableAdapters.JobsTableAdapter jobsTableAdapter = new StatusJobDBDataSetTableAdapters.JobsTableAdapter();
            StatusJobDBDataSet.JobsDataTable jobsRows = jobsTableAdapter.GetDataById(Id);

            if (jobsRows.Count > 0)
            {
                Id       = jobsRows[0].Id;
                Name     = jobsRows[0].Name;
                isDelete = jobsRows[0].isDelete > 0;
                TextJob  = jobsRows[0].TextJobs;
                Comments = jobsRows[0].Comments;
            }
        }