예제 #1
0
        private void sitesDataSetToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MAPresApplication.Workspace.ProjectOpen == false)
            {
                MessageBox.Show(this, "Please open or create new project", "IMSB MAPRes", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (cmbTargetsOfStudy.Text == "")
            {
                MessageBox.Show(this, "Select Modification Site", "IMSB MAPRes", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (MAPresApplication.Workspace.SubjectsHash.ContainsKey(cmbTargetsOfStudy.Text) == false)
            {
                MessageBox.Show(this, "Selected Modification Site is not a valid", "IMSB MAPRes", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            dsViewerWnd = new MAPResDatasetViewer();
            dsViewerWnd.ShowSiteDataSet();
        }