public Form_Calender(PictureBox mainCharBox, Form_Main mainForm, Form_CmdList cmdForm) { InitializeComponent(); m_mainChar = mainCharBox; m_mainForm = mainForm; m_cmdForm = cmdForm; }
//////////////////////////////////////////////////////////////////////////////////////////////////////////// /* 초기화 및 종료처리 */ private void Form_Main_Load(object sender, EventArgs e) { ProgramCore.CharacterAction.SetAction("Nothing"); m_formCmdList = new Form_CmdList(this.PictureBox_Char, this); m_formCalender = new Form_Calender(this.PictureBox_Char, this, m_formCmdList); m_formCmdList.Show(); m_formCalender.Show(); m_formCmdList.Hide(); m_formCalender.Hide(); }
private void Form_Main_FormClosing(object sender, FormClosingEventArgs e) { if (m_formCmdList != null && m_formCmdList.IsDisposed == false) { m_formCmdList.Destroy(); m_formCmdList.Dispose(); m_formCmdList = null; } if (m_formCalender != null && m_formCalender.IsDisposed == false) { m_formCalender.Dispose(); m_formCalender = null; } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* 외부 통신 */ public void SetMainForm(Form_CmdList MainForm) { m_MainForm = MainForm; }
private void ToolStripMenuItem_ShowCmdList_Click(object sender, EventArgs e) { // 명령어 목록 보기 if (m_formCmdList.IsDisposed) { m_formCmdList = new Form_CmdList(this.PictureBox_Char, this); } m_formCmdList.Show(); }