示例#1
0
        /* GUI Events */
        private void OnNewMethodClicked(object sender, EventArgs args)
        {
            methodView  = new MethodView();
            ActionState = ActionState.Create;
            methodView.LoadDataForm((ComponentDTO)GetDataForm());
            MethodDTO methodDTO = (MethodDTO)methodView.GetDataForm();

            if (methodDTO != null)
            {
                methodTableModel.Add(methodDTO);
            }
            methodView = null;
        }
 /* GUI Events */
 private void OnNewMethodClicked(object sender, EventArgs args)
 {
     methodView = new MethodView ();
     ActionState = ActionState.Create;
     methodView.LoadDataForm ((ComponentDTO) GetDataForm ());
     MethodDTO methodDTO = (MethodDTO) methodView.GetDataForm ();
     if (methodDTO != null) {
         methodTableModel.Add (methodDTO);
     }
     methodView = null;
 }