示例#1
0
        public void GetQuestionInfo()
        {
            this.secQuestion = client.Proxy.GetQuestion(idQuestion);
            status.Text      = (secQuestion.Response == null) ? "Open" : "Closed";
            ticketID.Text    = "Ticket #" + secQuestion.TicketID.ToString();
            date.Text        = secQuestion.Date.ToString();
            question.Text    = secQuestion.Question.ToString();

            if (secQuestion.Response == null)
            {
                response.Visible = false;
                label1.Visible   = false;
            }
            else
            {
                response.Text = secQuestion.Response.ToString();
            }
        }
示例#2
0
        public QuestionPage(int idUser, int idQuestion)
        {
            client = Client.Instance;

            InitializeComponent();

            this.user        = new User();
            this.secQuestion = new SecondaryQuestion();
            this.idUser      = idUser;
            this.idQuestion  = idQuestion;

            var materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            materialSkinManager.Theme       = MaterialSkinManager.Themes.LIGHT;
            materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE);

            GetUserInfo();
            GetQuestionInfo();
        }
示例#3
0
 public void GetQuestionInfo()
 {
     this.secQuestion = proxy.GetQuestion(this.idQuestion);
     ticketID.Text    = "Ticket #" + this.secQuestion.TicketID.ToString();
     question.Text    = this.secQuestion.Question;
 }