Exemplo n.º 1
0
 private void ConsolidatedDrillBitItem_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (e.ClickCount >= 2)
     {
         var consolidatedDrill = (sender as TextBlock).DataContext as LagoVista.EaglePCB.Models.ConsolidatedDrillBit;
         var dlg = new ConsolidatedDrillBit();
         dlg.ShowForEdit(ViewModel.Project, consolidatedDrill, this);
     }
 }
Exemplo n.º 2
0
        private void AddConsolidatedDrill_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new ConsolidatedDrillBit();

            dlg.ShowForNew(ViewModel.Project, this);
            if (dlg.DialogResult.HasValue && dlg.DialogResult.Value)
            {
                ViewModel.ConsolidatedDrillBit = dlg.ConsolidatedDrill;
            }
        }