-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathISynchronizeForm.cs
90 lines (75 loc) · 2.53 KB
/
ISynchronizeForm.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace Notpod
{
/// <summary>
/// Interface for synchronize forms.
/// </summary>
public interface ISynchronizeForm
{
/// <summary>
/// Set the device name.
/// </summary>
/// <param name="deviceName">The name of the device.</param>
void SetDeviceName(string deviceName, string driveLetter);
/// <summary>
/// Set the current status label text.
/// </summary>
/// <param name="statusText">Text to be displayed in the status label.</param>
void SetCurrentStatus(string statusText);
/// <summary>
/// Add text to the log view.
/// </summary>
/// <param name="text">Log text.</param>
/// <param name="color">Text color.</param>
void AddLogText(string text, Color color);
/// <summary>
/// Add text to the log view. Uses default color; black.
/// </summary>
/// <param name="text">Log text.</param>
void AddLogText(string text);
/// <summary>
/// Set the max value for the progress bar.
/// </summary>
void SetMaxProgressValue(int value);
/// <summary>
/// Get the max value of the progress bar.
/// </summary>
/// <returns></returns>
int GetMaxProgressValue();
/// <summary>
/// Set the current value of the progress bar.
/// </summary>
void SetProgressValue(int value);
/// <summary>
/// Get the current value of the progress bar.
/// </summary>
/// <returns></returns>
int GetProgressValue();
/// <summary>
/// Close the form.
/// </summary>
void CloseSafe();
/// <summary>
/// Get boolean value indicating if the cancel
/// operation button has been pressed.
/// </summary>
/// <returns>True if operation should be cancelled,
/// false otherwise.</returns>
bool GetOperationCancelled();
/// <summary>
/// Show form.
/// </summary>
void Show();
/// <summary>
/// Enable the cancel operation button.
/// </summary>
void EnableCancelButton();
/// <summary>
/// Disable the cancel operation button.
/// </summary>
void DisableCancelButton();
}
}