示例#1
0
        private void btnAddExtraDesc_Click(object sender, EventArgs e)
        {
            EditExtendedDescription dialog = new EditExtendedDescription(new ExtendedDescription());

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                lstExtraDesc.Items.Add(dialog.GetExtendedDescription());
            }
        }
示例#2
0
        private void btnAddMessage_Click(object sender, EventArgs e)
        {
            EditExtendedDescription dialog = new EditExtendedDescription(new TalkData());

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                lstMessages.Items.Add(dialog.GetTalkData());
            }
        }
示例#3
0
        private void btnEditMessage_Click(object sender, EventArgs e)
        {
            int index = lstMessages.SelectedIndex;

            if (index != -1)
            {
                TalkData desc = lstMessages.SelectedItem as TalkData;
                EditExtendedDescription dialog = new EditExtendedDescription(desc);
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    lstMessages.Items.RemoveAt(index);
                    lstMessages.Items.Insert(index, dialog.GetTalkData());
                }
            }
        }
示例#4
0
        private void btnEditExtraDescr_Click(object sender, EventArgs e)
        {
            int index = lstExtraDesc.SelectedIndex;

            if (index != -1)
            {
                ExtendedDescription     desc   = lstExtraDesc.SelectedItem as ExtendedDescription;
                EditExtendedDescription dialog = new EditExtendedDescription(desc);
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    lstExtraDesc.Items.RemoveAt(index);
                    lstExtraDesc.Items.Insert(index, dialog.GetExtendedDescription());
                }
            }
        }
示例#5
0
 private void btnEditExtraDescr_Click(object sender, EventArgs e)
 {
     int index = lstExtraDesc.SelectedIndex;
     if (index != -1)
     {
         ExtendedDescription desc = lstExtraDesc.SelectedItem as ExtendedDescription;
         EditExtendedDescription dialog = new EditExtendedDescription(desc);
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             lstExtraDesc.Items.RemoveAt(index);
             lstExtraDesc.Items.Insert(index,dialog.GetExtendedDescription());
         }
     }
 }
示例#6
0
 private void btnAddExtraDesc_Click(object sender, EventArgs e)
 {
     EditExtendedDescription dialog = new EditExtendedDescription(new ExtendedDescription());
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         lstExtraDesc.Items.Add(dialog.GetExtendedDescription());
     }
 }
示例#7
0
 private void btnAddMessage_Click(object sender, EventArgs e)
 {
     EditExtendedDescription dialog = new EditExtendedDescription(new TalkData());
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         lstMessages.Items.Add(dialog.GetTalkData());
     }
 }
示例#8
0
 private void btnEditMessage_Click(object sender, EventArgs e)
 {
     int index = lstMessages.SelectedIndex;
     if (index != -1)
     {
         TalkData desc = lstMessages.SelectedItem as TalkData;
         EditExtendedDescription dialog = new EditExtendedDescription(desc);
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             lstMessages.Items.RemoveAt(index);
             lstMessages.Items.Insert(index, dialog.GetTalkData());
         }
     }
 }