예제 #1
0
        public void copyFrom(osd_screen other)
        {
            for (int i = 0; i < other.panelItems.Length; i++)
            {
                if (panelItems[i] != null && other.panelItems[i] != null)
                {
                    panelItems[i].copyFrom(other.panelItems[i]);
                }
            }
            var e1 = LIST_items.Nodes.GetEnumerator();
            var e2 = other.LIST_items.Nodes.GetEnumerator();

            while (e1.MoveNext() && e2.MoveNext())
            {
                ((TreeNode)e1.Current).Checked = ((TreeNode)e2.Current).Checked;
            }
        }
예제 #2
0
        public OSD() {
			
			conf = new Config(this); // конфиг по умолчанию
						
			for (int i=0; i<npanel; i++) {
				var s = new osd_screen(i, this);
				scr[i] = s;
			}

			InitializeComponent(); 
			

            // load default font
			chars = mcm.readMCM ("MinimOSD_" + System.Reflection.Assembly.GetExecutingAssembly ().GetName ().Version.ToString () + ".mcm");
			lblPresentedCharset.Text = "Presented Charset: " + "MinimOSD_" + System.Reflection.Assembly.GetExecutingAssembly ().GetName ().Version.ToString () + ".mcm";
            try { // load default bg pic			{
				bgpicture = Image.FromFile ("vlcsnap-2012-01-28-07h46m04s95.png");
			} catch {
			}
			
            currentlyselected = "";

            print_x = 0;
            print_y = 0;
			
			screen = new Bitmap(SCREEN_W * CHAR_W, SCREEN_H * CHAR_H);
            gr = Graphics.FromImage(screen);

            pan = new Panels(this);

            // setup all panel options
            setupFunctions(); //setup panel item box
        }