Пример #1
0
        private void BtnSave_Click(object sender, EventArgs e)
        {
            _origAsync   = otherOptsFromCtrls();
            _origRequest = requestFromCtrls();

            OptionsEventArgs args = new OptionsEventArgs(_origAsync, _origRequest);

            OptionsSaved?.Invoke(this, args);
        }
Пример #2
0
        private void AdvancedOptionsForm_OptionsSaved(object sender, OptionsEventArgs e)
        {
            // If no changes were made then just log a message and return
            if (e.UploadAsync == _uploadAsync && e.InitiateMultipartUploadRequest.EqualsRequest(_uploadRequest))
            {
                addLog(OptionsUnchanged);
                return;
            }

            // Save changes to options
            _uploading     = e.UploadAsync;
            _uploadRequest = e.InitiateMultipartUploadRequest;
            addLog(OptionsEdited);
        }