public CCodeEditDlg(ScriptCommand obj) { InitializeComponent(); for (int i = 0; i < m_TextBox.Length; i++) { m_TextBox[i] = new CCodeEditTextBox(); } for (int i = 0; i < m_ComboBox.Length; i++) { m_ComboBox[i] = new CCodeEditComboBox(); } for (int i = 0; i < m_CheckBox.Length; i++) { m_CheckBox[i] = new CCodeEditCheckBox(); } for (int i = 0; i < m_StrBox.Length; i++) { m_StrBox[i] = new CCodeEditStrBox(); } for (int i = 0; i < m_PosBox.Length; i++) { m_PosBox[i] = new CCodeEditTextBox(); } for (int i = 0; i < m_AreaBox.Length; i++) { m_AreaBox[i] = new CCodeEditTextBox(); } for (int i = 0; i < m_CodeSelBox.Length; i++) { m_CodeSelBox[i] = new CCodeEditStrBox(); } for (int i = 0; i < m_ListBox.Length; i++) { m_ListBox[i] = new CCodeEditListBox(); } for (int i = 0; i < m_Static_1.Length; i++) { m_Static_1[i] = new Label(); } for (int i = 0; i < m_Static_2.Length; i++) { m_Static_2[i] = new Label(); } for (int i = 0; i < m_Static_3.Length; i++) { m_Static_3[i] = new Label(); } for (int i = 0; i < m_Static_4.Length; i++) { m_Static_4[i] = new Label(); } for (int i = 0; i < m_Static_5.Length; i++) { m_Static_5[i] = new Label(); } for (int i = 0; i < m_Static_6.Length; i++) { m_Static_6[i] = new Label(); } cmd = obj; cmd_backup = new ScriptCommand(); cmd_backup.Clone(obj); m_DlgAlign.Reset(90, 20, 200, 20); OnInitDialog(); }
private void Cancel_Click(object sender, EventArgs e) { cmd.Clone(cmd_backup); }