示例#1
0
文件: Main.cs 项目: qq5013/ZKSA
        string FormDialog_OnDialog(DialogEventArgs args)
        {
            string strValue = "";

            if (InvokeRequired)
            {
                return((string)this.Invoke(new DialogEventHandler(FormDialog_OnDialog), args));
            }
            else
            {
                if (args.Message[0] == "6")//盘点
                {
                    View.CheckScan frm = new View.CheckScan(int.Parse(args.Message[0]), args.dtInfo);
                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        strValue = frm.strValue;
                    }
                }
                if (args.Message[0] == "1")//盘点
                {
                    View.Dispatcher.frmInTask frm = new View.Dispatcher.frmInTask(int.Parse(args.Message[0]), args.dtInfo);
                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        strValue = frm.strValue;
                    }
                }
            }
            return(strValue);
        }
示例#2
0
文件: Main.cs 项目: haipingma/CL_WMCS
 string FormDialog_OnDialog(DialogEventArgs args)
 {
     string strValue = "";
     if (InvokeRequired)
     {
         return (string)this.Invoke(new DialogEventHandler(FormDialog_OnDialog), args);
     }
     else
     {
         if (args.Message[0] == "6")//盘点
         {
             View.CheckScan frm = new View.CheckScan(int.Parse(args.Message[0]), args.dtInfo);
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 strValue = frm.strValue;
             }
         }
     }
     return strValue;
 }