Exemple #1
0
    public static async Task CreateMirror(string PathA, string PathB, Action <string> StatusChanged)
    {
        await ConnectServer();

        MirrorWorker.StatusChanged = StatusChanged;
        await MirrorWorker.Sync(PathA, PathB);
    }
    protected override bool OnDeleteEvent(Gdk.Event ev)
    {
        if (!LeftSpliter.Sensitive && !RigthSpliter.Sensitive && !bntCreateMirror.Visible)
        {
            var Msg = Message("Save the progress?", "DriveMirror", MessageType.Question, ButtonsType.YesNo);
            if (Msg == ResponseType.Yes)
            {
                MirrorWorker.SaveProgress();
            }
        }

        Application.Quit();
        return(true);
    }