int curRowIndex = -1; //current row selected to edit public Form_AddBook(UC_Storage uc, int rowIndex = -1) { InitializeComponent(); (new Core.DropShaddow()).ApplyShadows(this); this.ucs = uc; if (rowIndex != -1) { curRowIndex = rowIndex; } AutoFill(); }
private void btnStorage_Click(object sender, EventArgs e) { UC_Storage ucs = new UC_Storage(); AddControlsToPanel(ucs); }