示例#1
0
        public Form2(Form1 form1)
        {
            f1 = form1;
            InitializeComponent();

            // Die Form beweglich machen...
            this.dragExtender1 = new DragExtender();
            this.dragExtender1.Form = this;
            // make the form draggable
            this.dragExtender1.SetDraggable(this, true);
            this.dragExtender1.SetDraggable(this.panel1, true);
            this.dragExtender1.SetDraggable(this.label1, true);
            this.dragExtender1.SetDraggable(this.label2, true);

            try
            {
                doc.Load("B:\\CONFIG.XML");
                XmlNode xnHome = doc.SelectSingleNode("/settings/eintrag/home");
                home = xnHome.Attributes["param"].InnerText;
            }
            catch { }

            if(home != "true")
            {
                pictureBox2.Visible = false;
            }
        }
示例#2
0
        public Form2(Form1 form1)
        {
            f1 = form1;
            InitializeComponent();

            // Die Form beweglich machen...
            this.dragExtender1      = new DragExtender();
            this.dragExtender1.Form = this;
            // make the form draggable
            this.dragExtender1.SetDraggable(this, true);
            this.dragExtender1.SetDraggable(this.panel1, true);
            this.dragExtender1.SetDraggable(this.label1, true);
            this.dragExtender1.SetDraggable(this.label2, true);

            try
            {
                doc.Load("B:\\CONFIG.XML");
                XmlNode xnHome = doc.SelectSingleNode("/settings/eintrag/home");
                home = xnHome.Attributes["param"].InnerText;
            }
            catch { }

            if (home != "true")
            {
                pictureBox2.Visible = false;
            }
        }