Пример #1
0
        /////////////////////////////////////////////////////////

        /// <summary>Click event handler of the Zeptair Dist. Add button.</summary>
        /// <param name="sender">Sender Object.</param>
        /// <param name="e">Event parameters.</param>
        private void btnZeptDistAdd_Click(object sender, RoutedEventArgs e)
        {
            WndTarget wndTarget = new WndTarget(true);

            wndTarget.Owner = this;
            wndTarget.ShowDialog();
        }
Пример #2
0
        /// <summary>Click event handler of the Zeptair Dist. Edit button.</summary>
        /// <param name="sender">Sender Object.</param>
        /// <param name="e">Event parameters.</param>
        private void btnZeptDistEdit_Click(object sender, RoutedEventArgs e)
        {
            int selIdx = lstZeptDists.SelectedIndex;

            if (selIdx < 0)
            {
                return;
            }

            WndTarget wndTarget = new WndTarget((RssTargetInfo)_zeptDistTargets[selIdx]);

            wndTarget.Owner = this;
            wndTarget.ShowDialog();
        }