1. 이클립스 상단의

HELP -> Install New Software 클릭한다.

 

2. Work with

download.eclipse.org/eclipse/updates/4.3/

 

Eclipse software repository | The Eclipse Foundation

The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 360 open source projects, including runtimes, tools and frameworks.

download.eclipse.org

 

를 삽입함. 다른 사이트에 있는 주소는 not found 나와서 찾을수 없을 것이다.

 

3. 검색되서 나오는것 중 JDT 를 선택해서 설치한다.

 

4. Properties 로 이동해서 Facets 를 검색해서 Project Facets의 JAVA 항목에 1.8이 추가되어있다..

 

Posted by Lich King
,

BindingList<ComboData> _comboItems = new BindingList<ComboData>(); // ComboBox의 DataSource 적용된것


private void Combo_DrawItem(object sender, DrawItemEventArgs e)

        {

            Brush brush = null;

            ComboBox combo = (ComboBox)sender;


            if (combo == null || _comboItems == null)

            {

                return;

            }


            if (대상인 색깔..)

            {

                //백그라운드 색

                e.Graphics.FillRectangle(SystemBrushes.Window, e.Bounds);

                //글자 색

                brush = ((e.State & DrawItemState.Selected) > 0) ? SystemBrushes.HotTrack : SystemBrushes.ControlText;

                e.Graphics.DrawString(_comboItems[e.Index].Text, combo.Font, brush, e.Bounds);

            }

            else

            {

                e.DrawBackground();

                //백그라운드 색

                e.Graphics.FillRectangle(Brushes.DarkGray, e.Bounds);

                //글자 색

                brush = ((e.State & DrawItemState.Selected) > 0) ? SystemBrushes.HighlightText : SystemBrushes.ControlText;

                e.Graphics.DrawString(_comboItems[e.Index].Text, combo.Font, brush, e.Bounds);

                e.DrawFocusRectangle();

            }

        }

Posted by Lich King
,

    public interface IFormDataInterface

    {

        void SetData(String Data);

    }

    

    public partial class Form1 : Form, IFormDataInterface

    {

        public Form1()

        {

            InitializeComponent();

        }


        private void button1_Click(object sender, EventArgs e)

        {

            Form2 frm = new Form2(this as IFormDataInterface);

            frm.Show();

        }

        public void SetData(String Data)

        {

            textBox1.Text = Data;

        }

    }


    public partial class Form2 : Form

    {

        private IFormDataInterface frm = null;

        public Form2(IFormDataInterface frm)

        {

            InitializeComponent();

            this.frm = frm;

        }


        private void button1_Click(object sender, EventArgs e)

        {

            frm.SetData(textBox1.Text);

        }

    }

Posted by Lich King
,