예제 #1
0
        private void btn_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;

            switch (btn.Name)
            {
            case "btn_1":
                Category_Insert_modal Me_mo = new Category_Insert_modal();
                Me_mo.Location      = new Point(100, 100);
                Me_mo.StartPosition = FormStartPosition.Manual;
                Me_mo.Location      = new System.Drawing.Point(240, 30); //모달 처음 위치값 지정<나중에 바꾸기>
                Me_mo.BackColor     = Color.Black;
                Me_mo.Show();
                break;
            }
        }
예제 #2
0
        private void btn_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;

            switch (btn.Name)
            {
            case "btn_1":
                Category_Insert_modal Me_mo = new Category_Insert_modal();
                //Me_mo.Location = new Point(100, 100);
                Me_mo.StartPosition = FormStartPosition.Manual;
                Me_mo.Location      = new System.Drawing.Point(550, 420); //모달 처음 위치값 지정<나중에 바꾸기>
                Me_mo.ShowDialog();
                api = new Module();
                api.selectListView("http://192.168.3.28:5000/mc_select", listview);

                break;
            }
        }