private SD SD1 = new SD();                                                        // Buffing the form...
        private void Go_Tick(object sender, EventArgs e)
        {
            Go.Stop();
            timer1.Stop();
            this.Hide();      // Hiding this form
            SD1.ShowDialog(); // Opening the form

            /*PickVersion PV = new PickVersion();
             * PV.ShowDialog();*/
            this.Close();
        }
Beispiel #2
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (timer1.Enabled)
     {
         if (SD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             shouldBreak = true;
             timer1.Stop();
             System.IO.FileStream fs = new System.IO.FileStream(SD.FileName, System.IO.FileMode.Create);
             System.IO.BinaryWriter bw = new System.IO.BinaryWriter(fs);
             bw.Write(Module.getBytes().Length);
             bw.Write(Module.getBytes());
             bw.Write(list.Count);
             foreach (BigInteger i in list)
             {
                 bw.Write(i.getBytes().Length);
                 bw.Write(i.getBytes());
             }
             foreach (BigInteger i in border)
             {
                 bw.Write(i.getBytes().Length);
                 bw.Write(i.getBytes());
             }
             fs.Close();
         }
     }
 }
Beispiel #3
0
 private void btnBrowsePdfOutput_Click(object sender, EventArgs e)
 {
     if (SD.ShowDialog(this) == DialogResult.OK)
     {
         txtPDF.Text = SD.FileName;
     }
 }
Beispiel #4
0
 private void button2_Click(object sender, EventArgs e)
 {
     SD.ShowDialog();
     if (SD.FileName == null)
     {
         return;
     }
     ;
     PDF_Passport.Get_Passport(CurrentMolecule, SD.FileName);
     Process.Start(SD.FileName);
     Close();
 }
Beispiel #5
0
        private void tbSM_Click(object sender, EventArgs e)
        {
            List <string> sections = new List <string>();

            Util.smFile.ReadSections(sections);
            if (sections.Count > 0)
            {
                Util.Org o = new Util.Org();
                o           = Util.GetOrg();
                SD.FileName = o.Id + o.Name + o.NbStart + "-" + o.NbEnd;
                if (SD.ShowDialog() == DialogResult.OK && SD.FileName.Length > 0)
                {
                    System.IO.File.Copy(Util.smFilePath, SD.FileName);
                }
            }
        }
Beispiel #6
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            DialogResult dr = SD.ShowDialog(this);

            if (dr == DialogResult.Cancel)
            {
                return;
            }
            if (!Compare())
            {
                return;
            }
            destination.SaveFile(SD.FileName);
            CurrentFile       = SD.FileName;
            this.DialogResult = DialogResult.OK;
        }