Example #1
0
        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;
            }
        }
Example #2
0
 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;
     }
 }