Ejemplo n.º 1
0
 /// <summary>Clears all TextBoxes.</summary>
 private void Clear()
 {
     TxtID.Clear();
     CmbCourse.SelectedIndex  = -1;
     CmbTeacher.SelectedIndex = -1;
     TxtDaily.Clear();
     TxtHomework.Clear();
     TxtProject.Clear();
     TxtQuiz.Clear();
     TxtReport.Clear();
     TxtTest.Clear();
     TxtStartTime.Text = "9:00 AM";
     TxtEndTime.Text   = "9:50 AM";
     TxtID.Focus();
     TxtError.Visibility = Visibility.Collapsed;
 }
        //////////////////////////////////////////////////////////////////////////
        private void OnLoad(object sender, EventArgs e)
        {
            this.MinimumSize = this.Size;
            if (AppMgr != null)
            {
                LoadLayout(AppMgr.Settings);
            }


            SetState();
            if (TxtProject.Enabled)
            {
                TxtProject.Focus();
            }
            else if (ListRecent.Enabled)
            {
                ListRecent.Focus();
            }
        }