Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var f = Tools.FileIO.OpenFile("HSD (*.dat,*.usd,*.ssm,*.sem)|*.dat;*.usd;*.ssm;*.sem");

            if (f != null)
            {
                if (f.ToLower().EndsWith(".sem"))
                {
                    SEMEditorTool d = new SEMEditorTool();
                    {
                        d.Show();
                    }
                    d.OpenSEMFile(f);
                    d.BringToFront();
                }
                else
                if (f.ToLower().EndsWith(".ssm"))
                {
                    SSMTool d = new SSMTool();
                    {
                        d.Show();
                    }
                    d.OpenFile(f);
                    d.BringToFront();
                }
                else
                {
                    OpenFile(f);
                }
            }
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void sSMEditorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SSMTool d = new SSMTool();

            d.Show();
            d.BringToFront();
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var f = Tools.FileIO.OpenFile(FileIO.NORMAL_EXTENSIONS);

            if (f != null)
            {
                if (f.ToLower().EndsWith(".sem"))
                {
                    SEMEditorTool d = new SEMEditorTool();
                    {
                        d.Show();
                    }
                    d.OpenSEMFile(f);
                    d.BringToFront();
                }
                else
                if (f.ToLower().EndsWith(".ssm"))
                {
                    SSMTool d = new SSMTool();
                    {
                        d.Show();
                    }
                    d.OpenFile(f);
                    d.BringToFront();
                }
                else
                {
                    OpenFile(f);
                }
            }
        }