private void ListBox_List_Mark_SelectedIndexChanged(object sender, EventArgs e)
        {
            int selected = ListBox_List_Mark.SelectedIndex;

            if (selected != -1 && selected != m_OldMarkSelect)
            {
                SecondCommon <float> .for_each_listbox(m_Marks, ListBox_List_Mark, ref m_OldMarkSelect, ref selected);
            }
        }
        private void ListBox_List_Subjects_SelectedIndexChanged(object sender, EventArgs e)
        {
            int selected = ListBox_List_Subjects.SelectedIndex;

            if (selected != -1 && selected != m_OldSubjectSelect)
            {
                SecondCommon <string> .for_each_listbox(m_Subjects, ListBox_List_Subjects, ref m_OldSubjectSelect, ref selected);
            }
        }
        private void ListBox_All_Marks_SelectedIndexChanged(object sender, EventArgs e)
        {
            int selected = ListBox_All_Marks.SelectedIndex;

            if (selected != -1 && selected != m_OldMarkSelect)
            {
                SecondCommon <float> .for_each_listbox(m_Marks, ListBox_All_Marks, ref m_OldMarkSelect, ref selected);
            }
            Button_Delete_Mark.Enabled = true;
        }
Beispiel #4
0
        private void ListBox_Subjects_In_Show_Window_SelectedIndexChanged(object sender, EventArgs e)
        {
            int selected = ListBox_Subjects_In_Show_Window.SelectedIndex;

            if (selected != -1 && selected != m_OldSubjectSelect)
            {
                SecondCommon <CommonPair> .for_each_listbox(m_RecordBook, ListBox_Subjects_In_Show_Window, ref m_OldSubjectSelect, ref selected);

                if (ListBox_Marks_In_Show_Window.SelectedIndex != selected)
                {
                    ListBox_Marks_In_Show_Window.SelectedIndex = selected;
                    ListBox_Marks_In_Show_Window_SelectedIndexChanged(ListBox_Marks_In_Show_Window, e);
                }
            }
            Button_Delete_Subjects_In_Show_Window.Enabled = true;
        }