Пример #1
0
        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
 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;
 }