Example #1
0
        private void Edit_Click(object sender, EventArgs e)
        {
            // make a new category.
            var magnet = new MagnetForm(_magnets, _categories, GetSelectedMagnet());

            // load the dialog box.
            if (magnet.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            // reload everything
            ReloadMagnets();
        }
Example #2
0
        private void ListMagnets_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            // get the category.
            var category = GetSelectedMagnet();

            if (null == category)
            {
                return;
            }

            // make a new category.
            var magnetForm = new MagnetForm(_magnets, _categories, GetSelectedMagnet());

            // load the dialog box.
            if (magnetForm.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            // reload everything
            ReloadMagnets();
        }
Example #3
0
    private void ListMagnets_MouseDoubleClick(object sender, MouseEventArgs e)
    {
      // get the category.
      var category = GetSelectedMagnet();
      if (null == category)
      {
        return;
      }

      // make a new category.
      var magnetForm = new MagnetForm(_engine, _categories, GetSelectedMagnet() );

      // load the dialog box.
      if (magnetForm.ShowDialog() != DialogResult.OK)
      {
        return;
      }

      // reload everything
      ReloadMagnets();
    }
Example #4
0
    private void Edit_Click(object sender, EventArgs e)
    {
      // make a new category.
      var magnet = new MagnetForm(_engine, _categories, GetSelectedMagnet());

      // load the dialog box.
      if (magnet.ShowDialog() != DialogResult.OK)
      {
        return;
      }
      
      // reload everything
      ReloadMagnets();
    }