private void LoadListViewItems() { this.ClearListView(); this.listViewItems = QTemplates.GetAllItemsByGroupID(this.comboBoxSelectedItem.ID); AddItemsToListView(); SetColumnsHeaderSize(); }
private void UpdateSelectedTemplate() { LoginInfo loginInfo = LoginInfo.GetInstance(); QTemplates.UpdateItem(this.selectedTemplate, loginInfo.UserName); this.LoadListViewItems(); }
public void ListBox1_SelectedIndexChanged(int selectedIndex) { if (selectedIndex > -1 && selectedIndex < this.templateGroups.Count) { this.SelectedTemplateGroup = this.templateGroups[selectedIndex] as Item; this.templates.Clear(); this.templates = QTemplates.GetActiveItemsByGroupID(this.SelectedTemplateGroup.ID); this.LoadListBox2(); } }
private Template CreateCustomTemplate() { Template item = new Template(); int groupID = 4; string title = this.view.CustomTemplate; LoginInfo loginInfo = LoginInfo.GetInstance(); item.ID = QTemplates.InsertItem(groupID, title, loginInfo.UserName); item.Title = title; return(item); }
private void InsertNewTemplate() { LoginInfo loginInfo = LoginInfo.GetInstance(); int templateID = QTemplates.InsertItem(this.comboBoxSelectedItem.ID, this.view.TextBoxValue, loginInfo.UserName); }