CreateTags() public method

create the room tags for the rooms which lack room tag
public CreateTags ( ) : void
return void
Ejemplo n.º 1
0
 /// <summary>
 /// create room tags for the rooms without tags
 /// </summary>
 private void addTagButton_Click(object sender, EventArgs e)
 {
     //close the form
     m_data.CreateTags();
     MessageBox.Show("Add tags to rooms successfully", "Macro Sample", MessageBoxButtons.OK, MessageBoxIcon.Information);
     this.Close();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// create room tags for the rooms which are lack of tags
        /// </summary>
        private void addTagButton_Click(object sender, EventArgs e)
        {
            m_data.CreateTags();

            roomsListView.Items.Clear();
            this.DisplayRooms(m_data.RoomsWithTag, true);
            this.DisplayRooms(m_data.RoomsWithoutTag, false);

            // if all the rooms have tags ,the button will be set to disable
            if (0 == m_data.RoomsWithoutTag.Count)
            {
                addTagsButton.Enabled = false;
            }
        }