private void button1_Click(object sender, EventArgs e)
 {//station button
     if (catl_data_transfer == null)
     {
         catl_data_transfer = new NPAS_To_STK();
     }
     catl_data_transfer.set_mask_file(this.textBox1.Text);
     catl_data_transfer.Station_generation();
 }
 private void button3_Click(object sender, EventArgs e)
 {//orbit button
     if (catl_data_transfer == null)
     {
         catl_data_transfer = new NPAS_To_STK();
     }
     catl_data_transfer.set_orbit_file(this.textBox2.Text);
     catl_data_transfer.Orbit_generation();
     catl_data_transfer.Set_intervalFiles();
 }
        private void EfileBTN_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog theDialog = new FolderBrowserDialog();

            if (theDialog.ShowDialog() == DialogResult.OK)
            {
                //MessageBox.Show(theDialog.FileName.ToString());
                if (catl_data_transfer == null)
                {
                    catl_data_transfer = new NPAS_To_STK();
                }

                this.EFileTB.Text = (theDialog.SelectedPath.ToString() + "\\");
                catl_data_transfer.set_efile_directory(this.EFileTB.Text);
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            OpenFileDialog theDialog = new OpenFileDialog();

            theDialog.Title = "Open Orbit File";
            if (theDialog.ShowDialog() == DialogResult.OK)
            {
                //MessageBox.Show(theDialog.FileName.ToString());
                this.textBox2.Text = theDialog.FileName.ToString();
                this.Refresh();
                if (catl_data_transfer == null)
                {
                    catl_data_transfer = new NPAS_To_STK();
                }
                this.catl_data_transfer.set_orbit_file(this.textBox2.Text);
                catl_data_transfer.load_orbit_file();
            }
        }
        private void TLFile_PB_Click(object sender, EventArgs e)
        {
            OpenFileDialog theDialog = new OpenFileDialog();

            theDialog.Title = "Open TL File";
            //theDialog.Filter = "TXT files|*.txt";
            //theDialog.InitialDirectory = @"C:\";
            if (theDialog.ShowDialog() == DialogResult.OK)
            {
                //MessageBox.Show(theDialog.FileName.ToString());
                if (catl_data_transfer == null)
                {
                    catl_data_transfer = new NPAS_To_STK();
                }
                this.TLFile_TB.Text = theDialog.FileName.ToString();
                this.Refresh();
                catl_data_transfer.set_timeline_file(this.TLFile_TB.Text);
                catl_data_transfer.load_timeline_file();
            }
        }
        private void Get_File_Btn_Click(object sender, EventArgs e)
        {
            OpenFileDialog theDialog = new OpenFileDialog();

            theDialog.Title = "Open Mask File";
            //theDialog.Filter = "TXT files|*.txt";
            //theDialog.InitialDirectory = @"C:\";
            if (theDialog.ShowDialog() == DialogResult.OK)
            {
                //MessageBox.Show(theDialog.FileName.ToString());
                this.textBox1.Text = theDialog.FileName.ToString();
                this.Refresh();
                if (catl_data_transfer == null)
                {
                    catl_data_transfer = new NPAS_To_STK();
                }
                catl_data_transfer.set_mask_file(this.textBox1.Text);
                catl_data_transfer.load_Station_File();
            }
        }