public frmRenderOptionsHistory(TrayIcon TargetIcon)
        {
            InitializeComponent();
            this.Icon = Properties.Resources.tray;

            for (Int32 i = 0; i <= Globals.colorPresets.GetUpperBound(0); i++)
            {
                colorPer.Items.Add(i.ToString());
            }

            _targetIcon   = TargetIcon;
            _targetRender = (RendererHistory)TargetIcon.renderer;
            LoadColourPics();
            comboBoxDirection.SelectedIndex = (byte)_targetRender.RenderDirection - 1;
            chkUseAlpha.Checked             = _targetRender.UseAlpha;
        }
        public frmRenderOptionsHistory(TrayIcon TargetIcon)
        {
            InitializeComponent();
            this.Icon = Properties.Resources.tray;

            for (Int32 i = 0; i <= Globals.colorPresets.GetUpperBound(0); i++)
            {
                colorPer.Items.Add(i.ToString());
            }

            _targetIcon = TargetIcon;
            _targetRender = (RendererHistory)TargetIcon.renderer;
            LoadColourPics();
            comboBoxDirection.SelectedIndex = (byte)_targetRender.RenderDirection - 1;
            chkUseAlpha.Checked = _targetRender.UseAlpha;
        }
Beispiel #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;
                }
            }
        }
Beispiel #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;
         }
     }
 }