Exemplo n.º 1
0
        private void Recr_Click(object sender, RoutedEventArgs e)
        {
            Recruitment rec = new Recruitment();

            rec.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        // SqlConnection connection = new SqlConnection(@"Data Source = (LocalDB)\kurs; Initial Catalog = kurs; Integrated Security = True");



        /* void SaveTable()
         * {
         *  /* string path = System.IO.Directory.GetCurrentDirectory() + @"\"+"Save_Channel.xlsx";
         *   Excel.Application excelapp = new Excel.Application();
         *   Excel.Workbook workbook = excelapp.Workbooks.Add();
         *   Excel.Worksheet worksheet = workbook.ActiveSheet;
         *   int row = сведенияDataGrid.Items.Count;
         *   int col = сведенияDataGrid.Columns.Count();
         *   for (int i = 0; i < row; i++)
         *   {
         *       for (int j = 0; j < col; j++)
         *       {
         *           сведенияDataGrid.SelectedIndex = i;
         *          worksheet.Rows[i].Columns[j] = сведенияDataGrid.Items[i].
         *       }
         *   }
         *   excelapp.AlertBeforeOverwriting = false;
         *   workbook.SaveAs(path);
         *   excelapp.Quit();
         * }*/

        private void recruitment_Click(object sender, RoutedEventArgs e)
        {
            Recruitment form = new Recruitment();

            form.Show();
            this.Hide();
        }
Exemplo n.º 3
0
        private void Window_Closed(object sender, EventArgs e)
        {
            File.WriteAllText("Forms.txt", String.Empty);
            data.Clear();
            Recruitment recr = new Recruitment();

            recr.Show();
        }
Exemplo n.º 4
0
 private void Window_Closed(object sender, EventArgs e)
 {
     if (from == "Recruitment")
     {
         Recruitment recr = new Recruitment();
         recr.Show();
     }
     else
     {
         Workers work = new Workers();
         work.Show();
     }
 }
Exemplo n.º 5
0
        private void Window_Closed(object sender, EventArgs e)
        {
            Recruitment recr = new Recruitment();

            recr.Show();
        }