Esempio n. 1
0
        private object GetDataSourceEdit_tabPostslist_tabCommentslist_tabCommentsuseful()
        {
            if (_debug)
            {
                Console.WriteLine("GetDataSourceEdit_tabPostslist_tabCommentslist_tabCommentsuseful");
            }

            return(DGUIGHFData.LoadEntityFromCurrentBindingSource <commentsuseful, DGUIGHFSampleModel>(samplemodel.CommentsUseful, vCommentsUsefulBindingSource, new string[] { "commentsuseful_id" }));
        }
Esempio n. 2
0
        private void Add_tabPosts(object item)
        {
            if (_debug)
            {
                Console.WriteLine("Add_tabPosts");
            }

            DGUIGHFData.Add <posts, DGUIGHFSampleModel>(samplemodel.Posts, item);
        }
Esempio n. 3
0
        private object GetDataSourceEdit_tabTags()
        {
            if (_debug)
            {
                Console.WriteLine("GetDataSourceEdit_tabTags");
            }

            return(DGUIGHFData.LoadEntityFromCurrentBindingSource <tags, DGUIGHFSampleModel>(samplemodel.Tags, vTagsBindingSource, new string[] { "tags_id" }));
        }
Esempio n. 4
0
        private void Remove_tabTags(object item)
        {
            if (_debug)
            {
                Console.WriteLine("Remove_tabTags");
            }

            DGUIGHFData.Remove <tags, DGUIGHFSampleModel>(samplemodel.Tags, item);
        }
Esempio n. 5
0
        private void AfterSaveAction_tabTags(object item)
        {
            if (_debug)
            {
                Console.WriteLine("AfterSaveAction_tabTags");
            }

            DGUIGHFData.SetBindingSourcePosition <tags, DGUIGHFSampleModel>(samplemodel.Tags, item, vTagsBindingSource);
        }
Esempio n. 6
0
        /// <summary>
        /// Update an item
        /// </summary>
        /// <param name="item"></param>
        private void Update_tabRooms(object item)
        {
            if (String.IsNullOrEmpty(((rooms)item).rooms_color))
            {
                ((rooms)item).rooms_color = null;
            }

            DGUIGHFData.Update <rooms, DentneDModel>(_dentnedModel.Rooms, item);
        }
Esempio n. 7
0
        private object[] GetSelectedItems_tabPostsextra_tabPoststotags()
        {
            if (_debug)
            {
                Console.WriteLine("GetSelectedItems_tabPostsextra_tabPoststotags");
            }

            return(DGUIGHFData.LoadEntitiesFromSelectedKeys <poststotags, DGUIGHFSampleModel>(samplemodel.PostsToTags, DGUIGHFDataGridViewHelper.GetSelectedKeys(dataGridView_tabPostsextra_tabPoststotags_list, new string[] { "postsidDataGridViewTextBoxColumn1", "tagsidDataGridViewTextBoxColumn" }).ToList()));
        }
Esempio n. 8
0
        private void Remove_tabPostsextra_tabPoststotags(object item)
        {
            if (_debug)
            {
                Console.WriteLine("Remove_tabPostsextra_tabPoststotags");
            }

            DGUIGHFData.Remove <poststotags, DGUIGHFSampleModel>(samplemodel.PostsToTags, item);
        }
Esempio n. 9
0
        private void Update_tabBlogs(object item)
        {
            if (_debug)
            {
                Console.WriteLine("Update_tabBlogs");
            }

            DGUIGHFData.Update <blogs, DGUIGHFSampleModel>(samplemodel.Blogs, item);
        }
Esempio n. 10
0
        private object GetDataSourceEdit_tabPostslist_tabPosts()
        {
            if (_debug)
            {
                Console.WriteLine("GetDataSourceEdit_tabPostslist_tabPosts");
            }

            return(DGUIGHFData.LoadEntityFromCurrentBindingSource <posts, DGUIGHFSampleModel>(samplemodel.Posts, vPostsBindingSource, new string[] { "posts_id" }));
        }
Esempio n. 11
0
        private object[] GetSelectedItems_tabBlogs()
        {
            if (_debug)
            {
                Console.WriteLine("GetSelectedItems_tabBlogs");
            }

            return(DGUIGHFData.LoadEntitiesFromSelectedKeys <blogs, DGUIGHFSampleModel>(samplemodel.Blogs, DGUIGHFDataGridViewHelper.GetSelectedKeys(dataGridView_list, new string[] { "blogsidDataGridViewTextBoxColumn" }).ToList()));
        }
Esempio n. 12
0
        private object[] GetSelectedItems_tabPostslist_tabCommentslist_tabCommentsuseful()
        {
            if (_debug)
            {
                Console.WriteLine("GetSelectedItems_tabPostslist_tabCommentslist_tabCommentsuseful");
            }

            return(DGUIGHFData.LoadEntitiesFromSelectedKeys <commentsuseful, DGUIGHFSampleModel>(samplemodel.CommentsUseful, DGUIGHFDataGridViewHelper.GetSelectedKeys(dataGridView_tabPostslist_tabCommentslist_tabCommentsuseful_list, new string[] { "commentsusefulidDataGridViewTextBoxColumn" }).ToList()));
        }
Esempio n. 13
0
        private void AfterSaveAction_tabPostslist_tabCommentslist_tabCommentsuseful(object item)
        {
            if (_debug)
            {
                Console.WriteLine("AfterSaveAction_tabPostslist_tabCommentslist_tabCommentsuseful");
            }

            DGUIGHFData.SetBindingSourcePosition <commentsuseful, DGUIGHFSampleModel>(samplemodel.CommentsUseful, item, vCommentsUsefulBindingSource);
        }
Esempio n. 14
0
        private void Update_tabPostsextra_tabPostsadditionals(object item)
        {
            if (_debug)
            {
                Console.WriteLine("Update_tabPostsextra_tabPostsadditionals");
            }

            DGUIGHFData.Update <postsadditionals, DGUIGHFSampleModel>(samplemodel.PostsAdditionals, item);
        }
Esempio n. 15
0
        private void Remove_tabPostslist_tabCommentslist_tabCommentsuseful(object item)
        {
            if (_debug)
            {
                Console.WriteLine("Remove_tabPostslist_tabCommentslist_tabCommentsuseful");
            }

            DGUIGHFData.Remove <commentsuseful, DGUIGHFSampleModel>(samplemodel.CommentsUseful, item);
        }
Esempio n. 16
0
        private void Update_tabPostslist_tabCommentslist_tabComments(object item)
        {
            if (_debug)
            {
                Console.WriteLine("Update_tabPostslist_tabCommentslist_tabComments");
            }

            DGUIGHFData.Update <comments, DGUIGHFSampleModel>(samplemodel.Comments, item);
        }
Esempio n. 17
0
        private void Remove_tabPostslist_tabPosts(object item)
        {
            if (_debug)
            {
                Console.WriteLine("Remove_tabPostslist_tabPosts");
            }

            DGUIGHFData.Remove <posts, DGUIGHFSampleModel>(samplemodel.Posts, item);
        }
Esempio n. 18
0
        private void AfterSaveAction_tabPostslist_tabPosts(object item)
        {
            if (_debug)
            {
                Console.WriteLine("AfterSaveAction_tabPostslist_tabPosts");
            }

            DGUIGHFData.SetBindingSourcePosition <posts, DGUIGHFSampleModel>(samplemodel.Posts, item, vPostsBindingSource);
        }
Esempio n. 19
0
        private void AfterSaveAction_tabPostsextra_tabPoststotags(object item)
        {
            if (_debug)
            {
                Console.WriteLine("AfterSaveAction_tabPostsextra_tabPoststotags");
            }

            if (!DGUIGHFData.SetBindingSourcePosition <poststotags, DGUIGHFSampleModel>(samplemodel.PostsToTags, item, vPostsBindingSource))
            {
                BindingSourceList_CurrentChanged(null, null, tabElement_tabPostsextra_tabPoststotags);
            }
        }
Esempio n. 20
0
        /// <summary>
        /// Update an item
        /// </summary>
        /// <param name="item"></param>
        private void Update_tabTreatments(object item)
        {
            //update mexpiration
            if (!String.IsNullOrEmpty(treatments_mexpirationTextBox.Text))
            {
                ((treatments)item).treatments_mexpiration = Convert.ToByte(treatments_mexpirationTextBox.Text);
            }
            else
            {
                ((treatments)item).treatments_mexpiration = null;
            }

            DGUIGHFData.Update <treatments, DentneDModel>(_dentnedModel.Treatments, item);
        }
Esempio n. 21
0
        private object GetDataSourceEdit_tabPostsextra_tabPoststotags()
        {
            if (_debug)
            {
                Console.WriteLine("GetDataSourceEdit_tabPostsextra_tabPoststotags");
            }

            object ret = DGUIGHFData.LoadEntityFromCurrentBindingSource <poststotags, DGUIGHFSampleModel>(samplemodel.PostsToTags, vPostsToTagsBindingSource, new string[] { "posts_id", "tags_id" });

            if (ret != null)
            {
                comboBox_tabPostsextra_tabPoststotags_tags.SelectedValue = ((poststotags)ret).tags_id;
            }
            return(ret);
        }
 /// <summary>
 /// Do actions after Save
 /// </summary>
 /// <param name="item"></param>
 private void AfterSaveAction_tabPatientsAttachmentsTypes(object item)
 {
     DGUIGHFData.SetBindingSourcePosition <patientsattachmentstypes, DentneDModel>(_dentnedModel.PatientsAttachmentsTypes, item, vPatientsAttachmentsTypesBindingSource);
 }
 /// <summary>
 /// Remove an item
 /// </summary>
 /// <param name="item"></param>
 private void Remove_tabPatientsAttachmentsTypes(object item)
 {
     DGUIGHFData.Remove <patientsattachmentstypes, DentneDModel>(_dentnedModel.PatientsAttachmentsTypes, item);
 }
Esempio n. 24
0
 /// <summary>
 /// Do actions after Save
 /// </summary>
 /// <param name="item"></param>
 private void AfterSaveAction_tabContactsTypes(object item)
 {
     DGUIGHFData.SetBindingSourcePosition <contactstypes, DentneDModel>(_dentnedModel.ContactsTypes, item, vContactsTypesBindingSource);
 }
 /// <summary>
 /// Load the tab DataSource
 /// </summary>
 /// <returns></returns>
 private object GetDataSourceEdit_tabPatientsAttachmentsTypes()
 {
     return(DGUIGHFData.LoadEntityFromCurrentBindingSource <patientsattachmentstypes, DentneDModel>(_dentnedModel.PatientsAttachmentsTypes, vPatientsAttachmentsTypesBindingSource, new string[] { "patientsattachmentstypes_id" }));
 }
Esempio n. 26
0
 /// <summary>
 /// Add an item
 /// </summary>
 /// <param name="item"></param>
 private void Add_tabContactsTypes(object item)
 {
     DGUIGHFData.Add <contactstypes, DentneDModel>(_dentnedModel.ContactsTypes, item);
 }
Esempio n. 27
0
 /// <summary>
 /// Remove an item
 /// </summary>
 /// <param name="item"></param>
 private void Remove_tabContactsTypes(object item)
 {
     DGUIGHFData.Remove <contactstypes, DentneDModel>(_dentnedModel.ContactsTypes, item);
 }
Esempio n. 28
0
 /// <summary>
 /// Remove an item
 /// </summary>
 /// <param name="item"></param>
 private void Remove_tabTreatmentsPrices(object item)
 {
     DGUIGHFData.Remove <treatmentsprices, DentneDModel>(_dentnedModel.TreatmentsPrices, item);
 }
Esempio n. 29
0
 /// <summary>
 /// Do actions after Save
 /// </summary>
 /// <param name="item"></param>
 private void AfterSaveAction_tabTreatmentsPrices(object item)
 {
     DGUIGHFData.SetBindingSourcePosition <treatmentsprices, DentneDModel>(_dentnedModel.TreatmentsPrices, item, vTreatmentsPricesBindingSource);
 }
Esempio n. 30
0
 /// <summary>
 /// Load the tab DataSource
 /// </summary>
 /// <returns></returns>
 private object GetDataSourceEdit_tabTreatmentsPrices()
 {
     return(DGUIGHFData.LoadEntityFromCurrentBindingSource <treatmentsprices, DentneDModel>(_dentnedModel.TreatmentsPrices, vTreatmentsPricesBindingSource, new string[] { "treatmentsprices_id" }));
 }