Beispiel #1
0
 public Operation(Operation operation)
 {
     this.typeOfMachining          = operation.getTypeOfMachining();
     this.idOperation              = operation.getIdOperation();
     this.typeOfInstrument         = operation.getTypeOfInstrument();
     this.idOnTechnologicalProcess = operation.getIdOnTechnologicalProcess();
 }
Beispiel #2
0
        public List <ParametersOperation> getListOperationOnSurfaceRoughness(Operation operation, double surfaceRoughness)
        {
            try
            {
                int    idOperation      = operation.getIdOperation();
                string nameOperation    = operation.getTypeOfMachining();
                string typeOfInstrument = operation.getTypeOfInstrument();

                List <ParametersOperation> operations = this.operations[idOperation].getListOperationOnSurfaceRoughness(surfaceRoughness, nameOperation, typeOfInstrument);

                return(operations);
            }
            catch { return(null); }
        }
Beispiel #3
0
        private static void selectTypeOfInstrument(MainForm form)
        {
            form.TypeOfInstrument.Items.Clear();
            string[] ListInstruments = Tables.getInaccuracyOfPositioningPart().getListInstruments();
            form.TypeOfInstrument.Items.AddRange(ListInstruments);
            form.TypeOfInstrument.SelectedIndex = 0;

            try
            {
                string typeOfInstrument = operation.getTypeOfInstrument();
                int    index            = form.TypeOfInstrument.Items.IndexOf(typeOfInstrument);
                form.TypeOfInstrument.SelectedIndex = index;
            }
            catch { }
        }