SetTextview() 공개 메소드

public SetTextview ( string str ) : void
str string
리턴 void
예제 #1
0
    private void on_button_add_comment_clicked(object o, EventArgs args)
    {
        //new DialogMessage(Constants.MessageTypes.INFO, "not implemented yet");

        //see if there's any comment
        string comment = "";

        if (selected)
        {
            TreeModel model;
            TreeIter  iter1;

            if (treeview1.Selection.GetSelected(out model, out iter1))
            {
                string    str     = getRow(iter1);
                string [] statRow = str.ToString().Split(new char[] { '\t' });
                comment = statRow[8];
            }

            genericWin = GenericWindow.Show(Catalog.GetString("Add comment"),
                                            Catalog.GetString("Comment this statistic"),
                                            Constants.GenericWindowShow.TEXTVIEW);
            genericWin.SetTextview(comment);
            genericWin.Button_accept.Clicked += new EventHandler(on_comment_add_accepted);
        }
    }
예제 #2
0
파일: report.cs 프로젝트: GNOME/chronojump
    private void on_button_add_comment_clicked(object o, EventArgs args)
    {
        //new DialogMessage(Constants.MessageTypes.INFO, "not implemented yet");

        //see if there's any comment
        string comment = "";
        if(selected)
        {
            TreeModel model;
            TreeIter iter1;

            if (treeview1.Selection.GetSelected (out model, out iter1)) {
                string str=getRow(iter1);
                string [] statRow = str.ToString().Split(new char[] {'\t'});
                comment = statRow[8];
            }

            genericWin = GenericWindow.Show(Catalog.GetString("Comment this statistic"), Constants.GenericWindowShow.TEXTVIEW);
            genericWin.SetTextview(comment);
            genericWin.Button_accept.Clicked += new EventHandler(on_comment_add_accepted);
        }
    }