Example #1
0
        public Password()
        {
            Dipper main = this.Owner as Dipper;

            InitializeComponent();
            textBox1.PasswordChar = '*';
        }
Example #2
0
        private void SortingDialog_Load(object sender, EventArgs e)
        {
            main = this.Owner as Dipper;
            Course.DataSource  = JsonDataBase.Courses.Keys.ToList();
            Groupe.DataSource  = JsonDataBase.Groups.Keys.ToList();
            DayWeek.DataSource = JsonDataBase.Week.Keys.ToList();
            List <DateTime> list1 = new List <DateTime>();
            List <DateTime> list2 = new List <DateTime>();

            foreach (var item in JsonDataBase.Week["Понедельник"])
            {
                list1.Add(item.Item1);
                list2.Add(item.Item2);
            }
            Start.DataSource        = list1;
            Start.FormattingEnabled = true;
            Start.FormatString      = "HH:mm";
            End.DataSource          = list2;
            End.FormattingEnabled   = true;
            End.FormatString        = "HH:mm";
            Subject.DataSource      = JsonDataBase.PullOfSublect.ToList();
            Teacher.DataSource      = JsonDataBase.Teachers.Keys.ToList();
        }