Ejemplo n.º 1
0
        public Meni(IExcelDoc excel)
        {
            InitializeComponent();
            _excel = excel;

            gridView.ReadOnly = true;
            gridView.AllowUserToResizeColumns = false;
            gridView.AllowUserToResizeRows    = false;

            _form_resize = new AutoSize(this);
            this.Resize += _form_resize.Resize;
            _form_resize._get_initial_size();

            this.KeyUp += Valid._KeyUp;

            browse.Click        += browse_Click;
            _print.Click        += print_Click;
            _search.TextChanged += _pretraga_TextChanged;
            _open.Click         += open_Click;

            this._open.Enabled   = false;
            this._print.Enabled  = false;
            this._search.Enabled = false;
        }
    public void Main()
    {
        IExcelDoc excelDoc = GetDocType();

        excelDoc.ExportToExcel();
    }