Esempio n. 1
0
        private void bColor_Click(object sender, System.EventArgs e)
        {
            using (ColorDialog cd = new ColorDialog())
            {
                cd.AnyColor     = true;
                cd.FullOpen     = true;
                cd.CustomColors = RdlDesigner.GetCustomColors();

                if (cd.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                RdlDesigner.SetCustomColors(cd.CustomColors);
                if (sender == this.bEndColor)
                {
                    cbEndColor.Text = ColorTranslator.ToHtml(cd.Color);
                }
                else if (sender == this.bBackColor)
                {
                    cbBackColor.Text = ColorTranslator.ToHtml(cd.Color);
                }
            }
            return;
        }
Esempio n. 2
0
        private void bColor_Click(object sender, System.EventArgs e)
        {
            ColorDialog cd = new ColorDialog();

            cd.AnyColor = true;
            cd.FullOpen = true;

            cd.CustomColors = RdlDesigner.GetCustomColors();
            cd.Color        =
                DesignerUtility.ColorFromHtml(cbColor.Text, System.Drawing.Color.Black);
            try
            {
                if (cd.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                RdlDesigner.SetCustomColors(cd.CustomColors);
                if (sender == this.bColor)
                {
                    cbColor.Text = ColorTranslator.ToHtml(cd.Color);
                }
            }
            finally
            {
                cd.Dispose();
            }
            return;
        }
Esempio n. 3
0
        private void SetColor(ComboBox cbColor)
        {
            ColorDialog cd = new ColorDialog();

            cd.AnyColor = true;
            cd.FullOpen = true;

            cd.CustomColors = RdlDesigner.GetCustomColors();
            cd.Color        = DesignerUtility.ColorFromHtml(cbColor.Text, System.Drawing.Color.Empty);

            try
            {
                if (cd.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                RdlDesigner.SetCustomColors(cd.CustomColors);
                cbColor.Text = ColorTranslator.ToHtml(cd.Color);
            }
            finally
            {
                cd.Dispose();
            }

            return;
        }
        private void bClose_Click(object sender, EventArgs e)
        {
            RdlDesigner rd = this.Parent as RdlDesigner;

            if (rd == null)
            {
                return;
            }
            rd.ShowProperties(false);
        }
        internal DialogValidateRdl(RdlDesigner designer)
        {
            _RdlDesigner = designer;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            return;
        }
        public DialogToolOptions(RdlDesigner rdl)
        {
            _RdlDesigner = rdl;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            Init();
            return;
        }
        public DialogDatabase(RdlDesigner rDesigner)
        {
            _rDesigner = rDesigner;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            string[] items = RdlEngineConfig.GetProviders();
            Array.Sort(items);
            cbOrientation.SelectedIndex = 0;
        }
Esempio n. 8
0
        static internal bool GetSharedConnectionInfo(RdlDesigner dsr, string filename, out string dataProvider, out string connectInfo)
        {
            dataProvider = null;
            connectInfo  = null;

            string pswd = null;
            string xml  = "";

            try
            {
                pswd = dsr.GetPassword();
                if (pswd == null)
                {
                    return(false);
                }
                if (!filename.EndsWith(".dsr", StringComparison.InvariantCultureIgnoreCase))
                {
                    filename += ".dsr";
                }

                xml = RDL.DataSourceReference.Retrieve(filename, pswd);
            }
            catch
            {
                MessageBox.Show(Strings.DesignerUtility_Show_SharedConnectionError, Strings.DesignerUtility_Show_TestConnection);
                dsr.ResetPassword();                    // make sure to prompt again for the password
                return(false);
            }
            XmlDocument xDoc = new XmlDocument();

            xDoc.LoadXml(xml);
            XmlNode xNodeLoop = xDoc.FirstChild;

            foreach (XmlNode node in xNodeLoop.ChildNodes)
            {
                switch (node.Name)
                {
                case "DataProvider":
                    dataProvider = node.InnerText;
                    break;

                case "ConnectString":
                    connectInfo = node.InnerText;
                    break;

                default:
                    break;
                }
            }
            return(true);
        }
        public static SaveDialogResult Show(string title, OpenPOS.GUID group, List <SqlColumn> colunas, IRelatorio relatorio)
        {
            frmDialogSave save         = new frmDialogSave(colunas, relatorio);
            RdlDesigner   _rdlDesigner = save.Parent as RdlDesigner;

            save.txtTitle.Text = title;
            save.sfGroup.SetValue(group.ToString());
            save.ShowDialog();
            SaveDialogResult result = save.Result;

            save.Close();
            save.Dispose();
            return(result);
        }
Esempio n. 10
0
        private void designerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RdlDesigner designer = new RdlDesigner("", true);

            designer.Show();
        }