Exemplo n.º 1
0
        int taskpaneView_TaskPaneToolbarButtonClicked(int ButtonIndex)
        {
            switch (ButtonIndex)
            {
            case 0:
                taskpaneHost.Write();
                if (Properties.Settings.Default.MakeSounds)
                {
                    System.Media.SystemSounds.Beep.Play();
                }
                break;

            case 1:
                RedbrickConfiguration rbc = new RedbrickConfiguration();
                rbc.ShowDialog();
                taskpaneHost.ConnectSelection();
                break;

            case 2:
                taskpaneHost.ReStart();
                break;

            case 3:
                CutlistData cd = new CutlistData();
                cd.IncrementOdometer(CutlistData.Functions.ArchivePDF);
                cd.Dispose();
                cd = null;
                ArchivePDF.csproj.ArchivePDFWrapper apw = new ArchivePDF.csproj.ArchivePDFWrapper(swApp, GeneratePathSet());
                apw.Archive();
                break;

            case 4:
                System.Diagnostics.Process.Start(Properties.Settings.Default.UsageLink);
                break;

            default:
                break;
            }
            return(1);
        }
Exemplo n.º 2
0
 int taskpaneView_TaskPaneToolbarButtonClicked(int ButtonIndex)
 {
     switch (ButtonIndex) {
     case 0:
       taskpaneHost.Write();
       if (Properties.Settings.Default.MakeSounds)
     System.Media.SystemSounds.Beep.Play();
       break;
     case 1:
       RedbrickConfiguration rbc = new RedbrickConfiguration();
       rbc.ShowDialog();
       taskpaneHost.ConnectSelection();
       break;
     case 2:
       taskpaneHost.ReStart();
       break;
     case 3:
       CutlistData cd = new CutlistData();
       cd.IncrementOdometer(CutlistData.Functions.ArchivePDF);
       cd.Dispose();
       cd = null;
       ArchivePDF.csproj.ArchivePDFWrapper apw = new ArchivePDF.csproj.ArchivePDFWrapper(swApp, GeneratePathSet());
       apw.Archive();
       break;
     case 4:
       System.Diagnostics.Process.Start(Properties.Settings.Default.UsageLink);
       break;
     default:
       break;
       }
       return 1;
 }