public void ReplaceDataSet(DataSet ds, Database.ChangeReason reason)
        {
            Database.Instance.Replace(ds);

            // ���R�ɉ����āANotification���΂��B
            Notification notif = new Notification();
            notif.Type = NotificationType.DatabaseReplaced;

            // �^�O�ɂ̓f�[�^�Z�b�g���̂�̂�����B
            notif.Tag = ds;

            AddNotification(notif);
        }
        public void ReplaceDataSet(Database.ChangeReason reason)
        {
            // if (!IRmainteAttribute.ConfirmVersion("ReplaceDataSet", MainForm.CLIENT_VERSION))
            //     return;

            if (_ir == null)
                return;

            if (_ds.HasChanges() == false)
                return;

            try
            {
                // �f�[�^�Z�b�g�ɃN���C�A���g�̎��ʎq��Z�b�g����B
                Database.SetGUID(_ds, MainForm.Instance.Guid);

                // �ύX��R�~�b�g���āA
                DataSet.AcceptChanges();

                // �T�[�o�ɒʒm
                _ir.ReplaceDataSet(DataSet, reason);
            }
            catch (System.Net.Sockets.SocketException) { OnOfflineEventHandler(new OfflineEventArgs(this)); }
            catch (System.IO.IOException) { OnOfflineEventHandler(new OfflineEventArgs(this)); }
            catch (System.Net.WebException) { OnOfflineEventHandler(new OfflineEventArgs(this)); }
            catch (System.Runtime.Remoting.RemotingException) { OnOfflineEventHandler(new OfflineEventArgs(this)); }
            catch (Exception ex)
            {
                WriteException(ex);
                OnOfflineEventHandler(new OfflineEventArgs(this));
            }
        }