private void key_button_Click(object sender, EventArgs e) { if (key.IsDisposed) key = new Key(); key.Show(); }
private void Form1_Load(object sender, EventArgs e) { key = new Key(); help = new Help(); abr = new Abstract(curSEQ); dropDown.SelectedIndex = 0; // keep track of controls used for sequence viewing List<Control> seqView = new List<Control>(); seqView.Add(titleBox); seqView.Add(subTitleTop); seqView.Add(subTitleBot); seqView.Add(end3prime); seqView.Add(end5prime); seqView.Add(keyButton); seqView.Add(featureListBox); seqView.Add(pan_down); seqView.Add(pan_up); seqView.Add(zoom_in); seqView.Add(zoom_out); seqView.Add(navLabel); seqView.Add(navInput); seqView.Add(navButton); seqView.Add(posStart); seqView.Add(posEnd); seqView.Add(prv_src); seqView.Add(prv_rna); seqView.Add(abstractButton); viewer = new SeqView(seqView); viewer.Off(); // keep track of controls used for search list viewing List<Control> listView = new List<Control>(); listView.Add(searchResultsTable); view_list = new ListView(listView); view_list.Off(); }