Exemplo n.º 1
0
        private void AfterClose_Click(object sender, EventArgs e)
        {
            IEntity to_cut_sheet;

            to_cut_sheet = SelectEntity("_TO_CUT_SHEET");
            Clipper_Dll.Clipper_DoOnAction_After_Cutting_end doonaction = new Clipper_DoOnAction_After_Cutting_end();
            doonaction.execute(_Context, to_cut_sheet);
        }
Exemplo n.º 2
0
        private void AfterClose_Click(object sender, EventArgs e)
        {
            AF_Clipper_Dll.Clipper_DoOnAction_After_Cutting_end doonaction = new Clipper_DoOnAction_After_Cutting_end();

            //string stage = "_CLOSED_NESTING";
            string stage = "_CUT_SHEET";

            //creation du fichier de sortie
            //recupere les path
            Clipper_Param.GetlistParam(_Context);
            IEntitySelector Entityselector = null;

            Entityselector = new EntitySelector();

            //entity type pointe sur la list d'objet du model
            Entityselector.Init(_Context, _Context.Kernel.GetEntityType(stage));
            Entityselector.MultiSelect = true;

            if (Entityselector.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                doonaction.execute(Entityselector.SelectedEntity);
            }
        }