Ejemplo n.º 1
0
        private UVDLPApp()
        {
            m_supportmode          = eSupportEditMode.eNone;
            SceneFileName          = "";
            m_callbackhandler      = new CallbackHandler();
            m_appconfig            = new AppConfig();
            m_printerinfo          = new MachineConfig();
            m_buildparms           = new SliceBuildConfig();
            m_deviceinterface      = new DeviceInterface();
            m_buildmgr             = new BuildManager();
            m_slicer               = new Slicer();
            m_slicer.m_slicemethod = Slicer.eSliceMethod.eNormalCount;// configure the slicer to user the new normal count - Thanks Shai!!!
            m_slicer.Slice_Event  += new Slicer.SliceEvent(SliceEv);
            //m_dispmgr = DisplayManager.Instance(); // initialize the singleton for early event app binding
            //m_flexslice = new FlexSlice();
            m_gcode            = new GCodeFile(""); // create a blank gcode to start with
            m_supportconfig    = new SupportConfig();
            m_supportgenerator = new SupportGenerator();
            m_supportgenerator.SupportEvent += new SupportGeneratorEvent(SupEvent);
            CSG.Instance().CSGEvent += new CSG.CSGEventDel(CSGEvent);
            m_proj_cmd_lst    = new prjcmdlst();
            m_plugins         = new List <PluginEntry>(); // list of user plug-ins
            m_pluginstates    = PluginStates.Instance();  // initialize the plugin state singleton
            m_undoer          = new Undoer();
            m_2d_graphics     = new C2DGraphics();
            m_gui_config      = new GuiConfigManager();
            m_AuxBuildCmds    = AuxBuildCmds.Instance(); // make sure the singleton doesn't go away...
            m_sequencemanager = SequenceManager.Instance();
            m_exporter        = new frmExport();
            m_exporter.RegisterExporter(new B9JExporter());
            m_callbackhandler.RegisterCallback("FileExport", FileExportCallback, typeof(string[]), "Show the export dialog");

            resman = new ResourceManager("UV_DLP_3D_Printer.Resource.en", typeof(UVDLPApp).Assembly);
            cul    = CultureInfo.CreateSpecificCulture("");
        }
Ejemplo n.º 2
0
        public void ImageWidthTest()
        {
            frmExport target = new frmExport(); // TODO: Initialize to an appropriate value
            int       actual;

            actual = target.ImageWidth;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 3
0
        public void Cancel_ButtonTest()
        {
            frmExport target   = new frmExport(); // TODO: Initialize to an appropriate value
            Button    expected = null;            // TODO: Initialize to an appropriate value
            Button    actual;

            target.Cancel_Button = expected;
            actual = target.Cancel_Button;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 4
0
        public void cbClipToLayerTest()
        {
            frmExport target   = new frmExport(); // TODO: Initialize to an appropriate value
            ComboBox  expected = null;            // TODO: Initialize to an appropriate value
            ComboBox  actual;

            target.cbClipToLayer = expected;
            actual = target.cbClipToLayer;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 5
0
        public void Label1Test()
        {
            frmExport target   = new frmExport(); // TODO: Initialize to an appropriate value
            Label     expected = null;            // TODO: Initialize to an appropriate value
            Label     actual;

            target.Label1 = expected;
            actual        = target.Label1;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 6
0
        public void MainFormTest()
        {
            frmExport     target   = new frmExport(); // TODO: Initialize to an appropriate value
            MapWindowForm expected = null;            // TODO: Initialize to an appropriate value
            MapWindowForm actual;

            target.MainForm = expected;
            actual          = target.MainForm;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 7
0
        public void pcCommitLimitTest()
        {
            frmExport          target   = new frmExport(); // TODO: Initialize to an appropriate value
            PerformanceCounter expected = null;            // TODO: Initialize to an appropriate value
            PerformanceCounter actual;

            target.pcCommitLimit = expected;
            actual = target.pcCommitLimit;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 8
0
        void exportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
        {
            frmExportOptions frm = new frmExportOptions();
            DialogResult     dr  = this.SnapIn.Console.ShowDialog(frm);

            if (dr == DialogResult.OK)
            {
                frmExport frmwait = new frmExport();
                frmwait.ShowDialog(e, frm.fileName, this.storage.GetStores(), frm.includeSecurityObjects, frm.includeDBUsers, frm.includeAuthorizations, this.storage);
            }
        }
Ejemplo n.º 9
0
        public void txtExportFileTest()
        {
            frmExport target   = new frmExport(); // TODO: Initialize to an appropriate value
            TextBox   expected = null;            // TODO: Initialize to an appropriate value
            TextBox   actual;

            target.txtExportFile = expected;
            actual = target.txtExportFile;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Occurs when this command is clicked
        /// </summary>
        public override void OnClick()
        {
            if (m_hookHelper.Hook == null)
            {
                return;
            }
            IMapControl2 pMapCtl = m_hookHelper.Hook as IMapControl2;

            ESRI.ArcGIS.Carto.IMap pMap = m_hookHelper.FocusMap;
            frmExport frm = new frmExport(pMap, null);

            frm.ShowDialog();
        }
        void exportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
        {
            frmExportOptions frm = new frmExportOptions();
            DialogResult     dr  = this.SnapIn.Console.ShowDialog(frm);

            if (dr == DialogResult.OK)
            {
                frmExport      frmwait         = new frmExport();
                IAzManExport[] objectsToExport = new IAzManExport[this.SelectedNodes.Count];
                for (int i = 0; i < this.SelectedNodes.Count; i++)
                {
                    objectsToExport[i] = ((ItemDefinitionScopeNode)this.SelectedNodes[i]).Item;
                }
                frmwait.ShowDialog(e, frm.fileName, objectsToExport, frm.includeSecurityObjects, frm.includeDBUsers, frm.includeAuthorizations, ((ItemDefinitionScopeNode)this.SelectedNodes[0]).Item.Application.Store.Storage);
            }
        }
Ejemplo n.º 12
0
        private void btnExportar_Click(object sender, EventArgs e)
        {
            string sql  = "";
            string nrep = "";

            if (tabVendidos.SelectedIndex == 0)
            {
                sql  = this.sqlVenCons;
                nrep = "Tot_Tip_Cons_";
            }
            else
            {
                sql  = this.sqlVenProds;
                nrep = "Tot_Tip_Prod_";
            }

            frmExport frmExport = new frmExport(sql, this.Text, nrep + Operativo.descripcion + "_" + DateTime.Today.ToString("yyyy-MM-dd"));

            frmExport.ShowDialog(this);

            /*
             * IF MESSAGEBOX('Desea enviar informacion de resumen ... ?', 0292, 'Aviso al usuario')=6
             * nconn = SQLSTRINGCONNECT(getsys('getsys.rn', 'SUMMARYREMOTE'))
             * IF nconn<0
             * = MESSAGEBOX('Error en la conexion', 16, 'Advertencia')
             * ENDIF
             * SELECT vencons
             * GOTO TOP
             * SCAN
             * op = ALLTRIM(vencons.operativo)
             * fe = DTOC(vencons.fecha)
             * te = ALLTRIM(vencons.tcons)
             * es = ALLTRIM(vencons.consultorio)
             * dv = vencons.tickets
             * cn = vencons.cantidad
             * tt = vencons.total
             * scad = 'Insert into res_ven_esp values(?op,?fe,?te,?es,?dv,?cn,?tt)'
             * ejecuta(nconn, scad)
             * ENDSCAN
             * nok = SQLDISCONNECT(nconn)
             * IF nok<0
             * = MESSAGEBOX('Error al cerrar la conexion', 64, 'SQL Error')
             * ENDIF
             * ENDIF
             */
        }
Ejemplo n.º 13
0
        private void btnExportar_Click(object sender, EventArgs e)
        {
            if (txtPaciente.Text.Length == 0)
            {
                return;
            }

            if (this.preimpexp(this.id_paciente) == 0)
            {
                MessageBox.Show("No se hallaron registros ... ", "Aviso al usuario");
                return;
            }

            frmExport frmExport = new frmExport(this.sql, this.Text, "Reporte_" + (rbVentas.Checked? "Ventas_": "Atenciones_") + "Paciente");

            frmExport.ShowDialog(this);
        }
Ejemplo n.º 14
0
        void exportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
        {
            frmExportOptions frm = new frmExportOptions();
            DialogResult     dr  = this.SnapIn.Console.ShowDialog(frm);

            if (dr == DialogResult.OK)
            {
                frmExport      frmwait      = new frmExport();
                IAzManItem[]   itemToExport = this.application.GetItems();
                IAzManExport[] toExport     = new IAzManExport[itemToExport.Length];
                for (int i = 0; i < itemToExport.Length; i++)
                {
                    toExport[i] = itemToExport[i];
                }
                frmwait.ShowDialog(e, frm.fileName, toExport, frm.includeSecurityObjects, frm.includeDBUsers, frm.includeAuthorizations, this.application.Store.Storage);
            }
        }
Ejemplo n.º 15
0
        public override void OnMouseDown(int Button, int Shift, int X, int Y)
        {
            if (m_hookHelper.Hook == null)
            {
                return;
            }
            IMapControl2 pMapCtl = m_hookHelper.Hook as IMapControl2;

            ESRI.ArcGIS.Geometry.IGeometry pGeometry = pMapCtl.TrackRectangle();
            if (pGeometry == null)
            {
                return;
            }

            ESRI.ArcGIS.Carto.IMap pMap = m_hookHelper.FocusMap;
            frmExport frm = new frmExport(pMap, pGeometry);

            frm.ShowDialog();
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Occurs when this tool is clicked
        /// </summary>
        public override void OnClick()
        {
            if (m_hookHelper.Hook == null)
            {
                return;
            }
            IMapControl2 pMapCtl = m_hookHelper.Hook as IMapControl2;

            ESRI.ArcGIS.Geometry.IGeometry pGeometry = pMapCtl.Extent;
            if (pGeometry == null)
            {
                return;
            }

            ESRI.ArcGIS.Carto.IMap pMap = m_hookHelper.FocusMap;
            frmExport frm = new frmExport(pMap, pGeometry);

            frm.ShowDialog();
        }
Ejemplo n.º 17
0
 protected override Form GetForm(string FormName)
 {
     if (FormName == "default")
     {
         if (ExtraParameter == null)
         {
             return(null);
         }
         frmExport F = new frmExport();
         //	ExtraParameter  contiene il parametro da passare a BuildForm
         if (!F.BuildForm(ExtraParameter.ToString(), this))
         {
             QueryCreator.ShowError(null, "Non è stato possibile avviare l'esportazione ",
                                    "Errore nella costruzione del form dei parametri. Provare ad aggiornare il menu.");
             return(null);
         }
         return(F);
     }
     return(null);
 }
Ejemplo n.º 18
0
        /// <summary>
        /// Occurs when this command is clicked
        /// </summary>
        public override void OnClick()
        {
            if (m_hookHelper != null)
            {
                //TODO: Add Map/PageLayout related logic
            }
            else if (m_sceneHookHelper != null)
            {
                //TODO: Add Scene related logic
            }
            else if (m_globeHookHelper != null)
            {
                //TODO: Add Globe related logic
            }
            IGeometry pGeometry = null;

            ESRI.ArcGIS.Carto.IMap pMap = m_hookHelper.FocusMap;
            frmExport frm = new frmExport(pMap, pGeometry);

            frm.ShowDialog();
        }
Ejemplo n.º 19
0
        private void btnExports_Click(object sender, EventArgs e)
        {
            frmExport frmExport = new frmExport();

            frmExport.ShowDialog();
        }
Ejemplo n.º 20
0
        public void frmExportConstructorTest()
        {
            frmExport target = new frmExport();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }