Exemple #1
0
        private void ST8_Click(object sender, EventArgs e)
        {
            MainForm p = this.ParentForm as MainForm;

            if (p != null)
            {
                if (p.ChildForm is CutDataManager == false)
                {
                    CutDataManager p1 = new CutDataManager();
                    p1.FilePath = Globals.AppCfg.CutFileFullName;
                    p1.RePair   = false;
                    p.PushChildForm(p1, false);
                }
            }
        }
Exemple #2
0
        private void FileManager_ConfirmClick(object sender, EventArgs e)
        {
            switch (FileStyle)
            {
            case FileStyle.Dress:    //磨刀文件
            {
            }
            break;

            case FileStyle.Log:    //日志文件
            {
            }
            break;

            default:    //划切文件
            {
                if (selectFileName.Tag == null)
                {
                    Common.ReportCmdKeyProgress(CmdKey.F0001);
                    return;
                }
                if (!string.IsNullOrWhiteSpace(selectFileName.Tag.ToString()))
                {
                    CutDataManager manager = new CutDataManager();
                    manager.FilePath = selectFileName.Tag.ToString();
                    Common.ReportCmdKeyProgress(CmdKey.F0019);
                    ParentForm.PushChildForm(manager);
                }
                else
                {
                    if (File.Exists(usedFileFullName))
                    {
                        CutDataManager manager = new CutDataManager();
                        manager.FilePath = usedFileFullName;
                        Common.ReportCmdKeyProgress(CmdKey.F0019);
                        ParentForm.PushChildForm(manager);
                    }
                    else
                    {
                        Common.ReportCmdKeyProgress(CmdKey.F0001);
                    }
                }
            }
            break;
            }
        }