예제 #1
0
        /// <summary>
        /// Creates the form.
        /// </summary>
        /// <param name="formId">The form id.</param>
        /// <param name="mode">The mode.</param>
        /// <returns></returns>
        /// Created by SMK
        private DockContent CreateForm(int formId, FormMode mode)
        {
            DockContent frm = null;
            switch (formId)
            {
                case Config.FORM_XSLT_MAPPING:
                    frm = new FrmXslMapping(this, mode, FileName);
                    frm.MdiParent = this;
                    break;
                case Config.FORM_COMPPONENT_MAPPING:
                    var lst = frmList.Where(f => f is FrmComponentMapper);
                    int count = lst == null ? 1 : lst.Count() + 1;
                    string name = string.Format("EVinca Business Flow{0}", count);
                    frm = new FrmComponentMapper(this, mode, FileName) { ToolTipText = name, Text = name };
                    frm.MdiParent = this;
                    //frmSolutonExplorer.AddNewComponentMapper(name);
                    break;
                default:
                    break;
            }
            if (frm == null)
            {
                MessageBox.Show("This module is not implemented.");
                return null;
            }

            return frm;
        }
예제 #2
0
 /// <summary>
 /// Opens the form.
 /// </summary>
 /// <param name="eventName">Name of the event.</param>
 /// <param name="fileName">Name of the file.</param>
 /// <param name="FormId">The form id.</param>
 /// <param name="formMode">The form mode.</param>
 /// Created by SMK
 public void OpenForm(string eventName, string fileName, int FormId, FormMode formMode)
 {
     var existEvent = new FrmComponentMapper(this, FormMode.Open, fileName) { Text = eventName };
     existEvent.Show(dockPanel);
 }