Beispiel #1
0
        private void onRowSelected(object sender, OnRowSelectedEventArgs e)
        {
            short type = (short)(e.SelectedRow["type"]);

            switch (type)
            {
            case 1:
            {
                OnHotKey(KeyAction.Proceed);
                return;
            }

            case 2:
            {
                BusinessProcess process;

                try
                {
                    process = new QualityRegistrationProcess(MainProcess);
                }
                catch (ConnectionIsNotExistsException exp)
                {
                    ShowMessage(exp.Message);
                    return;
                }

                MainProcess.Process = process;
                return;
            }

            case 3:
            {
                BusinessProcess process;

                try
                {
                    process = new RawProductionQualityRegistrationProcess(MainProcess);
                }
                catch (ConnectionIsNotExistsException exp)
                {
                    ShowMessage(exp.Message);
                    return;
                }

                MainProcess.Process = process;
                return;
            }
            }
        }
Beispiel #2
0
        private void onRowSelected(object sender, OnRowSelectedEventArgs e)
        {
            short type = (short)(e.SelectedRow["type"]);

            switch (type)
            {
                case 1:
                    {
                        OnHotKey(KeyAction.Proceed);
                        return;
                    }
                case 2:
                    {
                        BusinessProcess process;

                        try
                        {
                            process = new QualityRegistrationProcess(MainProcess);
                        }
                        catch (ConnectionIsNotExistsException exp)
                        {
                            ShowMessage(exp.Message);
                            return;
                        }

                        MainProcess.Process = process;
                        return;
                    }
                case 3:
                    {
                        BusinessProcess process;

                        try
                        {
                            process = new RawProductionQualityRegistrationProcess(MainProcess);
                        }
                        catch (ConnectionIsNotExistsException exp)
                        {
                            ShowMessage(exp.Message);
                            return;
                        }

                        MainProcess.Process = process;
                        return;
                    }
            }
        }