Example #1
0
 private void PrintObject1_MouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         select.ShowMenu(con.PointToScreen(new Point(e.X, e.Y)));
     }
     if (e.Button == MouseButtons.Left)
     {
         if (this.sizebk != con.Size || this.locationbk != con.Location)
         {
             select.Record();
         }
     }
 }
        private void PrintObject1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            cons.IDesign design = (cons.IDesign) this.FindForm();
            cons.IInput  input  = new cons.InputString();
            string       def    = "";

            if (design.GetSelectObjects().Count == 1)
            {
                cons.IContextable contextable = (cons.IContextable)design.GetSelectObjects()[0];
                def = contextable.Context;
            }
            if (input.Input(def, out def) == true)
            {
                foreach (cons.IPrintObject ins in design.GetSelectObjects())
                {
                    cons.IContextable contextable = (cons.IContextable)ins;
                    contextable.Context = def;
                }
                design.Record();
            }
        }