private void Form1_SizeChanged(object sender, EventArgs e) { if (t) { MessageBox.Show("sd"); WriteSize(); string sizeDetail = SharedIems.GetInFile(Convert.ToInt32(Tag), "Size"); sizeDetail = sizeDetail.Substring(6); string[] sp = sizeDetail.Split(','); int x = Convert.ToInt32(sp[0].Trim()); int y = Convert.ToInt32(sp[1].Trim()); } }
//To close/delete the note private void xToolStripMenuItem_Click(object sender, EventArgs e) { var result = MessageBox.Show("Do you want to delete this note?", "Delete Note", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { Close(); File.Delete(SharedIems.path + @"fileID" + Tag + ".dat"); File.Delete(SharedIems.path + @"fileID" + Tag + ".txt"); SharedIems.openForm--; SharedIems.ZeroForm(); } }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { SharedIems.CreateNote(); }
private void BackGroundForm_Load(object sender, EventArgs e) { SharedIems.CreateNote(); }