Exemplo n.º 1
0
        public void OnFirstClick()
        {
            this.Editors = new List <IEditable>();
            ContractUIEditable  editor  = new ContractUIEditable("Contract-" + Contract.Name, this);
            ContractXmlEditable xeditor = new ContractXmlEditable("Contract-" + Contract.Name, this);

            this.Editors.Add(editor);
            this.Editors.Add(xeditor);
            this.CurrentEditor      = editor;
            this.Contract.Reloaded += new EventHandler(Contract_Reloaded);
            this.Reload();

            this.IsFirstClick = false;
        }
        public void OnFirstClick()
        {
            this.Editors = new List<IEditable>();
            ContractUIEditable editor = new ContractUIEditable("Contract-" + Contract.Name, this);
            ContractXmlEditable xeditor = new ContractXmlEditable("Contract-" + Contract.Name, this);

            this.Editors.Add(editor);
            this.Editors.Add(xeditor);
            this.CurrentEditor = editor;
            this.Contract.Reloaded += new EventHandler(Contract_Reloaded);
            this.Reload();

            this.IsFirstClick = false;
        }