private void TsbNewClick(object sender, EventArgs e)
		{
			using (SelectNewTag frmNewTag = new SelectNewTag())
			{
				if (frmNewTag.ShowDialog()  == DialogResult.OK)
				{
					ITag nTag = TagManager.NewTag(frmNewTag.listBox1.SelectedItem.ToString());
					if (nTag.ShowConfigurator() == DialogResult.OK)
					{
						_tags.Add(nTag);
						_bsTagList.ResetBindings(false);
					}
				}
			}
		}
示例#2
0
 private void TsbNewClick(object sender, EventArgs e)
 {
     using (SelectNewTag frmNewTag = new SelectNewTag())
     {
         if (frmNewTag.ShowDialog() == DialogResult.OK)
         {
             ITag nTag = TagManager.NewTag(frmNewTag.listBox1.SelectedItem.ToString());
             if (nTag.ShowConfigurator() == DialogResult.OK)
             {
                 _tags.Add(nTag);
                 _bsTagList.ResetBindings(false);
             }
         }
     }
 }
		private void TsbNewLoteClick(object sender, EventArgs e)
		{
			using (SelectNewTag frmNewTag = new SelectNewTag())
			{
				frmNewTag.listBox1.Items.RemoveAt(2);
				if (frmNewTag.ShowDialog()  == DialogResult.OK)
				{
					ITag[] tags = TagManager.Instance.NewListTag(frmNewTag.listBox1.SelectedItem.ToString());
					
					if (tags != null)
					{
						foreach (ITag tag in tags)
						{
							_tags.Add(tag);
						}
						_bsTagList.ResetBindings(false);
					}
				}
			}
		}
示例#4
0
        private void TsbNewLoteClick(object sender, EventArgs e)
        {
            using (SelectNewTag frmNewTag = new SelectNewTag())
            {
                frmNewTag.listBox1.Items.RemoveAt(2);
                if (frmNewTag.ShowDialog() == DialogResult.OK)
                {
                    ITag[] tags = TagManager.Instance.NewListTag(frmNewTag.listBox1.SelectedItem.ToString());

                    if (tags != null)
                    {
                        foreach (ITag tag in tags)
                        {
                            _tags.Add(tag);
                        }
                        _bsTagList.ResetBindings(false);
                    }
                }
            }
        }