예제 #1
0
        private void bTool_Click(object sender, EventArgs e)
        {
            if (!_techProcess.Material.CheckNotNull("Материал"))
            {
                return;
            }

            if (ToolService.SelectTool(_techProcess.MachineType.Value) is Tool tool)
            {
                _techProcess.Tool      = tool;
                tbTool.Text            = tool.ToString();
                _techProcess.Frequency = ToolService.CalcFrequency(tool, _techProcess.MachineType.Value, _techProcess.Material.Value);

                sectionProfileTechProcessBindingSource.ResetBindings(false);
            }
        }