⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slider_pane.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 4 页
字号:
            get
            {
                return this.m_slider_items.get_Count();
            }
        }

        public int item_padding
        {
            get
            {
                return this.m_item_padding;
            }
            set
            {
                this.m_item_padding = value;
                IntPtr handle = base.Handle;
                this.calculate_item_window_rect();
                this.do_paint();
            }
        }

        public Color item_top_color
        {
            get
            {
                return this.m_clr_item_top;
            }
            set
            {
                this.m_clr_item_top = value;
                IntPtr handle = base.Handle;
                this.do_paint();
            }
        }

        public bool items_dock_pos
        {
            get
            {
                return this.m_items_dock_bottom;
            }
            set
            {
                this.m_items_dock_bottom = value;
                IntPtr handle = base.Handle;
                this.calculate_item_window_rect();
                this.do_paint();
            }
        }

        public int selected_index
        {
            get
            {
                return this.m_selected_index;
            }
            set
            {
                this.select_slider(value);
            }
        }

        public Color selecteditem_bottom_color
        {
            get
            {
                return this.m_clr_selecteditem_bottom;
            }
            set
            {
                this.m_clr_selecteditem_bottom = value;
                IntPtr handle = base.Handle;
                this.do_paint();
            }
        }

        public Color selecteditem_top_color
        {
            get
            {
                return this.m_clr_selecteditem_top;
            }
            set
            {
                this.m_clr_selecteditem_top = value;
                IntPtr handle = base.Handle;
                this.do_paint();
            }
        }

        public Color selectedtext_color
        {
            get
            {
                return this.m_clr_selectedtext;
            }
            set
            {
                this.m_clr_selectedtext = value;
                IntPtr handle = base.Handle;
                this.do_paint();
            }
        }

        public Color text_color
        {
            get
            {
                return this.m_clr_text;
            }
            set
            {
                this.m_clr_text = value;
                IntPtr handle = base.Handle;
                this.do_paint();
            }
        }

        public Color toggleditem_bottom_color
        {
            get
            {
                return this.m_clr_toggleditem_bottom;
            }
            set
            {
                this.m_clr_toggleditem_bottom = value;
                IntPtr handle = base.Handle;
                this.do_paint();
            }
        }

        public Color toggleditem_top_color
        {
            get
            {
                return this.m_clr_toggleditem_top;
            }
            set
            {
                this.m_clr_toggleditem_top = value;
                IntPtr handle = base.Handle;
                this.do_paint();
            }
        }

        protected delegate void browse_item_handler(slider_pane.browse_item_helper_arg e);

        public class browse_item_helper_arg : EventArgs
        {
            public bool cancel;
            public object context;
            public bool hitted;
            public int index;
            public Rectangle item_rect;
        }

        public class cancel_select_event_args : CancelEventArgs
        {
            internal int m_new_selected_index = -1;
            internal int m_old_selected_index = -1;

            public int new_selected_index
            {
                get
                {
                    return this.m_new_selected_index;
                }
            }

            public int old_selected_index
            {
                get
                {
                    return this.m_old_selected_index;
                }
            }
        }

        public delegate void selected_index_changed_handler(object sender, EventArgs args);

        public delegate void selected_index_changing_handler(object sender, slider_pane.cancel_select_event_args args);

        public sealed class slider_item
        {
            private object m_data;
            internal slider_pane m_host;
            private object m_image;
            private string m_name;
            private int m_pane_height;
            private string m_prompt;
            private Control m_window;

            internal slider_item(slider_pane host)
            {
                this.m_name = "";
                this.m_prompt = "";
                this.m_pane_height = -1;
                this.m_host = host;
            }

            public slider_item(string name, string prompt, object img, Control window)
            {
                this.m_name = "";
                this.m_prompt = "";
                this.m_pane_height = -1;
                this.m_name = name;
                this.m_prompt = prompt;
                this.m_window = window;
                this.m_image = img;
                this.m_pane_height = -1;
            }

            public slider_item(string name, string prompt, object img, Control window, int pane_height)
            {
                this.m_name = "";
                this.m_prompt = "";
                this.m_pane_height = -1;
                this.m_name = name;
                this.m_prompt = prompt;
                this.m_window = window;
                this.m_image = img;
                this.m_pane_height = pane_height;
            }

            private void on_changed(object property)
            {
                if (this.m_host != null)
                {
                    this.m_host.Invalidate();
                }
            }

            public object data
            {
                get
                {
                    return this.m_data;
                }
                set
                {
                    this.m_data = value;
                    this.on_changed(this.m_window);
                }
            }

            public object image
            {
                get
                {
                    return this.m_image;
                }
                set
                {
                    this.m_image = value;
                    this.on_changed(this.m_image);
                }
            }

            public string name
            {
                get
                {
                    return this.m_name;
                }
                set
                {
                    this.m_name = value;
                    this.on_changed(this.m_name);
                }
            }

            public int pane_height
            {
                get
                {
                    return this.m_pane_height;
                }
                set
                {
                    this.m_pane_height = value;
                    this.on_changed(this.m_window);
                }
            }

            public string prompt
            {
                get
                {
                    return this.m_prompt;
                }
                set
                {
                    this.m_prompt = value;
                    this.on_changed(this.m_prompt);
                }
            }

            public Control window
            {
                get
                {
                    return this.m_window;
                }
                set
                {
                    this.m_window = value;
                    this.on_changed(this.m_window);
                }
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -