p align="justify"> {= file.Replace (@ "", "/"); "file :///" + file;
} (System.Exception ex)
{ex;
}
}
}
}
log.cs
using
{partial class log: Form
{Керуючий Upr = new Керуючий (); ag = "Агент"; par_ag = "123"; byh = "Бухгалтер"; par_byh = "456"; str1, str2; int nomer_agenta; log ()
{();
} void log_Load (object sender, EventArgs e)
} void button1_Click (object sender, EventArgs e)
{= Convert.ToString (textBox1.Text); = Convert.ToString (textBox2.Text); (int i = 0; i
{((str1 == ag + i.ToString ()) && (str2 == par_ag + i.ToString ()))
{_agenta = i;. Agentam.Show ();
}
} ((str1 == byh) && (str2 == par_byh))
{. f1.Show ();. Hide ();
} (((str1! = (ag + this.nomer_agenta.ToString ())) | | (str2! = par_ag + this.nomer_agenta.ToString ())) && (( str1! = byh) | | (str2! = par_byh)))
{MessageBox.Show ("НЕ правильно ввели логін/пароль!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);}
} void log_Closing (object sender, FormClosingEventArgs e)
{. SaveAgents ("Agents.xml");. SaveZakazi ("Zakazi.xml");
} void log_Closing (object sender, FormClosedEventArgs e)
{. Exit ();
} void button2_Click (object sender, EventArgs e)
{. Close ();
}
}
}
Агентам.cs
using
{partial class Агентам: Form
{Агентам ()
{();
} int [] m; nom, x, double_ukaz, sum_old, kolvo, index; ukaz = -1; void button2_Click (object sender, EventArgs e)
{. DZakaz.ShowDialog ();
} void button1_Click (object sender, EventArgs e)
{. Hide ();
} void Агентам_Load (object sender, EventArgs e)
{(Z.ID_agenta == Program.Activ.nomer_agenta)
{. Items.Add (Z.naimenovanie); [kolvo] = Z.nomer; + +;
}
}
} void listBox1_SelectedIndexChanged (object sender, EventArgs e)
{= listBox1.SelectedIndex;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = nul...