Пример #1
0
        private void SelectionChangedHandler(object sender, EventArgs e)
        {
            ListForm   lvf = sender as ListForm;
            InputModel iM  = new InputModel();

            iM = lvf.SelectedObject;
        }
Пример #2
0
        private void listToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!isListFormShown)
            {
                ListForm listform = new ListForm(this, StoredObjects);

                //regise custom events of List form
                listform.CloseForm += Listform_CloseForm;

                listform.Show();

                //disable btnOpenListForm
                btnOpenListForm.Enabled = false;
                isListFormShown         = true;
            }
        }
Пример #3
0
        private void btnOpenListForm_Click(object sender, EventArgs e)
        {
            if (!isListFormShown)
            {
                ListForm listform = new ListForm(this, StoredObjects);

                //regise custom events of List form
                listform.CloseForm           += Listform_CloseForm;
                listform.ClearData           += Listform_ClearData;
                listform.ListViewDoubleClick += Listform_ListViewDoubleClick;

                listform.Show();

                //disable btnOpenListForm
                btnOpenListForm.Enabled = false;
                isListFormShown         = true;
            }
        }