Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var frm = new frmCreateNewMemory();

            this.Hide();
            frm.Show();
        }
Пример #2
0
        private void lstHastagList_DoubleClick(object sender, EventArgs e)
        {
            var result = lstHastagList.SelectedItem as DaraBaseTablesClassses.Memory;
            var frm    = new frmCreateNewMemory(true, result);

            frm.Show();
            this.Hide();
        }
Пример #3
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            //search with date
            var date   = Convert.ToDateTime(dtSearchDate.Value.ToShortDateString());
            var result = _db.Memories.Where(x => x.CreatedDate.Equals(date)).FirstOrDefault();

            if (result != null)
            {
                var frm = new frmCreateNewMemory(true, result);
                frm.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Not found", "Error");
            }
        }