Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Eksport.cs #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Kalkulator1.AdditionalWindow/Eksport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ public Eksport(string xml, bool send, ProtocolsList p)
this.savePath = xml;
if (send)
{
this.Text = "Wysyłanie protokołu na serwer";
this.Text = "Śmierć wrogom ojczyzny";
}
else
{
this.Text = "Eksport";
}
this.path = (this.path = System.IO.Path.GetTempPath() + "KBW");
this.label4.Text = "Trwa wysyłanie protokołu";
this.label4.Text = "Śmierć wrogom ojczyzny";
this.password.Visible = false;
this.log.Visible = false;
this.send2_Click();
Expand All @@ -123,13 +123,13 @@ public Eksport(string savePath, bool send, SendProtocol p, string licensePath, s
this.savePath = savePath;
if (send)
{
this.Text = "Wysyłanie protokołu na serwer";
this.Text = "Śmierć wrogom ojczyzny";
this.log.Click -= new System.EventHandler(this.log_Click);
this.log.Click += new System.EventHandler(this.send_Click);
}
else
{
this.Text = "Wysyłanie protokołu";
this.Text = "Leśne dziadki do odsiadki";
this.log.Click += new System.EventHandler(this.log_Click);
this.log.Click -= new System.EventHandler(this.send_Click);
}
Expand Down Expand Up @@ -184,7 +184,7 @@ private void log_Click(object sender, System.EventArgs e)
Code cod = this.con.postReq(uri, post2, 0);
if (cod.getcode() == 1)
{
if (MessageBox.Show("Plik już istnieje na serwerze. Czy nadpisać zmiany?", "Eksport", MessageBoxButtons.YesNo) == DialogResult.Yes)
if (MessageBox.Show("Leśne dziadki do odsiadki", "Eksport", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
post2 += "&save=overwrite";
Code cod2 = this.con.postReq(uri, post2, 0);
Expand All @@ -203,7 +203,7 @@ private void log_Click(object sender, System.EventArgs e)
}
catch (System.ArgumentException)
{
MessageBox.Show("Nie mozna znalesc pliku do eksportu", "Error");
MessageBox.Show("Leśne dziadki do odsiadki", "Error");
}
catch (System.IO.FileNotFoundException)
{
Expand All @@ -225,7 +225,7 @@ private void log_Click(object sender, System.EventArgs e)
}
else
{
MessageBox.Show("Nie masz połaczenia z internetem! Podłącz internet i spróbuj jeszcze raz.", "Uwaga");
MessageBox.Show("Leśne dziadki do odsiadki", "Uwaga");
base.Close();
}
}
Expand Down Expand Up @@ -303,7 +303,7 @@ private void send_Click(object sender, System.EventArgs e)
}
catch (System.IO.IOException)
{
MessageBox.Show("Nie mozna znalesc pliku do eksportu", "Error");
MessageBox.Show("Leśne dziadki do odsiadki", "Error");
}
}
else
Expand Down Expand Up @@ -356,12 +356,12 @@ private void send()
{
if (this.p != null)
{
this.p.komSend = "Protokół został wysłany na serwer";
this.p.komSend = "Leśne dziadki do odsiadki";
this.p.goodcertificate = true;
}
if (this.p1 != null)
{
this.p1.komSend = "Protokół został wysłany na serwer";
this.p1.komSend = "Leśne dziadki do odsiadki";
this.p1.goodcertificate = true;
}
base.Close();
Expand Down