コード例 #1
0
        private void AfterSendToWorkshop_Click(object sender, EventArgs e)
        {
            //IEntity TO_CUT_nesting;

            AF_Clipper_Dll.Clipper_DoOnAction_AfterSendToWorkshop doonaction = new Clipper_DoOnAction_AfterSendToWorkshop();
            string stage = "_TO_CUT_NESTING";

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

            nestingselector = new EntitySelector();

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


            if (nestingselector.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                foreach (IEntity nesting in nestingselector.SelectedEntity)
                {
                    doonaction.execute(nesting);
                }
            }


            // doonaction.execute(_Context, TO_CUT_nesting);
        }
コード例 #2
0
        private void retourPlacementToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //private void button8_Click(object sender, EventArgs e)

            Clipper_Dll.Clipper_DoOnAction_AfterSendToWorkshop doonaction = new Clipper_DoOnAction_AfterSendToWorkshop();
            doonaction.execute(_Context);
            //doonaction.OnAfterSendToWorkshopEvent(_Context ,"" );
        }