ChronopicWindow.connectingInfoShow C# (CSharp) Method

connectingInfoShow() private method

private connectingInfoShow ( ) : void
return void
    private void connectingInfoShow()
    {
        textview_ports_found_explanation.Buffer = UtilGtk.TextViewPrint(
                Catalog.GetString("If you just plugged Chronopic cable and expected port is not listed, close and open again this window.") + "\n" +
                Catalog.GetString("If you have problems connecting with Chronopic, press help button.")
                //saferPorts
                );
    }

Usage Example

Example #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);
    }