示例#1
0
文件: ReqForm.cs 项目: jacean/RingsII
        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();
        }
示例#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();
     };
 }
示例#3
0
文件: ReqForm.cs 项目: jacean/RingsII
 private void ReqForm_Load(object sender, EventArgs e)
 {
     //提出人
     this.TCR.Text = ConfigInfo.UserName;
     GlobalFunc.ProjectStaff_Load(TCR);
     tempRingsID = ConfigInfo.UserID + "_" + System.Guid.NewGuid().ToString("N");
     this.dragAndDropBox1.onFileDrop += (file,shiftDown) =>
     {
         ClassifyForm classifyForm = new ClassifyForm(file, tempRingsID);
         classifyForm.ShowDialog();
     };
     panel1.Visible = (parent == null);
 }
示例#4
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();
 }