コード例 #1
0
        private QuestionDialog(Builder builder, IssueWindow _issueWindow, string _issueID) : base(builder.GetObject("QuestionDialog").Handle)
        {
            builder.Autoconnect(this);

            issueWindow = _issueWindow;
            issueID     = _issueID;

            issueWindow.Sensitive = false;
            DeleteEvent          += Window_DeleteEvent;
            sendButton.Clicked   += SendButton_Clicked;
            cancelButton.Clicked += CancelButton_Clicked;
        }
コード例 #2
0
        private AnswerDialog(Builder builder, Question _question, IssueWindow _issueWindow) : base(builder.GetObject("AnswerDialog").Handle)
        {
            builder.Autoconnect(this);

            issueWindow = _issueWindow;
            question    = _question;

            issueWindow.Sensitive = false;
            DeleteEvent          += Window_DeleteEvent;
            closeButton.Clicked  += CloseButton_Clicked;

            questionBox.Buffer.Text = question.Text;
            answerBox.Buffer.Text   = question.Answer;
        }
コード例 #3
0
 public AnswerDialog(Question question, IssueWindow issueWindow) : this(new Builder("AnswerDialog.glade"), question, issueWindow)
 {
 }
コード例 #4
0
 private void LaunchIssueWindow(string issueID, ListBoxRow row)
 {
     issueWindow = new IssueWindow(issues[issueID], this, row);
     SolverApp.GetApp().AddWindow(issueWindow);
     issueWindow.ShowAll();
 }
コード例 #5
0
 public QuestionDialog(IssueWindow issueWindow, string issueID) : this(new Builder("QuestionDialog.glade"), issueWindow, issueID)
 {
 }