Exemplo n.º 1
0
        private void tbtnViewListofModificationSitewithS_PreferredSites_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;
            }

            DataTable dtSummary = null;

            PreferrenceEstimationSummaryManagerWnd smwnd = new PreferrenceEstimationSummaryManagerWnd();

            smwnd.MdiParent = this;
            smwnd.Show();
            dtSummary = smwnd.CreateSummary();
            smwnd.Close();
            smwnd.Dispose();
            smwnd = null;

            MAPResDatasetViewer dtw = new MAPResDatasetViewer();

            dtw.ShowDataTable(dtSummary, "Preferrence Estimation Summary");
        }
Exemplo n.º 2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            //Combined all results of all modification sites into single table
            if (MAPresApplication.Workspace.ProjectOpen == false)
            {
                MessageBox.Show(this, "Please open or create new project", "IMSB MAPRes", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            DataTable dtCombined = null;

            PreferrenceEstimationSummaryManagerWnd smwnd = new PreferrenceEstimationSummaryManagerWnd();

            smwnd.MdiParent = this;
            smwnd.Show();
            dtCombined = smwnd.CreateCombinedPreferrenceEstimationResultSet();
            smwnd.Close();
            smwnd.Dispose();
            smwnd = null;

            MAPResDatasetViewer dtw = new MAPResDatasetViewer();

            dtw.ShowDataTable(dtCombined, "All Modification Site's Preferrence Estimation Result");
        }