private void btnRenderOptions_Click(object sender, EventArgs e)
        {
            if (listIcons.SelectedIndex == -1)
            {
                return;
            }
            if (SelectedIcon == null)
            {
                return;
            }
            switch (SelectedIcon.renderer.Name)
            {
            case "Basic":
                frmRenderOptionsBasic RenderOptionsBasicForm = new frmRenderOptionsBasic(SelectedIcon);
                RenderOptionsBasicForm.ShowDialog();
                RenderOptionsBasicForm.Dispose();
                RenderOptionsBasicForm = null;
                break;

            case "Image":
                frmRenderOptionsImage RenderOptionsImageForm = new frmRenderOptionsImage(SelectedIcon);
                RenderOptionsImageForm.ShowDialog();
                RenderOptionsImageForm.Dispose();
                RenderOptionsImageForm = null;
                break;

            case "History":
                frmRenderOptionsHistory RenderOptionsHistoryForm = new frmRenderOptionsHistory(SelectedIcon);
                RenderOptionsHistoryForm.ShowDialog();
                RenderOptionsHistoryForm.Dispose();
                RenderOptionsHistoryForm = null;
                break;
            }
        }
 private void btnRenderOptions_Click(object sender, EventArgs e)
 {
     if (listIcons.SelectedIndex == -1) { return; }
     if (SelectedIcon == null) { return; }
     switch (SelectedIcon.renderer.Name)
     {
         case "Basic":
             frmRenderOptionsBasic RenderOptionsBasicForm = new frmRenderOptionsBasic(SelectedIcon);
             RenderOptionsBasicForm.ShowDialog();
             RenderOptionsBasicForm.Dispose();
             RenderOptionsBasicForm = null;
             break;
         case "Image":
             frmRenderOptionsImage RenderOptionsImageForm = new frmRenderOptionsImage(SelectedIcon);
             RenderOptionsImageForm.ShowDialog();
             RenderOptionsImageForm.Dispose();
             RenderOptionsImageForm = null;
             break;
         case "History":
             frmRenderOptionsHistory RenderOptionsHistoryForm = new frmRenderOptionsHistory(SelectedIcon);
             RenderOptionsHistoryForm.ShowDialog();
             RenderOptionsHistoryForm.Dispose();
             RenderOptionsHistoryForm = null;
             break;
     }
 }