Exemplo n.º 1
0
        private void sbPython()
        {
            PythonScript objPyWindow;

            try
            {
                objPyWindow = new PythonScript(parameter.PythonScript, "Parameter: " + parameter.Description);
                objPyWindow.ShowDialog();
                parameter.PythonScript = objPyWindow.Script;
                objPyWindow            = null;
            }
            catch (Exception ex)
            {
                throw new Exception(Properties.Resources.ResourceManager.GetString("msgError").ToString(), ex);
            }
        }
        private void sbPosPy()
        {
            PythonScript objPyWindow;

            try
            {
                objPyWindow = new PythonScript(Card.PosPythonScript, "Card Pos Python Script: " + Card.Name);
                objPyWindow.ShowDialog();
                Card.PosPythonScript = objPyWindow.Script;
                objPyWindow          = null;
            }
            catch (Exception ex)
            {
                throw new Exception(Properties.Resources.ResourceManager.GetString("msgError").ToString(), ex);
            }
        }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PythonScriptEditor = ((SpinerBase.Layers.FrontEnd.PythonScript)(target));

            #line 9 "..\..\..\..\Layers\FrontEnd\PythonScript.xaml"
                this.PythonScriptEditor.Loaded += new System.Windows.RoutedEventHandler(this.PythonScript_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.grdPrincipal = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.imgBackground = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.btnInitialize = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\..\..\Layers\FrontEnd\PythonScript.xaml"
                this.btnInitialize.Click += new System.Windows.RoutedEventHandler(this.btnInitialize_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnClr = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\..\..\Layers\FrontEnd\PythonScript.xaml"
                this.btnClr.Click += new System.Windows.RoutedEventHandler(this.btnClr_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnDate = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\..\..\Layers\FrontEnd\PythonScript.xaml"
                this.btnDate.Click += new System.Windows.RoutedEventHandler(this.btnDate_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnAux = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\..\..\Layers\FrontEnd\PythonScript.xaml"
                this.btnAux.Click += new System.Windows.RoutedEventHandler(this.btnAux_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnTemplateMigrate = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\..\..\Layers\FrontEnd\PythonScript.xaml"
                this.btnTemplateMigrate.Click += new System.Windows.RoutedEventHandler(this.btnTemplateMigrate_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.txtTargetTable = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.txtCommand = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.btnok = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\..\..\Layers\FrontEnd\PythonScript.xaml"
                this.btnok.Click += new System.Windows.RoutedEventHandler(this.btnok_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }