public void btnEditMode_Click(object sender, EventArgs e) { if (!File.Exists(FullFileName)) { return; } if (htmEdit1.EditMode == true) { htmEdit1.SaveDocument(); htmEdit1.EditMode = false; if (File.Exists(htmEdit1.htmlfilename)) { htmEdit1.OpenDocument(htmEdit1.htmlfilename); } btnReadMode1.Text = "编辑"; } else { btnReadMode1.Text = "阅读"; htmEdit1.EditMode = true; } WinForm.RemoveFocus(this); }
private void splitContainer2_SplitterMoved(object sender, SplitterEventArgs e) { WinForm.RemoveFocus(this); }