SignatureWindow.xaml の相互作用ロジック
Наследование: System.Windows.Window
Пример #1
0
        private void _uploadLinkListViewNemMenuItem_Click(object sender, RoutedEventArgs e)
        {
            var window = new SignatureWindow();

            window.Owner = this;

            if (window.ShowDialog() == true)
            {
                var signature = window.DigitalSignature.ToString();

                var item = new LinkViewModel()
                {
                    Signature = signature,
                };

                if (_uploadLinkCollection.Any(n => n.Signature == signature))
                {
                    return;
                }
                _uploadLinkCollection.Add(item);
            }
        }
        private void _uploadLinkListViewNemMenuItem_Click(object sender, RoutedEventArgs e)
        {
            SignatureWindow window = new SignatureWindow();
            window.Owner = this;

            if (window.ShowDialog() == true)
            {
                var signature = window.DigitalSignature.ToString();

                var item = new LinkViewModel()
                {
                    Signature = signature,
                };

                if (_uploadCollection.Any(n => n.Signature == signature)) return;
                _uploadCollection.Add(item);
            }
        }