Exemple #1
0
    static public ChronopicWindow View(ChronojumpMode cmode, bool volumeOn)
    {
        if (ChronopicWindowBox == null)
        {
            ChronopicWindowBox = new ChronopicWindow(null, cpd);
        }

        LogB.Information("view cp is null? " + (ChronopicWindowBox.cp == null).ToString());


        ChronopicWindowBox.volumeOn = volumeOn;

        if (cmode == ChronojumpMode.JUMPORRUN || cmode == ChronojumpMode.OTHER)
        {
            ChronopicWindowBox.notebook_main.CurrentPage = 0;
            ChronopicWindowBox.checkChronopicDisconnected();             //encoder does not need this because there's no connection

            ChronopicWindowBox.frame_supplementary.Visible =
                (cmode == ChronojumpMode.OTHER); //can have multichronopic
        }
        else                                     //cmode == ChronojumpMode.ENCODER)
        {
            ChronopicWindowBox.notebook_main.CurrentPage = 1;
        }

        ChronopicWindowBox.createCombos();
        ChronopicWindowBox.setEncoderPort(encoderPort);

        //ports info comes from gui/chronojump.cs to Create mehod
        if (!ChronopicWindowBox.connected)
        {
            ChronopicWindowBox.connectingInfoShow();
        }

        ChronopicWindowBox.chronopic_window.Show();
        ChronopicWindowBox.chronopic_window.Present();

        return(ChronopicWindowBox);
    }
Exemple #2
0
    public static ChronopicWindow View(ChronojumpMode cmode, bool volumeOn)
    {
        if (ChronopicWindowBox == null) {
            ChronopicWindowBox = new ChronopicWindow (null, cpd);
        }

        LogB.Information("view cp is null? " + (ChronopicWindowBox.cp == null).ToString());

        ChronopicWindowBox.volumeOn = volumeOn;

        if(cmode == ChronojumpMode.JUMPORRUN || cmode == ChronojumpMode.OTHER) {
            ChronopicWindowBox.notebook_main.CurrentPage = 0;
            ChronopicWindowBox.checkChronopicDisconnected(); //encoder does not need this because there's no connection

            ChronopicWindowBox.frame_supplementary.Visible =
                (cmode == ChronojumpMode.OTHER); //can have multichronopic
        }
        else	//cmode == ChronojumpMode.ENCODER)
            ChronopicWindowBox.notebook_main.CurrentPage = 1;

        ChronopicWindowBox.createCombos();
        ChronopicWindowBox.setEncoderPort(encoderPort);

        //ports info comes from gui/chronojump.cs to Create mehod
        if(! ChronopicWindowBox.connected)
            ChronopicWindowBox.connectingInfoShow();

        ChronopicWindowBox.chronopic_window.Show();
        ChronopicWindowBox.chronopic_window.Present();

        return ChronopicWindowBox;
    }