private void messages_button_Click(object sender, RoutedEventArgs e)
        {
            messages newPage = new messages(parent, this);

            pageTransitionControl.TransitionType = PageTransitionType.SlideAndFade;
            pageTransitionControl.ShowPage(newPage);
        }
Example #2
0
        /// <summary>
        /// Get list of all patients
        /// </summary>
        /// <param name="_root"></param>
        /// <param name="_root2"></param>
        /// <param name="_sub"></param>
        public AddConversation(MainWindow _root, doctor_frame _root2, messages _sub)
        {
            parent    = _root;
            subparent = _sub;
            parent2   = _root2;
            InitializeComponent();
            DataTable qry = parent.query("select login_user_id, concat(lastname,' ',firstname) as name from patient");

            foreach (DataRow rw in qry.Rows)
            {
                patients.Add(rw["login_user_id"].ToString());
                patientList.Items.Add(rw["name"].ToString());
            }
        }