Exemplo n.º 1
0
        private void AddModelBttn_OnClick(object sender, RoutedEventArgs e)
        {
            AddModelDialog dlg = new AddModelDialog();

            dlg.Owner = this;


            dlg.DataContext = ((Datacontexts)this.DataContext).Models;

            if (dlg.ShowDialog() == true)
            {
            }
        }
        public override void OnDropDown(DragEventArgs e)
        {
            if (ObjectSources.Count == 0)
            {
                return;
            }

            e.Effects = DragDropEffects.Copy;

            string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);

            AddModelDialog modelDialog = new AddModelDialog(ObjectSources, files);

            modelDialog.ShowDialog();

            PropertyChange(nameof(Models));
        }