Exemplo n.º 1
0
        public void addQueryWindow(queryBrowser qb)
        {
            windowID++;
            qb.Name = "QueryBrowser " + windowID;
            if (currentProfil.getProperty(ProfilProps.STYLE_COLOR) != null && currentProfil.getProperty(ProfilProps.STYLE_COLOR).Length > 2)
            {
                StyleFormProps profilStyle = new StyleFormProps();
                profilStyle.MainColor = Color.FromArgb(int.Parse(currentProfil.getProperty(ProfilProps.STYLE_COLOR)));

                string styleName = currentProfil.getProperty(ProfilProps.WINDOW_STYLE);
                if (styleName == null)
                {
                    styleName = ProjectorForm.getMainFormStyle();
                }

                profilStyle.composeStyle(styleName);
                qb.setStyle(profilStyle);
            }
            qb.sensorProfil = currentProfil;
            qb.loadPlaceHolder();
            qb.MdiParent = this;

            qb.Show();
            qb.listTables();
            listWindows();
        }
Exemplo n.º 2
0
 public void setParent(ProjectorForm par)
 {
     this.parent = par;
 }
Exemplo n.º 3
0
 public ProfilButton(ProjectorForm parent)
 {
     InitializeComponent();
     this.myParent         = parent;
     this.Description.Text = "";
 }