30 lines
670 B
C#
30 lines
670 B
C#
|
|
using System;
|
|||
|
|
using System.Windows.Forms;
|
|||
|
|
using WorkflowConfigurator.Resources;
|
|||
|
|
|
|||
|
|
namespace WorkflowConfigurator.Forms
|
|||
|
|
{
|
|||
|
|
public partial class EditOrAbandonMsgBox : Form
|
|||
|
|
{
|
|||
|
|
public EditOrAbandonMsgBox()
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
Localize();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public EditOrAbandonMsgBox(string text1, string text2)
|
|||
|
|
: this()
|
|||
|
|
{
|
|||
|
|
label1.Text = text1;
|
|||
|
|
label2.Text = text2;
|
|||
|
|
Text = Strings.Warning;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void Localize()
|
|||
|
|
{
|
|||
|
|
editButton.Text = Strings.Back_to_editing;
|
|||
|
|
abandonButton.Text = Strings.Abandon_changes;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|