コード例 #1
0
        /// <summary>
        ///constructor
        /// </summary>
        /// <param name="form">El formulario de lista a editar</param>
        /// <param name="serviceDocument">El documento de servicio que contiene los formularios y las relaciones</param>
        public WindowListForm(ListFormWpf form, ServiceDocumentWpf serviceDocument)
        {
            InitializeComponent();
            listBoxFields.SelectedIndex = 0;

            this.Loaded               += new RoutedEventHandler(WindowListForm_Loaded);
            canvasDraw.ClipToBounds    = true;
            this.canvasDraw.MouseMove += new MouseEventHandler(canvasDraw_MouseMove);

            radioRegister.Checked += new RoutedEventHandler(radioRegister_Checked);
            radioList.Checked     += new RoutedEventHandler(radioList_Checked);

            this.listformWPF         = form;
            this.previousDataContext = this.listformWPF.OutputDataContext;
            templateListFormDocument = listformWPF.TemplateListFormDocument as TemplateListFormDocumentWpf;

            tempComponents = new List <LogicalLibrary.Component>();
            foreach (TemplateListItemWpf component in this.listformWPF.TemplateListFormDocument.Components)
            {
                tempComponents.Add(component.Clone());
            }

            this.templateListFormDocument.CanvasDraw = this.canvasDraw;
            this.serviceDocument = serviceDocument;
        }
 /// <summary>
 /// Contructor
 /// </summary>
 /// <param name="form">El formulario de entrada de datos a modificar</param>
 /// <param name="document">Documento del servicio actual</param>
 public WindowEnterSingleDataForm(Form form, ServiceDocumentWpf document)
 {
     InitializeComponent();
     this.form            = form as EnterSingleDataFormWpf;
     this.DataContext     = form;
     this.serviceDocument = document;
 }
コード例 #3
0
        public ServiceStatistics(ServiceEntity serviceEntity, String session)
        {
            InitializeComponent();
            document = new ServiceDocumentWpf(this, session);
            document.ServiceEntity = serviceEntity;
            this.DataContext       = document.ServiceEntity;

            this.Loaded += new RoutedEventHandler(ServiceStatistics_Loaded);
        }
コード例 #4
0
        public WindowMenuForm(MenuForm form, ServiceDocumentWpf document)
        {
            InitializeComponent();
            this.document    = document;
            this.menuFormWPF = form as MenuFormWpf;

            this.menuItemsDeleted = new List <FormMenuItemWpf>();

            this.DataContext = menuFormWPF;
            this.listOptionMenuForm.SelectionMode     = SelectionMode.Single;
            this.listOptionMenuForm.SelectionChanged += new SelectionChangedEventHandler(listOptionMenuForm_SelectionChanged);
        }
コード例 #5
0
        /// <summary>
        /// contructor.
        /// </summary>
        /// <param name="serviceEntity">Servicio a editar</param>
        /// <param name="session">Identificador de sesion</param>
        public WindowDesigner(ServiceEntity serviceEntity, String session)
        {
            InitializeComponent();
            document = new ServiceDocumentWpf(this, session);
            document.ServiceEntity = serviceEntity;
            this.DataContext       = document.ServiceEntity;

            this.Loaded += new RoutedEventHandler(WindowDesignerLoaded);
            this.document.DataSourceDeleted += new EventHandler(document_DataSourceDeleted);
            this.document.FormDeleted       += new EventHandler(document_FormDeleted);
            canvasDrawPrincipal.MouseMove   += new MouseEventHandler(CanvasDraw_MouseMove);
            textBoxServiceName.Text          = serviceEntity.Name;
        }