Example #1
0
        public override void addGraphToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SelectXYDataWindow sw = new SelectXYDataWindow();

            if (sw.ShowDialog() == DialogResult.OK)
            {
                AddGraph(sw);
            }
        }
Example #2
0
        private void bt_others_Click(object sender, EventArgs e)
        {
            //BTdat.datの検索
            if (File.Exists("feffdat/BTdat.dat") == false)
            {
                MessageBox.Show("BTdat.dat is not found");
                return;
            }
            SelectXYDataWindow sw = new SelectXYDataWindow();

            if (sw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                if (sw.Xindex == -1 || sw.Yindex == -1)
                {
                    MessageBox.Show("select x,y value");
                    return;
                }
                OtherDataGraphWindow ow = new OtherDataGraphWindow(sw);
                ow.Show();
            }
        }