private void SetMarkCompletionDialog()
        {
            CustomDialog.AddControl(new Label()
            {
                Text = "Do you really want to mark this class as complete?"
            });

            CustomDialog.SetValues("Mark Completion?", null
                                   , "", "ok", "cancel");
        }
Beispiel #2
0
        private void SetEnrollDialog(bool enroll)
        {
            if (enroll)
            {
                CustomDialog.AddControl(new Label()
                {
                    Text = "Are you sure to enroll in this class?"
                });

                CustomDialog.SetValues("Enroll to the class?", null
                                       , "", "ok", "cancel");
            }
            else
            {
                CustomDialog.AddControl(new Label()
                {
                    Text = "Are you sure to remove enrolment from this class?"
                });

                CustomDialog.SetValues("Remove Enrolment from the class?", null
                                       , "", "ok", "cancel");
            }
        }