private void Button2_Click(object sender, EventArgs e) { task2 frm = new task2(); Hide(); frm.ShowDialog(); }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.Inflate(Resource.Layout.fragment2, container, false); main = (Activity as MainActivity); mTask2 = new task2(); mRecyclerView = view.FindViewById <RecyclerView>(Resource.Id.rvTasks); mLayoutManager = new LinearLayoutManager(view.Context); mRecyclerView.SetLayoutManager(mLayoutManager); mTaskAdapter = new TaskAdapter(mTask2, main); mTaskAdapter.itemClick += MAdapter_ItemClick; mRecyclerView.SetAdapter(mTaskAdapter); return(view); }
WrapTask(task2, resultBag2)