//Form_Load
    private void frmInsertKommentar_Load(object sender, System.EventArgs e)
    {
        Text = "Einfügen";

        //Verfasser voreinstellen
#if DEBUG
        txtVerfasser.Text = "FrankS";
#else
        UserRights oUserRights = new UserRights();
        txtVerfasser.Text = oUserRights.GetUser();
#endif
        //Status voreinstellen
        cBStatus.Text = "kein Status";

        //Eingabe auf Kommentartext stellen
        txtKommentartext.Select();
    }
示例#2
0
    //Form_Load
    private void frmInsertComment_Load(object sender, System.EventArgs e)
    {
        Text = "insert";

        //Preset the author
#if DEBUG
        txtWriter.Text = "Justin R. Walz";
#else
        UserRights oUserRights = new UserRights();
        txtWriter.Text = oUserRights.GetUser();
#endif
        //Status preset
        cBStatus.Text = "no Status";

        //Input to comment text
        txtCommentext.Select();
    }