コード例 #1
0
 /// <summary>
 /// 선택 완료시 메인으로 넘겨주기
 /// </summary>
 private void select_ok()
 {
     if (select_data != null)
     {
         fMain.Add_BrickData(select_data);
         this.Close();
     }
 }
コード例 #2
0
 private void select_ok()
 {
     if (select_data != null)
     {
         if (select_data.part_icon == -1)
         {
             if (cb_Icon.SelectedItem == null)
             {
                 MessageBox.Show("아이콘을 선택해주세요.");
             }
             else
             {
                 select_data.part_icon = cb_Icon.SelectedIndex;
                 fMain.Add_BrickData(select_data);
                 this.Close();
             }
         }
         else
         {
             fMain.Add_BrickData(select_data);
             this.Close();
         }
     }
 }