Ejemplo n.º 1
0
 private void EditBreakpoint(BreakpointItem item)
 {
     if (item == null)
     {
         return;
     }
     using (var dialog = new BreakpointEditor(item.Breakpoint, _events.GetCurrentProject()))
     {
         dialog.StartPosition = FormStartPosition.CenterParent;
         if (dialog.ShowDialog(this) == DialogResult.OK)
         {
             _events.UpdatedBreakpoints();
         }
     }
 }
Ejemplo n.º 2
0
        private void AddNewBreakpoint()
        {
            var project = _events.GetCurrentProject();

            if (project == null)
            {
                return;
            }
            using (var dialog = new BreakpointEditor(project))
            {
                dialog.StartPosition = FormStartPosition.CenterParent;
                if (dialog.ShowDialog(this) == DialogResult.OK)
                {
                    _events.AddBreakpoint(dialog.Breakpoint);
                }
            }
        }