Example #1
0
        public VelixianForm(EditForm _form, ValixianFormType editFormType, ListView lvMain, String keyword, bool bLoadingFailed, ToolStripMenuItem menu, TabInitializeHandler handler, TabSaveHandler save_handler)
        {
            form = _form;

            EditFormType  = editFormType;
            Text          = form.Text;
            MainList      = lvMain;
            Keyword       = keyword;
            Menu          = menu;
            InitHandler   = handler;
            SaveHandler   = save_handler;
            LoadingFailed = bLoadingFailed;

            Modified = false;
            Updated  = true;
        }
Example #2
0
        public void Add(ToolStripComboBox cbFindType, EditForm _form, ValixianFormType editFormType, ListView lvMain, String keyword, bool bLoadingFailed, ToolStripMenuItem menu, TabInitializeHandler handler, TabSaveHandler save_handler)
        {
            int nIndex = (int)editFormType;

            VelixianForm newVellixianTab = new VelixianForm(_form, editFormType, lvMain, keyword, bLoadingFailed, menu, handler, save_handler);

            _TabPages.Add(nIndex, newVellixianTab);

            if (_form != null)
            {
                if (bLoadingFailed)
                {
                    _form.Text = _form.Text + "<Error>";
                }

                cbFindType.Items.Add(new VelixianFindType(_form.Text, _TabPages[nIndex]));
            }
        }
Example #3
0
 public void AddForm(EditForm _form, ValixianFormType editFormType, ListView lvMain, String keyword, bool bLoadingFailed, ToolStripMenuItem menu, TabInitializeHandler handler, TabSaveHandler save_handler)
 {
     _Forms.Add(cbFindType, _form, editFormType, lvMain, keyword, bLoadingFailed, menu, handler, save_handler);
 }