Beispiel #1
0
        private void pluginsList_DoubleClick_1(object sender, EventArgs e)
        {
            if (pluginsList.SelectedIndices.Count > 0)
            {
                foreach (var plugin in plugins)
                {
                    if (plugin.ToString() == pluginsList.SelectedItems[0].Text)
                    {
                        dynamic         figure = plugin.Clone();
                        FigureParametrs form   = new FigureParametrs(figure);
                        if (form.ShowDialog() == DialogResult.OK)
                        {
                            collection.collection.Add(figure);
                            FiguresList.Items.Add(figure);
                        }
                    }

                    if (pluginsList.SelectedItems[0].Text == "Archiver")
                    {
                        ArchivateDearchivate form = new ArchivateDearchivate(archiver);
                        form.Show();
                        break;
                    }
                }
            }
        }
Beispiel #2
0
 private void FiguresList_DoubleClick(object sender, EventArgs e)
 {
     if (FiguresList.SelectedIndex >= 0)
     {
         dynamic         figure = FiguresList.SelectedItem;
         FigureParametrs form   = new FigureParametrs(figure);
         form.ShowDialog();
         FiguresList.Refresh();
     }
 }