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(); }
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(); }
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(); }
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(); }