Пример #1
0
        void it_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem it = sender as ToolStripMenuItem;
            EndpointValueItem v  = it.Tag as EndpointValueItem;

            MinValue = v.MinValue;
            MaxValue = v.MaxValue;
        }
Пример #2
0
        private void SaveCurtValueMenuItem_Click(object sender, EventArgs e)
        {
            string name = GetNameFromDialog();

            if (name == string.Empty)
            {
                name = GetOnlyName();
            }
            EndpointValueItem it = new EndpointValueItem(MinValue, MaxValue, name);

            _endpointValueItems.Add(it);
        }