コード例 #1
0
 private void LoadListViewItems()
 {
     this.ClearListView();
     this.listViewItems = QTemplates.GetAllItemsByGroupID(this.comboBoxSelectedItem.ID);
     AddItemsToListView();
     SetColumnsHeaderSize();
 }
コード例 #2
0
        private void UpdateSelectedTemplate()
        {
            LoginInfo loginInfo = LoginInfo.GetInstance();

            QTemplates.UpdateItem(this.selectedTemplate, loginInfo.UserName);
            this.LoadListViewItems();
        }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 private void InsertNewTemplate()
 {
     LoginInfo loginInfo  = LoginInfo.GetInstance();
     int       templateID = QTemplates.InsertItem(this.comboBoxSelectedItem.ID, this.view.TextBoxValue, loginInfo.UserName);
 }