Exemplo n.º 1
0
        private void brwFile_Click(object sender, EventArgs e)
        {
            if (opnFile.ShowDialog() == DialogResult.Cancel) { return; }
            FJ.Text = opnFile.FileName;

            ClassifyForm classifyForm = new ClassifyForm(FJ.Text, tempRingsID);
            classifyForm.Show();
        }
Exemplo n.º 2
0
 private void FloatForm_Load(object sender, EventArgs e)
 {
     this.Left = 1200;
     this.Top = 20;
     this.dragAndDropBox1.onFileDrop += (file,shiftDown) =>
     {
         ClassifyForm classifyForm = new ClassifyForm(file, "");
         classifyForm.Show();
     };
 }
Exemplo n.º 3
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     this.Left = Screen.PrimaryScreen.Bounds.Width - this.Width - 10;
     this.Top = 150;
     this.dragAndDropBox1.onFileDrop += (file, shiftDown) =>
     {
         if (shiftDown)
         {
             //源码检查
             ClassifyForm.saveFile(file, "", "YM");
         }
         else
         {
             //不需要传递ringsID?
             ClassifyForm classifyForm = new ClassifyForm(file, "");
             classifyForm.Show();
         }
     };
     ScreenShotForm screenShotForm = new ScreenShotForm();
     //floatForm = new FloatForm();
     //floatForm.Show();
     //this.showFloatForm = true;
     this.syncTimer.Interval = 1000;
     this.syncTimer.Start();
 }