亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dxmutgui.cs

?? 運用directX完成的坦克游戲雛形
?? CS
?? 第 1 頁 / 共 5 頁
字號:
                    return c;
            }

            return null;
        }
        /// <summary>Returns the control located at this index of this type(if one exists)</summary>
        public Control GetControl(int id, ControlType typeControl)
        {
            foreach(Control c in controlList)
            {
                if (c == null)
                    continue;

                if ((c.ID == id) && (c.ControlType == typeControl))
                    return c;
            }

            return null;
        }

        /// <summary>Returns the static text control located at this index(if one exists)</summary>
        public StaticText GetStaticText(int id) { return GetControl(id, ControlType.StaticText) as StaticText; }
        /// <summary>Returns the button control located at this index(if one exists)</summary>
        public Button GetButton(int id) { return GetControl(id, ControlType.Button) as Button; }
        /// <summary>Returns the checkbox control located at this index(if one exists)</summary>
        public Checkbox GetCheckbox(int id) { return GetControl(id, ControlType.CheckBox) as Checkbox; }
        /// <summary>Returns the radio button control located at this index(if one exists)</summary>
        public RadioButton GetRadioButton(int id) { return GetControl(id, ControlType.RadioButton) as RadioButton; }
        /// <summary>Returns the combo box control located at this index(if one exists)</summary>
        public ComboBox GetComboBox(int id) { return GetControl(id, ControlType.ComboBox) as ComboBox; }
        /// <summary>Returns the slider control located at this index(if one exists)</summary>
        public Slider GetSlider(int id) { return GetControl(id, ControlType.Slider) as Slider; }
        /// <summary>Returns the listbox control located at this index(if one exists)</summary>
        public ListBox GetListBox(int id) { return GetControl(id, ControlType.ListBox) as ListBox; }
        #endregion

        #region Default Elements
        /// <summary>
        /// Sets the default element
        /// </summary>
        public void SetDefaultElement(ControlType ctype, uint index, Element e)
        {
            // If this element already exists, just update it
            for (int i = 0; i < defaultElementList.Count; i++)
            {
                ElementHolder holder = (ElementHolder)defaultElementList[i];
                if ( (holder.ControlType == ctype) &&
                    (holder.ElementIndex == index) )
                {
                    // Found it, update it
                    holder.Element = e.Clone();
                    defaultElementList[i] = holder;
                    return;
                }
            }

            // Couldn't find it, add a new entry
            ElementHolder newEntry = new ElementHolder();
            newEntry.ControlType = ctype;
            newEntry.ElementIndex = index;
            newEntry.Element = e.Clone();

            // Add it now
            defaultElementList.Add(newEntry);
        }
        /// <summary>
        /// Gets the default element
        /// </summary>
        public Element GetDefaultElement(ControlType ctype, uint index)
        {
            for (int i = 0; i < defaultElementList.Count; i++)
            {
                ElementHolder holder = (ElementHolder)defaultElementList[i];
                if ( (holder.ControlType == ctype) &&
                    (holder.ElementIndex == index) )
                {
                    // Found it, return it
                    return holder.Element;
                }
            }
            return null;
        }
        #endregion

        #region Texture/Font Resources
        /// <summary>
        /// Shared resource access. Indexed fonts and textures are shared among
        /// all the controls.
        /// </summary>
        public void SetFont(uint index, string faceName, uint height, FontWeight weight)
        {
            // Make sure the list is at least big enough to hold this index
            for (uint i = (uint)fontList.Count; i <= index; i++)
                fontList.Add((int)(-1));

            int fontIndex = DialogResourceManager.GetGlobalInstance().AddFont(faceName, height, weight);
            fontList[(int)index] = fontIndex;
        }
        /// <summary>
        /// Shared resource access. Indexed fonts and textures are shared among
        /// all the controls.
        /// </summary>
        public FontNode GetFont(uint index)
        {
            return DialogResourceManager.GetGlobalInstance().GetFontNode((int)fontList[(int)index]);
        }
        /// <summary>
        /// Shared resource access. Indexed fonts and textures are shared among
        /// all the controls.
        /// </summary>
        public void SetTexture(uint index, string filename)
        {
            // Make sure the list is at least big enough to hold this index
            for (uint i = (uint)textureList.Count; i <= index; i++)
                textureList.Add((int)(-1));

            int textureIndex = DialogResourceManager.GetGlobalInstance().AddTexture(filename);
            textureList[(int)index] = textureIndex;
        }
        /// <summary>
        /// Shared resource access. Indexed fonts and textures are shared among
        /// all the controls.
        /// </summary>
        public TextureNode GetTexture(uint index)
        {
            return DialogResourceManager.GetGlobalInstance().GetTextureNode((int)textureList[(int)index]);
        }
        #endregion

        #region Control Creation
        /// <summary>
        /// Initializes a control
        /// </summary>
        public void InitializeControl(Control control)
        {
            if (control == null)
                throw new ArgumentNullException("control", "You cannot pass in a null control to initialize");

            // Set the index
            control.index = (uint)controlList.Count;

            // Look for a default element entires
            for (int i = 0; i < defaultElementList.Count; i++)
            {
                // Find any elements for this control
                ElementHolder holder = (ElementHolder)defaultElementList[i];
                if (holder.ControlType == control.ControlType)
                    control[holder.ElementIndex] = holder.Element;
            }

            // Initialize the control
            control.OnInitialize();
        }
        /// <summary>
        /// Adds a control to the dialog
        /// </summary>
        public void AddControl(Control control)
        {
            // Initialize the control first
            InitializeControl(control);

            // Add this to the control list
            controlList.Add(control);
        }
        /// <summary>Adds a static text control to the dialog</summary>
        public StaticText AddStatic(int id, string text, int x, int y, int w, int h, bool isDefault)
        {
            // First create the static
            StaticText s = new StaticText(this);

            // Now call the add control method
            AddControl(s);

            // Set the properties of the static now
            s.ID = id;
            s.SetText(text);
            s.SetLocation(x, y);
            s.SetSize(w,h);
            s.isDefault = isDefault;

            return s;
        }
        /// <summary>Adds a static text control to the dialog</summary>
        public StaticText AddStatic(int id, string text, int x, int y, int w, int h){return AddStatic(id, text, x, y, w, h, false); }
        /// <summary>Adds a button control to the dialog</summary>
        public Button AddButton(int id, string text, int x, int y, int w, int h, System.Windows.Forms.Keys hotkey, bool isDefault)
        {
            // First create the button
            Button b = new Button(this);

            // Now call the add control method
            AddControl(b);

            // Set the properties of the button now
            b.ID = id;
            b.SetText(text);
            b.SetLocation(x, y);
            b.SetSize(w,h);
            b.Hotkey = hotkey;
            b.isDefault = isDefault;

            return b;
        }
        /// <summary>Adds a button control to the dialog</summary>
        public Button AddButton(int id, string text, int x, int y, int w, int h) { return AddButton(id, text, x, y, w, h, 0, false); }
        /// <summary>Adds a checkbox to the dialog</summary>
        public Checkbox AddCheckBox(int id, string text, int x, int y, int w, int h, bool ischecked, System.Windows.Forms.Keys hotkey, bool isDefault)
        {
            // First create the checkbox
            Checkbox c = new Checkbox(this);

            // Now call the add control method
            AddControl(c);

            // Set the properties of the button now
            c.ID = id;
            c.SetText(text);
            c.SetLocation(x, y);
            c.SetSize(w,h);
            c.Hotkey = hotkey;
            c.isDefault = isDefault;
            c.IsChecked = ischecked;

            return c;
        }
        /// <summary>Adds a checkbox control to the dialog</summary>
        public Checkbox AddCheckBox(int id, string text, int x, int y, int w, int h, bool ischecked) { return AddCheckBox(id, text, x, y, w, h, ischecked, 0, false); }
        /// <summary>Adds a radiobutton to the dialog</summary>
        public RadioButton AddRadioButton(int id, uint groupId, string text, int x, int y, int w, int h, bool ischecked, System.Windows.Forms.Keys hotkey, bool isDefault)
        {
            // First create the RadioButton
            RadioButton c = new RadioButton(this);

            // Now call the add control method
            AddControl(c);

            // Set the properties of the button now
            c.ID = id;
            c.ButtonGroup = groupId;
            c.SetText(text);
            c.SetLocation(x, y);
            c.SetSize(w,h);
            c.Hotkey = hotkey;
            c.isDefault = isDefault;
            c.IsChecked = ischecked;

            return c;
        }
        /// <summary>Adds a radio button control to the dialog</summary>
        public RadioButton AddRadioButton(int id, uint groupId, string text, int x, int y, int w, int h, bool ischecked) { return AddRadioButton(id, groupId, text, x, y, w, h, ischecked, 0, false); }
        /// <summary>Adds a combobox control to the dialog</summary>
        public ComboBox AddComboBox(int id, int x, int y, int w, int h, System.Windows.Forms.Keys hotkey, bool isDefault)
        {
            // First create the combo
            ComboBox c = new ComboBox(this);

            // Now call the add control method
            AddControl(c);

            // Set the properties of the button now
            c.ID = id;
            c.SetLocation(x, y);
            c.SetSize(w,h);
            c.Hotkey = hotkey;
            c.isDefault = isDefault;

            return c;
        }
        /// <summary>Adds a combobox control to the dialog</summary>
        public ComboBox AddComboBox(int id, int x, int y, int w, int h) { return AddComboBox(id, x, y, w, h, 0, false); }
        /// <summary>Adds a slider control to the dialog</summary>
        public Slider AddSlider(int id, int x, int y, int w, int h, int min, int max, int initialValue, bool isDefault)
        {
            // First create the slider
            Slider c = new Slider(this);

            // Now call the add control method
            AddControl(c);

            // Set the properties of the button now
            c.ID = id;
            c.SetLocation(x, y);
            c.SetSize(w,h);
            c.isDefault = isDefault;
            c.SetRange(min, max);
            c.Value = initialValue;

            return c;
        }
        /// <summary>Adds a slider control to the dialog</summary>
        public Slider AddSlider(int id, int x, int y, int w, int h) { return AddSlider(id, x, y, w, h, 0,100,50, false); }
        /// <summary>Adds a listbox control to the dialog</summary>
        public ListBox AddListBox(int id, int x, int y, int w, int h, ListBoxStyle style)
        {
            // First create the listbox
            ListBox c = new ListBox(this);

            // Now call the add control method
            AddControl(c);

            // Set the properties of the button now
            c.ID = id;
            c.SetLocation(x, y);
            c.SetSize(w,h);
            c.Style = style;

            return c;
        }
        /// <summary>Adds a listbox control to the dialog</summary>
        public ListBox AddList

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品综合二区| 国产一区二区美女| 精品日韩一区二区三区| 成人av免费观看| 亚洲一二三区不卡| 久久久国产精品午夜一区ai换脸| av电影天堂一区二区在线观看| 黄网站免费久久| 一区二区激情视频| 国产日韩av一区二区| 在线成人免费观看| 99久久婷婷国产综合精品| 久久精品国产精品亚洲精品| 亚洲人成人一区二区在线观看| 精品欧美黑人一区二区三区| 精品视频在线免费看| 成人app下载| 国产一区91精品张津瑜| 午夜影院在线观看欧美| 亚洲一二三区不卡| 91啪亚洲精品| 狠狠色丁香婷婷综合久久片| 一级做a爱片久久| 中文av一区二区| 精品日本一线二线三线不卡| 欧美日精品一区视频| 99久久久无码国产精品| 精品无人码麻豆乱码1区2区 | 久久国产综合精品| 午夜欧美一区二区三区在线播放| 国产精品九色蝌蚪自拍| 国产日韩亚洲欧美综合| 久久久久久久国产精品影院| 日韩一卡二卡三卡| 日韩一区二区影院| 欧美日韩精品一区二区天天拍小说 | 欧美一区二区三区在线观看| 91九色最新地址| 91美女片黄在线观看91美女| 91丨porny丨在线| 99免费精品在线观看| 99免费精品在线| 91在线国产观看| 成人av电影免费在线播放| 国产91富婆露脸刺激对白| 国产高清不卡一区二区| 不卡的电视剧免费网站有什么| 国产suv精品一区二区6| 成人免费视频app| 成人va在线观看| www.亚洲在线| 一本色道久久综合亚洲aⅴ蜜桃| 91丨porny丨户外露出| 色狠狠色狠狠综合| 欧美三级日本三级少妇99| 欧美另类久久久品| 日韩精品一区二区三区四区视频 | 99久久精品99国产精品 | 日本国产一区二区| 在线亚洲欧美专区二区| 欧美吻胸吃奶大尺度电影| 欧洲日韩一区二区三区| 欧美日韩高清一区二区三区| 日韩色在线观看| 日韩欧美一二三区| 欧美精品一区二区三区很污很色的 | 午夜精品福利在线| 麻豆高清免费国产一区| 国产精品自拍三区| 99视频精品免费视频| 欧美亚洲综合久久| 欧美成人三级电影在线| 欧美国产1区2区| 一区二区三区四区不卡视频| 日韩在线一区二区| 国产麻豆成人精品| 91福利社在线观看| 欧美一区二区播放| 久久九九99视频| 亚洲日本va午夜在线电影| 无码av中文一区二区三区桃花岛| 国内精品伊人久久久久av一坑 | 在线观看av一区二区| 欧美一区二区视频免费观看| 久久久久99精品一区| 一个色妞综合视频在线观看| 免费在线观看一区二区三区| 粉嫩一区二区三区在线看| 国产欧美精品在线观看| 亚洲精品精品亚洲| 久久99精品久久久久久国产越南| av一区二区三区四区| 91.com在线观看| 国产精品电影一区二区三区| 日韩av成人高清| 91免费在线看| 久久这里只有精品6| 亚洲图片一区二区| 国产成人综合网站| 91精品国产aⅴ一区二区| 国产精品日韩成人| 毛片不卡一区二区| 欧美性受xxxx| 中文字幕亚洲欧美在线不卡| 日本欧美加勒比视频| 色吊一区二区三区| 国产欧美日韩中文久久| 蜜桃视频一区二区三区在线观看| 色激情天天射综合网| 中文在线资源观看网站视频免费不卡 | 成人午夜av电影| 日韩精品在线网站| 亚洲一级不卡视频| 成人v精品蜜桃久久一区| 亚洲精品一区在线观看| 日日夜夜免费精品视频| 一本一道久久a久久精品 | 91免费观看视频在线| 精品av综合导航| 天天做天天摸天天爽国产一区| 99国产精品久久久久久久久久 | 91美女在线观看| 国产欧美日韩视频在线观看| 久久成人羞羞网站| 欧美色大人视频| 樱花草国产18久久久久| 成人免费毛片app| 久久免费看少妇高潮| 久久99精品久久久久| 欧美精品v日韩精品v韩国精品v| 亚洲精品中文字幕在线观看| www.欧美.com| 中文字幕高清一区| 福利一区二区在线| 国产午夜亚洲精品理论片色戒| 国产一区二区日韩精品| 久久综合九色综合欧美就去吻| 久久激五月天综合精品| 欧美激情艳妇裸体舞| 国产福利91精品一区二区三区| 久久久久九九视频| 国产91精品露脸国语对白| 国产欧美一区二区精品仙草咪 | 日本精品免费观看高清观看| 中文字幕亚洲在| 9l国产精品久久久久麻豆| 亚洲视频在线一区二区| 91免费观看国产| 一区二区在线观看不卡| 欧美在线短视频| 亚洲图片欧美综合| 欧美一区二区视频免费观看| 免费亚洲电影在线| 久久久久久电影| youjizz国产精品| 亚洲最大的成人av| 欧美嫩在线观看| 老司机精品视频导航| 国产日韩三级在线| 91浏览器入口在线观看| 亚洲国产精品久久艾草纯爱| 6080日韩午夜伦伦午夜伦| 麻豆精品视频在线观看免费| 久久久久久久性| 波波电影院一区二区三区| 有码一区二区三区| 777午夜精品免费视频| 国产精品自拍网站| 亚洲色图都市小说| 欧美一区二区在线看| 国产精品伊人色| 亚洲欧美日韩人成在线播放| 7777精品伊人久久久大香线蕉 | 久久综合狠狠综合| av电影一区二区| 日韩制服丝袜先锋影音| 久久先锋影音av鲁色资源网| 成人av影视在线观看| 三级欧美在线一区| 中文字幕精品一区二区三区精品| 一本大道久久a久久综合婷婷| 日韩精品一卡二卡三卡四卡无卡| 久久综合久久鬼色| 欧美性受xxxx黑人xyx性爽| 国产在线精品一区二区不卡了| 亚洲欧美一区二区三区孕妇| 欧美一级日韩一级| 97久久精品人人做人人爽| 日韩精品国产精品| 国产精品国产三级国产三级人妇 | 久久久av毛片精品| 91福利国产成人精品照片| 精品一区二区综合| 一区二区视频免费在线观看| 2欧美一区二区三区在线观看视频| 91理论电影在线观看| 97久久超碰国产精品| 蜜桃av噜噜一区| 亚洲人成7777| 国产偷国产偷亚洲高清人白洁|