Beispiel #1
0
        private void TSLecturesViewRefresh()
        {
            TSLecturesListView.Clear();

            TSlecturesPanel.Show();
            TSlecturesPanel.BringToFront();

            TSLecturesListView.View          = View.Details; // TS kendi derslerini getirir
            TSLecturesListView.GridLines     = true;
            TSLecturesListView.FullRowSelect = true;


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

            var x = Sorgular.TSlecturesShow(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());

                TSLecturesListView.Items.Add(li);
            }
        }
Beispiel #2
0
        private void TSlecturesPanelBackBtn_Click(object sender, EventArgs e)
        {
            loginPanel.Show();
            loginPanel.BringToFront();

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

            TSLecturesListView.Clear();
            TSLectureAddListView.Clear();
        }