Exemplo n.º 1
0
        private void TSlecturesPanelBackBtn_Click(object sender, EventArgs e)
        {
            loginPanel.Show();
            loginPanel.BringToFront();

            IDtxtbox.Text  = "";
            PSWtxtbox.Text = "";

            TSLecturesListView.Clear();
            TSLectureAddListView.Clear();
        }
Exemplo n.º 2
0
        private void TSLectureAddListViewRefresh()
        {
            TSLectureAddListView.Clear();               //giriş yapan TS nin tc_NO su alınarak bölümünün derslerinden hiç bir hocanın vermediği dersleri görür

            TSLectureAddListView.View          = View.Details;
            TSLectureAddListView.GridLines     = true;
            TSLectureAddListView.FullRowSelect = true;

            TSLectureAddListView.Columns.Add("Ders id", 100);
            TSLectureAddListView.Columns.Add("Ders Ad", 100);
            TSLectureAddListView.Columns.Add("Ders Kredisi", 70);

            var x = Sorgular.TSlectures(Convert.ToInt32(IDtxtbox.Text));

            foreach (@class lectures in x)
            {
                ListViewItem li = new ListViewItem(lectures.cls_id.ToString());
                li.SubItems.Add(lectures.cls_name);
                li.SubItems.Add(lectures.credits.ToString());

                TSLectureAddListView.Items.Add(li);
            }
        }