Ejemplo n.º 1
0
        public frmRenderOptionsImage(TrayIcon targetIcon)
        {
            InitializeComponent();
            this.targetIcon = targetIcon;
            targetRender    = (RendererImage)targetIcon.renderer;

            textBoxBgImage.Text     = targetRender.BackgroundImagePath;
            textBoxActiveImage.Text = targetRender.ActiveImagePath;
            textBoxFgImage.Text     = targetRender.ForegroundImagePath;

            comboBoxDirection.SelectedIndex = (byte)targetRender.RenderDirection - 1;
        }
Ejemplo n.º 2
0
        public frmRenderOptionsImage(TrayIcon targetIcon)
        {
            InitializeComponent();
            this.targetIcon = targetIcon;
            targetRender = (RendererImage)targetIcon.renderer;

            textBoxBgImage.Text = targetRender.BackgroundImagePath;
            textBoxActiveImage.Text = targetRender.ActiveImagePath;
            textBoxFgImage.Text = targetRender.ForegroundImagePath;

            comboBoxDirection.SelectedIndex = (byte)targetRender.RenderDirection - 1;
        }
Ejemplo n.º 3
0
        private void LoadFromXml(XmlReader aR)
        {
            while (aR.Read())
            {
                switch (aR.NodeType)
                {
                case XmlNodeType.Element:
                    if (aR.Name == "RendererBasic")
                    {
                        renderer = new RendererBasic(aR);
                        MakeTrayIcon();
                        break;
                    }
                    if (aR.Name == "RendererImage")
                    {
                        renderer = new RendererImage(aR);
                        MakeTrayIcon();
                        break;
                    }
                    if (aR.Name == "RendererHistory")
                    {
                        renderer = new RendererHistory(aR);
                        MakeTrayIcon();
                        break;
                    }
                    if (aR.Name == "DataSources")
                    {
                        ReadDataLinks(aR);
                        break;
                    }
                    ReadXmlElement(aR, aR.Name);
                    break;

                case XmlNodeType.EndElement:
                    if (aR.Name == "Icon")
                    {
                        return;
                    }
                    break;
                }
            }
        }
Ejemplo n.º 4
0
 private void LoadFromXml(XmlReader aR)
 {
     while (aR.Read())
     {
         switch (aR.NodeType)
         {
             case XmlNodeType.Element:
                 if (aR.Name == "RendererBasic")
                 {
                     renderer = new RendererBasic(aR);
                     MakeTrayIcon();
                     break;
                 }
                 if (aR.Name == "RendererImage")
                 {
                     renderer = new RendererImage(aR);
                     MakeTrayIcon();
                     break;
                 }
                 if (aR.Name == "RendererHistory")
                 {
                     renderer = new RendererHistory(aR);
                     MakeTrayIcon();
                     break;
                 }
                 if (aR.Name == "DataSources")
                 {
                     ReadDataLinks(aR);
                     break;
                 }
                 ReadXmlElement(aR,aR.Name);
                 break;
             case XmlNodeType.EndElement:
                 if (aR.Name == "Icon") { return; }
                 break;
         }
     }
 }