Example #1
0
 /// <summary>
 /// Close([save_flag])   - Close document, save it when saveflag=true, default - false;
 /// </summary>
 /// <param name="save_flag">saveDoc if true. This case all rest parameters as in saveDoc</param>
 public void Close(bool save_flag = false, bool BodySave = true, string MD5 = "", int EOL = 0)
 {
     Log.set("Close(" + name + ")");
     if (save_flag) saveDoc(this, BodySave, MD5, EOL);
     this.isOpen = false;
     FileOp.DisplayAlert(false);
     try { this.Wb.Close(); }
     catch {  }
     FileOp.DisplayAlert(true);
     Log.exit();
 }
Example #2
0
 /// <summary>
 /// Close([save_flag])   - Close document, save it when saveflag=true, default - false;
 /// </summary>
 /// <param name="save_flag">saveDoc if true. This case all rest parameters as in saveDoc</param>
 public void Close(bool save_flag = false, bool BodySave = true, string MD5 = "", int EOL = 0)
 {
     Log.set("Close(" + name + ")");
     if (save_flag) saveDoc(this, BodySave, MD5, EOL);
     foreach (var d in Documents)
     {
         if (d.Value.Wb == Wb) d.Value.isOpen = false;
     }
     //22/4            isOpen = false;
     FileOp.DisplayAlert(false);
     try { this.Wb.Close(); }
     catch { }
     FileOp.DisplayAlert(true);
     Log.exit();
 }