Example #1
0
        private void FileSaved(IAsyncResult result)
        {
            if (this.InvokeRequired)
            {
                try
                {
                    this.Invoke(
                        new MethodInvoker(
                            delegate() { FileSaved(result); }));
                }
                catch (Exception e)
                {
                }
            }
            else
            {
                bool SuccessfullySave = (bool)_SaveFileDelegate.EndInvoke(result);

                if (SuccessfullySave)
                {
                    StatusLabel.Text = "Save successful";
                }
                else
                {
                    StatusLabel.Text = "Save unsuccessful try again";
                }

                SaveButton.Enabled = true;
            }
        }