Esempio n. 1
0
        private void iAddParameter_Click(object sender, EventArgs e)
        {
            fwk_Param parent = null;

            if (_param.ParentId.HasValue)
            {
                parent = _AllParams.Where(p => p.ParamId.Equals(_param.ParentId.Value)).FirstOrDefault <fwk_Param>();
            }

            using (frmAddParam frm = new frmAddParam(parent))
            {
                if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    try
                    {
                        //TODO: Latter
                        MultilanguageDAC.Param_CreateNew(frm.Param);
                    }
                    catch (Exception ex)
                    {
                        this.ExceptionViewer.Show(ex);
                    }
                    this.Init();
                }
            }
        }
Esempio n. 2
0
 private void iAppendChilds_Click(object sender, EventArgs e)
 {
     using (frmAddParam frm = new frmAddParam(_param))
     {
         if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             try
             {
                 MultilanguageDAC.Param_CreateNew(frm.Param);
             }
             catch (Exception ex)
             {
                 this.ExceptionViewer.Show(ex);
             }
             this.Init();
         }
     }
 }
Esempio n. 3
0
        private void iNewParamWithoutParent_Click(object sender, EventArgs e)
        {
            fwk_Param parent = null;


            using (frmAddParam frm = new frmAddParam(parent))
            {
                if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    try
                    {
                        //TODO: Latter
                        MultilanguageDAC.Param_CreateNew(frm.Param);
                    }
                    catch (Exception ex)
                    {
                        this.ExceptionViewer.Show(ex);
                    }
                    this.Init();
                }
            }
        }